Re: db sql issue from var
| From: | Rasmus Lerdorf | Date: | Sun, 26 May 2002 15:36:46 +0000 |
| Subject: | Re: db sql issue from var | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-19437@lists.php.net to get a copy of this message | ||
Well, where is your ';'? At the end of the statement? You don't
terminate queries with semi colons when talking directly to the database.
Just remove it.
-Rasmus
On Sun, 26 May 2002, Dave Carrera wrote:
> Hi All
>
> I have found the problem from my last post and need to know how to solve it.
>
> Example sql var:
>
> $sql
> When i run the script i get
>
> Mysql error near ';' create table......
>
> So how do i run this command from my script to include the ; as part of the
> sql.
>
> phpmyadmin copes with this ok so it must be able to be done.
>
> Thanks for any help in advance
>
> Dave C
>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>