php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #31679 SELECT * FROM tablename... does not work
Submitted: 2005-01-24 14:14 UTC Modified: 2005-01-24 16:17 UTC
From: anderson dot web at gmail dot com Assigned:
Status: Not a bug Package: MySQL related
PHP Version: 4.3.10 OS: Windows XP
Private report: No CVE-ID: None
 [2005-01-24 14:14 UTC] anderson dot web at gmail dot com
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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-01-24 16:17 UTC] sniper@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

Ask support questions on the mailing list, no bug here.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 03 21:01:32 2024 UTC