php-general | 2005051
Date: 05/05/05
- Next message: Ross: "[PHP] is this the correct syntax"
- Previous message: Fred Rathke: "Re: [PHP] [SOLVED] Function shall receive Pointer to Array"
- In reply to: Ross: "[PHP] insert not working"
- Next in thread: bala chandar: "Re: [PHP] insert not working"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Did you check for proper permissions in the user and db tables in the user
database?
Prathap
---------- Original Message -----------
From: "Ross" <ross <email protected>>
To: php-general <email protected>
Sent: Thu, 5 May 2005 10:15:52 +0100
Subject: [PHP] insert not working
> $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??
>
> R.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
------- End of Original Message -------
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
- Next message: Ross: "[PHP] is this the correct syntax"
- Previous message: Fred Rathke: "Re: [PHP] [SOLVED] Function shall receive Pointer to Array"
- In reply to: Ross: "[PHP] insert not working"
- Next in thread: bala chandar: "Re: [PHP] insert not working"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

