php-general | 2005051
Date: 05/05/05
- Next message: Fred Rathke: "Re: [PHP] [SOLVED] Function shall receive Pointer to Array"
- Previous message: Prathaban Mookiah: "Re: [PHP] select statement"
- In reply to: Ross: "[PHP] insert not working"
- Next in thread: Prathaban Mookiah: "Re: [PHP] insert not working"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Ross 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";
> }
else {
echo mysql_error() . "<br>\n$query";
}
>
> why yould this not work? I can retrievethe data but not write any data to
> the database??
>
> R.
>
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
- Next message: Fred Rathke: "Re: [PHP] [SOLVED] Function shall receive Pointer to Array"
- Previous message: Prathaban Mookiah: "Re: [PHP] select statement"
- In reply to: Ross: "[PHP] insert not working"
- Next in thread: Prathaban Mookiah: "Re: [PHP] insert not working"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

