Warning: mysql_query() expects parameter 2 to be resource
问题 what's the problem in my code ? this is full of my connection code... please help me what's the wrong in this code ? <?php define("Server", "localhost");//constant for connennection define("Username", "root"); define("Password", "123456"); ?> <?php // connection $conection= mysql_connect(Server, Username, Password); if(!$conection) die("connection faild :". mysql_error()); $db_select= mysql_select_db("widget",$conection); if (!$db_select) { die("selection faild :".mysql_error()); } ?> <?php