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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
32 + 14 = ?
Subscribe to this entry?

 
 [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: Tue May 21 14:01:33 2024 UTC