mysqli Questions
4
Solved
Is it possible to use one parameter in a prepared mysqli-statement multiple times with only binding it one time?
something like this
$stmt = $mysqli->prepare(SELECT * FROM user WHERE age BETWEE...
Criticize asked 29/3, 2014 at 20:16
3
Solved
I opened some some ini files like mysqli.ini , mysql.ini , pdo_mysql.ini. Inside those files there is an .so extension added for those files. I want to know where these .so files are stored.
Insid...
3
Solved
I just need help on this PHP error which I do not quite understand:
Fatal error: Cannot pass parameter 2 by reference in /web/stud/openup/inactivatesession.php on line 13
<?php
error_reportin...
9
Solved
I am using PHP 5.5 and MAMP (downloaded from here):
I have a basic script like this:
<?php
$servername = "127.0.0.1";
$username = "root";
$password = "root";
// Create connection
$conn = mysq...
8
Solved
I'm trying to install vanilla forums on my Mac, and for this I just created a database and a user from the MySQL command line:
mysql> CREATE DATABASE vanilla;
Query OK, 1 row affected (0.00 sec...
18
I have looked through all of the forums that I could find relevant to this question and my problem yet nothing works. I have apache2.2 with php5, phpMyAdmin, and MySQL. I have uncommented the exten...
8
Solved
I am running Moodle test environment on Window Vista having PHP 5.2.10 and MySQL 5.1.36-Community. When I upgrade from Moodle 1.9.9 to 2.0, I am getting the following error.
Error: database drive...
6
Solved
I get this error when I try to connect to the mysql database using php mysqli class. Using following code:
$db = new MySQLi("localhost","kamil","*****");
password is ...
3
I have a bit of dilemma, In PHP both foreach loop and while loop seem to do exactly the same thing in this situation:
foreach ($execute->result as $item) {
echo $item['user_pass'] . '<br /&g...
Metempirics asked 10/10, 2014 at 13:44
9
Solved
I know there are many questions like this, but i didn't find any solution in it.
Things i tried:-
checked firewall
restarted my PC and Apache server
restarted MYSQL
checked my code
Tried everyth...
21
Solved
I keep getting the following errors with mysql connection through XAMPP and I don't know what to do:
That's the code in the config.inc.php
<?php
/*
* This is needed for cookie based authent...
Liquor asked 13/10, 2017 at 18:48
11
I have ubuntu 14.04 EC2 instance. I have installed php 7 on it. when I execute any php command like php --version or any other. I get following error
PHP Warning: PHP Startup: Unable to load dynam...
Kawai asked 29/8, 2016 at 11:18
3
Solved
I am trying to connect to server in NetBeans.
I write the code as below:
<?php
echo "wlecome";
echo "<br>";
$conn=mysqli_connect("mydomain.com:2082", "p...
3
Solved
I've a website designed in php with mysqli (mysql - improved) extension. The phpinfo() page shows this:
./configure --disable-fileinfo --disable-phar --enable-bcmath --enable-calendar --enable-f...
2
Solved
This are the files I'm using:
modeloBd.php
<?php
class modeloBd
{
private static $server = "127.0.0.1";
private static $user = "root";
private static $password = "&qu...
24
Solved
I am trying to execute my PHP code, which calls two MySQL queries via mysqli, and get the error "Commands out of sync; you can't run this command now".
Here is the code I am using
<?php
$con =...
3
I'm trying to make a secure connection with my database
I wrote the following code:
<?php
// form filled?
if (isset($_POST['submit'])) {
$user = 'gebruiker';
$pass = 'gebruiker';
$db = new m...
16
For 2 days now I'm trying to solve this, but unfortunately no result. Let me tell you my story about the problem. I've bulid an application on a site, and the application deals with the reviews. Bu...
7
I'm trying to run PHPUnit to unittest a WordPress plugin, but the error in the title keeps showing up.
I used WP-CLI to setup the unittests, but also WP-CLI throws a similar error when I try to ru...
Calzada asked 27/9, 2015 at 16:0
26
Solved
I am doing a tutorial and am getting this error:
Fatal error: Class 'MySQLi' not found (LONG URL) on line 8
The code on line 8 is:
$mysqli = new MySQLi($db_server, $db_user, $db_pass, $db_nam...
15
Solved
I have been using CI just fine using the MySQL driver. I want to use the MySQL driver instead, but as soon as I change it (just add the ‘i’ at the end of MySQL, and added the port number) I get the...
Colt asked 31/8, 2011 at 7:52
5
My entire site runs flawlessly via browser. I have just added a cron job, and each time it runs this error gets triggered:
PHP Startup: Unable to load dynamic library 'mysqli' (tried: /usr/lib/php...
7
I need to bind an array of values to WHERE IN(?) clause. How can I do that?
This works:
$mysqli = new mysqli("localhost", "root", "root", "db");
if(!$mysqli ...
6
Solved
I'm trying to dockerize my website. I've got Nginx and PHP up and running and it's working find except I can't connect to a db. When the page is loaded I get the error:
Fatal error: Uncaught Error...
19
mysqli_real_connect(): (HY000/2002): No such file or directory
PhpMyAdmin error on MacOS. I want answer I really have no idea what I need to do to resolve this.
Champaign asked 26/1, 2017 at 19:11
1 Next >
© 2022 - 2025 — McMap. All rights reserved.