Jeffrey is right, but here's an easier way:

$sql = "UPDATE $table SET pages = '$PHP_SELF' WHERE session = '$holy_cow'";

Be sure you use double-quotes to build the string (so that all variables get 
interpolated) and single-quotes within. Any non-numeric value has to be quoted for an 
SQL statement to work properly.

Good luck!



>if you put quotes around the variable $PHP_SELF it should work...try this.
>UPDATE $table SET pages = '".$PHP_SELF."' WHERE session = $holy_cow

PHP Database Mailing List (
To unsubscribe, visit:

Reply via email to