|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2000-06-09 18:31 UTC] zeev at cvs dot php dot net
[2000-07-29 16:30 UTC] stas@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 06 22:00:01 2025 UTC |
The following works without warnings under PHP Version 3.0.15 but produces the following warning in PHP Version 4.0RC1: Warning: MySQL: Unable to save result set in /home/httpd/html/localweb/web/test/phpbug.php on line 12 Database is however created correctly. In 3.0.15 $result is 1 (TRUE) in 4.0RC1 it seams to be undefined. -------8<------------------------------------------- <html> <body> <? $db = mysql_connect("localhost", "root"); mysql_select_db("test",$db); $querystring = "CREATE TABLE foo ("; $querystring .= "ID SMALLINT UNSIGNED AUTO_INCREMENT PRIMARY KEY"; $querystring .= ", "; $querystring .= "Name VARCHAR(255)"; $querystring .= ")"; $result = mysql_query($querystring, $db); if (!$result) { echo "\n<BR>\n<B>Error:</B> ". mysql_error(). "<BR>\n"; } ?> </body> </html>