What do you mean by "dont post proper data"?

Have you added slashes to the variables?
(use addslashes() and then stripslashes() when reading the contents from
the db)
On Thu, 2002-11-14 at 11:22, conbud wrote:
> Whats wrong here ?? The variables are getting the correct information from
> the form but for some reason as soon as I put the variables into the $sql
> they dont post the proper data to the database, its connecting to the
> database ok but just not updating the data.
> 
> $sql = "UPDATE updates SET member= '{$_POST['mem']}', email=
> '{$_POST['email']}', position= '{$_POST['pos']}', dateadded=
> '{$_POST['dateadded']}', descp= '{$_POST['descp']}', message=
> '{$_POST['message']}' where id= '{$_POST['id']}'";
> 
> $result = mysql_query($sql);
> 
> Lee
> 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to