|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-01-24 16:17 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Dec 03 23:00:01 2025 UTC |
Description: ------------ If I use in the code above, $query = "select inst_codigo, inst_nombre from rdc_tam_institucion"; It works :D In the MySQL command line >select * from rdc_tam_institucion; this also works :D Reproduce code: --------------- $db_selected = mysql_select_db('db_redicas', $link); if (!$db_selected) { die ('Can\'t use db_redicas : ' . mysql_error()); } $query = "select * from rdc_tam_institucion"; $result = mysql_query($query); if (!$result) { die('Invalid query: ' . mysql_error()); } Expected result: ---------------- execute the query Actual result: -------------- Warning: mysql_query(): Unable to save result set in C:\Documents and Settings\Alberto.MINNESOTA\Mis documentos\BlueCode\Redicas\Software\Directorio.php on line 27 Invalid query: Unknown MySQL error