|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-02-12 21:51 UTC] jani@php.net
[2010-02-20 01:00 UTC] php-bugs at lists dot php dot net
[2010-04-25 20:04 UTC] felipe@php.net
-Status: No Feedback
+Status: Feedback
[2010-04-25 20:04 UTC] felipe@php.net
[2013-02-18 00:34 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 14:00:01 2025 UTC |
Description: ------------ PHP does not displays any error messages, while inserting to a non-existant table in non-existant database and creating a table in non-existant database. Displaying the errors is on. Reproduce code: --------------- $con = mysql_connect("localhost","root",""); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("sthnonexistant", $con); $sql = "CREATE TABLE IF NOT EXISTS `registration` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) NOT NULL, `email` varchar(255) NOT NULL, UNIQUE KEY `id` (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=0 ;"; mysql_query($sql,$con); Expected result: ---------------- An error message, containing that database does not exist. Actual result: -------------- Success message.