php-general | 2005051
Date: 05/05/05
- Next message: Rory Browne: "Re: [PHP] Re: How to declare Vars in PHP?"
- Previous message: Rory Browne: "Fwd: [PHP] Re: How do you declare Vars in PHP? -I know it's not necessary, but I still want to know"
- In reply to: Ross: "[PHP] insert not working"
- Next in thread: Mark Rees: "RE: [PHP] insert not working"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi,
On 5/5/05, Ross <ross <email protected>> wrote:
> $query = "INSERT INTO sheet1 (title, fname, sname, job_title, organisation,
> street, postcode, city, telephone, mobile, fax, email, web, add_info) VALUES
> ('$title', '$fname', '$sname', '$job_title', '$organisation', '$street',
> '$postcode', '$city', '$telephone', '$mobile', '$fax', '$email', '$web',
> '$add_info')";
>
> $result= mysql_query($query);
> if($result){
> echo "sucess";
> }
>
> why yould this not work? I can retrievethe data but not write any data to
> the database??
Please mention the error message clearly. what error are you getting.
I think there might be some data type mismatch between ur php code and
mysql data type
> R.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
-- bala> balachandar muruganantham blog> lynx http://chandar.blogspot.com web> http://www.chennaishopping.com-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
- Next message: Rory Browne: "Re: [PHP] Re: How to declare Vars in PHP?"
- Previous message: Rory Browne: "Fwd: [PHP] Re: How do you declare Vars in PHP? -I know it's not necessary, but I still want to know"
- In reply to: Ross: "[PHP] insert not working"
- Next in thread: Mark Rees: "RE: [PHP] insert not working"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

