> From: John Holmes
> Date: 08/02/04 13:45:22
> To: me2resh
> Cc: [EMAIL PROTECTED]
> Subject: Re: [PHP] script error
>
> > $query = "insert into 'posts' ( `post_id` , `post_title` , `post_date` ,
> > `post_author` , `post_content` , `m_c
how can i fix it ?
---Original Message---
From: John Holmes
Date: 08/02/04 13:45:22
To: me2resh
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] script error
> $query = "insert into 'posts' ( `post_id` , `post_title` , `post_date` ,
> `post_author` , `post_content` ,
$query = "insert into 'posts' ( `post_id` , `post_title` , `post_date` ,
`post_author` , `post_content` , `m_cat_id` , `s_cat_id` , `post_pic`)
values (\'\', \'$post_title, \'$post_title, \'$post_author,
\'$post_content, \'\', \'\', \'subject.gif\' )";
mysql_query($query);
Change that last line
i am using this script as a form to enter articles into databas,
the variable post_content comes from wysiwyg script
but when i execute the script everything goes fine except it doesn't insert any rown in the databse
can anyone tell me what is wrong with my code ?
$post_title
4 matches
Mail list logo