Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /home/content/50/11845750/html/wp-content/plugins/statsurfer/append.php on line 285

Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: A link to the server could not be established in /home/content/50/11845750/html/wp-content/plugins/statsurfer/append.php on line 285

Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /home/content/50/11845750/html/wp-content/plugins/statsurfer/append.php on line 285

Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: A link to the server could not be established in /home/content/50/11845750/html/wp-content/plugins/statsurfer/append.php on line 285

Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /home/content/50/11845750/html/wp-content/plugins/statsurfer/append.php on line 285

Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: A link to the server could not be established in /home/content/50/11845750/html/wp-content/plugins/statsurfer/append.php on line 285

Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /home/content/50/11845750/html/wp-content/plugins/statsurfer/append.php on line 285

Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: A link to the server could not be established in /home/content/50/11845750/html/wp-content/plugins/statsurfer/append.php on line 285

Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /home/content/50/11845750/html/wp-content/plugins/statsurfer/append.php on line 285

Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: A link to the server could not be established in /home/content/50/11845750/html/wp-content/plugins/statsurfer/append.php on line 285

Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /home/content/50/11845750/html/wp-content/plugins/statsurfer/append.php on line 285

Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: A link to the server could not be established in /home/content/50/11845750/html/wp-content/plugins/statsurfer/append.php on line 285
April, 2006 | Sajo Jacob
Month: April 2006

Reversing equality test to avoid errors

Common mistake if(x=2) instead of if(x==2) Write the rvalue of the expression at the left side of the equality operator (==): if(2==x) In this case the compiler will warn you if you typed the assignment operator (=) by mistake.

Tagged with:
Top