Hey guys im starting develoment on a new Open Source Mobile CMS. After doing a lot of googling i don’t thing there is a comprehensive open source Mobile CMS out there. So i decided i’ll just do it myself. I probably need help, since it might be tricky with the whole full time job thing. I dont know what to call it yet, i was thinking “Mobilee”.
Selecting a random row from mysql the easy way
Selecting multiple random rows is as easy as changing the limit, say i
wanted 10 random rows, the code would look like this:
Sometimes you need access the mysql result set after you have already accessed it using or or whatever. The chances are if you try a mysql_fetch_anything()*[not a really method guys] the function will return a false cause it has reached the end of the result set. So how do you fix that? Easy. php has a function called , where $result is your result set, eg and $row_number is the row you would...
Use the code below to check if a user is logged in. This is useful if you want to only show certain parts of your component to registered users and not non-registred users. Have fun.
This is a short tutorial on how to create a simple(with simplicity comes a lot of security issues) Login system using php sessions and ajax. Note: I do not address any security issues in this tutorial. This system of doing this is in no way full proof when it comes to being secure. But it should get you to a good start. PHP freaks has awesome article on php security. So go ahead and read on.
If you like this video you might want to visit this site killerphp.com and visit the Video Tutorial Section.