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.
[EMAIL PROTECTED] wrote:
>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 (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php