hi, this is another script i am using and its giving me an error error: and this is the php . where is the error. help help
i dont know . i just downloaded a script and edit as it was told in read me file where should i check
Unless you've defined dbQuery as a function in the script that cals this one, shouldn't the line: be ? also try replacing with Also make sure there's no whitespace being produced before the cookies are set.
The problem is the error message shown before the "setcookie" command is executed. This error message is because your "dbQuery" is failing. $guestips=dbQuery("SELECT ip FROM guest_log WHERE (ip='$ip')", true); dbQuery("INSERT INTO `guest_log` ( `time` , `ip` ) VALUES ('".time()."', '$ip')", true); 1 of the above is failing. (Most probably the first one.) Check your database to make sure that the table "guest_log" exists. After fixing this you should not get the cookie error. regards