close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues


mysqli::options() expects parameter 1 to be integer

Thread began 3/09/2019 12:18 am by randyrie405335 | Last modified 3/09/2019 12:20 pm by Ray Borduin | 110 views | 1 replies |


mysqli::options() expects parameter 1 to be integer

I was checking one of my site's error logs and noticed a number of " [09-Mar-2019 04:38:01 UTC] PHP Warning: mysqli::options() expects parameter 1 to be integer, string given in /home/qcs0uvpopwrf/public_html/Connections/faithcentre.php on line 12" entries. "

Here is my connection script that the MySQLi extension built:
# FileName="WADYN_MYSQLI_CONN.htm"
# Type="MYSQL"
# HTTP="true"
$hostname_faithcentre = "localhost";
$database_faithcentre = "faithcentre";
$username_faithcentre = "xxxxxxxxxx";
$password_faithcentre = "xxxxxxxxxx";

$faithcentre = mysqli_init();
$faithcentre->options(MYSQLI_OPT_INT_AND_FLOAT_NATIVE, TRUE); [...this is LINE 12 inserted by the MySQLi extension]
$faithcentre->real_connect($hostname_faithcentre, $username_faithcentre, $password_faithcentre, $database_faithcentre) or die("Connect Error: " . mysqli_connect_error());

Do you see anything in my connection script that would be causing this error to be reported in the logs? Everything seems to be working fine... data is going into the database correctly so I'm just curious why these errors/warnings are being reported in the log file.

Sign in to reply to this post

Ray BorduinWebAssist

Please re-install the latest version of the extension and re-create the connection and it should fix this issue. The new syntax it uses on that line is:


Sign in to reply to this post
Did this help? Tips are appreciated...

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question





Ease of use


security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...