MySQL Forums
Forum List  »  Newbie

Problem with my query...
Posted by: Jason Valdron
Date: July 30, 2005 12:13PM

Hi,
Can someone tell me whats wrong with my query?? (I use PHP)

$name = $_POST['T1'];
$location = $_POST['T2'];
$website = $_POST['T3'];
$msn = $_POST['T4'];
$aim = $_POST['T5'];
$icq = $_POST['T6'];

$username = $_SESSION['user_name'];
$query = "UPDATE users SET name = '$name', location = '$location', website = '$website', msn = '$msn', aim = '$aim', icq = '$icq' WHERE user = $username";
mysql_query($query) or die('Error, query failed');

Options: ReplyQuote


Subject
Written By
Posted
Problem with my query...
July 30, 2005 12:13PM


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.