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
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: anderson dot web at gmail dot com
New email:
PHP Version: OS:

 

 [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 22:01:33 2024 UTC