Re: Re: Stuck in apostrophe hell

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> Paul_S_Johnson@xxxxxxxxxxxxxxxx wrote:

> > 
> > THE INPUT:
> > 
> > $sql_insert_registration = sprintf("INSERT INTO
> >   Registrations (
> >     Class_ID,
> >     prid,
> >     Registrant,
> >     Company,
> >     Phone,
> >     Email
> >   )
> > VALUES (
> >     $_POST[Class_ID],
> >     $_POST[prid],
> >     '%s',".

You need double-quotes here, 
 \"%s\",

> >     parseNull($_POST['Company']).",
> >     '$_POST[Phone]',
> >     '$_POST[Email]'
> > )", mysql_real_escape_string($_POST['Registrant']));
> > 


-- 
Simcha Younger <simcha@xxxxxxxxxxxx>

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux