From: anderson dot web at gmail dot com
Operating system: Windows XP
PHP version: 4.3.10
PHP Bug Type: MySQL related
Bug description: SELECT * FROM tablename... does not work
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
--
Edit bug report at http://bugs.php.net/?id=31679&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=31679&r=trysnapshot4
Try a CVS snapshot (php5.0):
http://bugs.php.net/fix.php?id=31679&r=trysnapshot50
Try a CVS snapshot (php5.1):
http://bugs.php.net/fix.php?id=31679&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=31679&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=31679&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=31679&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=31679&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=31679&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=31679&r=support
Expected behavior: http://bugs.php.net/fix.php?id=31679&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=31679&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=31679&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=31679&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=31679&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=31679&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=31679&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=31679&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=31679&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=31679&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=31679&r=mysqlcfg