hubba
05-09-2004, 03:29 PM
Just tring to get the chat "whos online" to work. Gives an error 1064 in VB3
--------------------
<?php
require("global.php");
if( $bbuserid ) {
$DB_site->query("UPDATE user SET inchat='0' WHERE userid='$bbuserinfo[userid]'");
$DB_site->query("UPDATE user SET lastchatactivity=$lastvisit WHERE userid='$bbuserinfo[userid]'");
} else {
} // end if
?>
<head>
<title>Chat Log-Out</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<BODY onLoad="setTimeout(window.close, 5000)"
</body>
</html>
-------------------
it comes
Ungueltige SQL-Abfrage: UPDATE user SET lastchatactivity= WHERE userid='1'
mysql error: You have an error in your SQL syntax.
Any idea perhaps?
--------------------
<?php
require("global.php");
if( $bbuserid ) {
$DB_site->query("UPDATE user SET inchat='0' WHERE userid='$bbuserinfo[userid]'");
$DB_site->query("UPDATE user SET lastchatactivity=$lastvisit WHERE userid='$bbuserinfo[userid]'");
} else {
} // end if
?>
<head>
<title>Chat Log-Out</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<BODY onLoad="setTimeout(window.close, 5000)"
</body>
</html>
-------------------
it comes
Ungueltige SQL-Abfrage: UPDATE user SET lastchatactivity= WHERE userid='1'
mysql error: You have an error in your SQL syntax.
Any idea perhaps?