From:             vejaykrishna at yahoo dot co dot nz
Operating system: win xp prof
PHP version:      5.1.1
PHP Bug Type:     MySQLi related
Bug description:  Result page is empty

Description:
------------
sir, i am new user of PHP. i need to open a database in MySQL using new
mysqli(). But my web page is blank if i run that program since the user
name and password is not given. i need to know if root is the user what
should be in user name and what should be in password column.

Reproduce code:
---------------
<?php
@ $db=new mysqli('localhost','','','hotel');
if (mysqli_connect_errno())
{
  echo 'Error:could not connect to db';
  
}
$pid=1;
$pln='ap';
$sgl=300.00;
$dbl=600.00;
$dlflg=0;
$qry="insert into plan
values(".$pid.",'".$pln."',".$sgl.",".$dbl.",".$dlflg.")";
$result=$db->query($qry);
if( $result)
  echo 'inserted';
?>

Expected result:
----------------
I need to see that the querry is inserted.

Actual result:
--------------
i debugged the program when line 2 is executed the control transfers some
where.

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

Reply via email to