From:             sufinoon at gmail dot com
Operating system: windows xp + linux
PHP version:      5.2.4
PHP Bug Type:     MySQLi related
Bug description:  db operations not functioning

Description:
------------
problem:

trying to execute a query

description:

somewhere in the script i try to execute a simple select query like 
select * from users;
and i got an empty result although the table contain data
and the i have a database link.
I've tried a bug fix like:
 /**
  * *fix without it the query fails      
  */

    mysqli_close ( $db->link_id );
    $link_id = mysqli_connect($db_host, $db_username, $db_password,
$db_name, $db_prefix, $p_connect);


It's works only for one query and after that i need to use the fix again



if this bug is reported , although i couldn't find it, please post the bug
id # for reference

Reproduce code:
---------------
$result = mysqli_query($link_id, 'SELECT g_id FROM groups');

Expected result:
----------------
to have some rows (i know i have them cause i check it in command client)

Actual result:
--------------
rows = 0

-- 
Edit bug report at http://bugs.php.net/?id=42554&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=42554&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=42554&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=42554&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=42554&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=42554&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=42554&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=42554&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=42554&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=42554&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=42554&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=42554&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=42554&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=42554&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=42554&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=42554&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=42554&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=42554&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=42554&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=42554&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=42554&r=mysqlcfg

Reply via email to