TagPHP

Beware the php isset() monster!!!

B

The isset method is used to check if a variable is set, i.e exists and is not set to NULL. But more often than not you find developer making the mistake of using incorrectly, most common mistake is using it to check for empty strings. This will print out “Variable is set”. Obvious to some but not so obvious to others. Like me. 😀 I find that using empty() results in much more...

Reseting the mysql pointer

R

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...

Categories

Page optimized by WP Minify WordPress Plugin