MySQL Forums
Forum List  »  PHP

Re: PHP Insert Query Problems
Posted by: Alistair Beasley
Date: May 24, 2005 06:22AM

Doesn't matter, I've found my own stupid error, after spending several hours of searching round the internet looking I took a fresh look at my code and realised that

$query = "UPDATE usersession SET $n='$index[$n]' WHERE SessionID='$tSession'";
$result = mysql_query($query) or die ("Couldn't Execute Query 2");
$index[$n] = $rand;


should actually of been

$index[$n] = $rand;
$query = "UPDATE usersession SET $n='$index[$n]' WHERE SessionID='$tSession'";
$result = mysql_query($query) or die ("Couldn't Execute Query 2");

Options: ReplyQuote


Subject
Written By
Posted
Re: PHP Insert Query Problems
May 24, 2005 06:22AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.