RE: [PHP-DB] Unknown() error
| From: | Hutchins, Richard | Date: | Fri, 28 Feb 2003 21:04:15 +0000 |
| Subject: | RE: [PHP-DB] Unknown() error | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-26015@lists.php.net to get a copy of this message | ||
Just a guess, but do you have a variable (global variable) named $15
someplace? If you do, PHP does not allow variable names that start with
numbers.
> -----Original Message-----
> From: AP Fritts [mailto:apfritts@apwebd.com]
> Sent: Friday, February 28, 2003 3:51 PM
> To: php-db@lists.php.net
> Subject: [PHP-DB] Unknown() error
>
>
> Hi! I am having a problem with Unknown() error.
> Here is my code:
>
> echo "2";
> mysql_query("INSERT INTO sessions SET sessionid='{$sid}',
> ipaddr='{$_SERVER["REMOTE_ADDR"]},
> page='{$_SERVER["SCRIPT_FILENAME"]}',
> dt='".$dt."'")
> or OnErr(2);
> echo "3";
>
> I get this error:
>
> Notice: Unknown(): The session bug compatibility code will
> not try to locate
> the global variable $15 due to its numeric nature. in Unknown
> on line 0
>
> I know that it has to do with the mysql_query line because
> the system prints
> out "2" but doesn't print "3".
>
> Thanks in advance for your help,
> AP Fritts
>
>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>