Try
mysql_query("INSERT into mybtd(co_pe) values('Johsua''s Brother')");
or
mysql_query("INSERT into mybtd(co_pe) values('Johsua\\'s Brother')");

Daniel Åkerud

----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, June 22, 2001 7:15 PM
Subject: Error for the " ' " Syantax


> Dear sir;
>      I have find a big error from MySQL. I have one fields like that;
> co_na(Fields) = Johsua's Brother;
> mybtd is the data name, co_na is the fields;
> I cannot insert the data by using the php commands;
> mysql_query("INSERT into mybtd(co_pe) values('Johsua's Brother')"); canot
> be functioned. and also mysql_query("INSERT into mybtd(co_pe)
> values("Johsua's Brother")");
>
> but this command can be run on terminal use the command below:-
> INSERT into mybtd(co_pe) values("Johsua's Brother"); can be run...But
> INSERT into mybtd(co_pe) values('Johsua's Brother'); cannot run...
>
> can you give me some help..
>
>
> ---------------------------------------------------------------------
> Before posting, please check:
>    http://www.mysql.com/manual.php   (the manual)
>    http://lists.mysql.com/           (the list archive)
>
> To request this thread, e-mail <[EMAIL PROTECTED]>
> To unsubscribe, e-mail <[EMAIL PROTECTED]>
> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
>
>


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to