Bug #73894 [NEW]: Mysqli Connection not working as per example
From: sunilpandya at hotmail dot com
Operating system: linux
PHP version: 5.6.29
Package: MySQLi related
Bug Type: Bug
Bug description:Mysqli Connection not working as per example
Description:
------------
$mysqli = new mysqli("localhost","sunil_pandya", "Sunbirth@1961", "jomapop");
if (mysqli_connect_error()) {
    die('Connect Error (' . mysqli_connect_errno() . ') '
            . mysqli_connect_error());
}
Expected result:
----------------
Connection to Mysql
Actual result:
--------------
Undefind function new mysqli, I have web hosting space with
in.godaddy.com, which is shared hosting shows they are using 5.6.25
version of php.
When I put above code with my username,password,databse details, log
file of public_html shows undefined function new mysqli, while netbean
ide shows
Unwanted string '' after, so what exactly is the code.
--
Edit bug report at https://bugs.php.net/bug.php?id=73894&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=73894&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=73894&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=73894&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=73894&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=73894&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=73894&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=73894&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=73894&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=73894&r=support
Expected behavior: https://bugs.php.net/fix.php?id=73894&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=73894&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=73894&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=73894&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=73894&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=73894&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=73894&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=73894&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=73894&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=73894&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=73894&r=mysqlcfg
Thread (2 messages)
- sunilpandya at hotmail dot com