Re: How to create a table from PHP?
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

Re: How to create a table from PHP?

From: Andy Hassall <andy@andyh.co.uk>
Date: Sun Jul 17 2005 - 21:27:07 CEST

On 17 Jul 2005 09:42:34 -0700, "mh" <marchenri1@gmail.com> wrote:

>$sql_query="CREATE TABLE '$num' (

 Don't put quotes around identifier names. If you must, then in MySQL use
either ` or ", but not '. ' is for strings, not identifiers.

-- 
Andy Hassall / <andy@andyh.co.uk> / <http://www.andyh.co.uk>
<http://www.andyhsoftware.co.uk/space> Space: disk usage analysis tool
Received on Mon Oct 24 02:08:47 2005