mysql query/$post problem
| From: | Mark | Date: | Mon, 27 Mar 2006 08:19:29 +0000 |
| Subject: | mysql query/$post problem | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-232596@lists.php.net to get a copy of this message | ||
I havnt even tried this query but i know its wrong can anyone help!
***************************************
<?php
include("header.php");
include("connect.php");
$comp_id = $_SESSION['comp_id'];
$user_id = $_SESSION['user_id'];
// Grab variables and insert into database
$avname = $_POST['avname'];
$query = "INSERT INTO users AVATARS WHERE id =$user_id '','$avname')";
mysql_query($query);s
mysql_close();
include("footer.html");
?>
**********************************
I am trying to insert the value of $avname into the users table, into the
avatar field.