The connection is successful but the data are not getting inserted into the
table. I need to insert all the words into the table.
When I change the insert statement with one insert at a time, I can insert
values to the database. For exampel:
$qure = "INSERT INTO dict VALUES (1,'apple')";
Do
- Original Message -
From: "Dan Parry" <[EMAIL PROTECTED]>
To: "'sathyashrayan'" <[EMAIL PROTECTED]>;
Sent: Tuesday, March 21, 2006 6:19 PM
Subject: RE: [PHP] Inserting data at runtime (php,mysql)
conn denotes a constant where the value yo
P] Inserting data at runtime (php,mysql)
- Original Message -
From: "Dan Parry" <[EMAIL PROTECTED]>
To: "'sathyashrayan'" <[EMAIL PROTECTED]>;
Sent: Tuesday, March 21, 2006 6:12 PM
Subject: RE: [PHP] Inserting data at runtime (php,mysql)
>
On 21/03/06, sathyashrayan <[EMAIL PROTECTED]> wrote:
>
> - Original Message -
> From: "Dan Parry" <[EMAIL PROTECTED]>
> To: "'sathyashrayan'" <[EMAIL PROTECTED]>;
> Sent: Tuesday, March 21, 2006 6:12 PM
> Subject: RE: [P
Yes it is a error.Thanks.
- Original Message -
From: Dave Goodchild
To: sathyashrayan
Sent: Tuesday, March 21, 2006 6:16 PM
Subject: Re: [PHP] Inserting data at runtime (php,mysql)
Yes, but it should be $conn, not conn. There is no $ in front of the variable
name
- Original Message -
From: "Dan Parry" <[EMAIL PROTECTED]>
To: "'sathyashrayan'" <[EMAIL PROTECTED]>;
Sent: Tuesday, March 21, 2006 6:12 PM
Subject: RE: [PHP] Inserting data at runtime (php,mysql)
[snip]
$conn=mysql_connect(&quo
- Original Message -
From: "Thorsten Suckow-Homberg" <[EMAIL PROTECTED]>
To: "sathyashrayan" <[EMAIL PROTECTED]>
Cc:
Sent: Tuesday, March 21, 2006 6:00 PM
Subject: Re: [PHP] Inserting data at runtime (php,mysql)
The connection is successful but t
[snip]
$conn=mysql_connect(" ");/*with the required parameters*/
if(!conn) <<<
{
[/snip]
You are testing conn in your if condition... should that not be $conn?
Dan
-
Dan Parry
Senior Developer
Virtua Webtech Ltd
http://www.virtuawebtech.co.uk
8 matches
Mail list logo