Re:PHP 4.0 Bug #7752 Updated: Will not create a new table in database

From: Date: Sat, 11 Nov 2000 15:25:19 +0000
Subject: Re:PHP 4.0 Bug #7752 Updated: Will not create a new table in database
Groups: php.dev 
Request: Send a blank email to php-dev+get-37744@lists.php.net to get a copy of this message
On 11 Nov 2000 02:28:40 -0000 Bug Database <php-dev@lists.php.net> wrote: >ID: 7752 >Updated by: sniper >Reported By: mgrigajtis@rosasonline.com >Status: Closed >Bug Type: MySQL related >Assigned To: >Comments: > >Your script is buggy, below correct line: > >$query = "CREATE TABLE $name (ID int(4), Date varchar(50), Sales float(4))"; > >You had ; before " as it should be after..typo? >And do not add ; to mysql query strings in PHP. > >--Jani > > Same with or without the semicolon. I had tried it both ways. As a test a wrote a line to create a new database and a new table inside of it. The database was created, the table was not.

« previous php.dev (#37744) next »