Skip to content
Advertisement

Tag: mysqli

connecting to mysql via ipaddress with MySQL and mysqli

I have weird problem. I don’t have a domain name for my remote mysql database, so on my development machine I usually just connect to a remote mysql using the ip address. On my development machine the ip address connection works for both mysql and mysqli connections. However, when I upload to my live server (CentOS) (also connecting to the

How to set a collation with mysqli?

My database uses utf8_czech_ci collation and I want to set it to my database connection too. Mysqli_set_charset won’t let me set collation, if I don’t happen to want the default one, utf8_general_ci. Here was suggested first to set the charset through mysqli_set_charset and then to set collation by SET NAMES. So I did it and connection collation is still utf8_general_ci.

How to output mysqli_fetch_field_direct?

I’m trying to convert this code from mysql to mysqli. But when I print it and open in excel file I got an error. Catchable fatal error: Object of class stdClass could not be converted to string in C:xampplitehtdocsapptext2.php on line 139 Can someone Teach me how to convert this code in mysqli correctly? And this the error line Answer

How to fix Error while reading greeting packet?

I am trying to connect to server in NetBeans. I write the code as below: Running of this code return this erreurs: Answer MySQL can be configured to not accept external connections, for security reasons. By saying the full domain name, you are using the public IP and therefore you are an external connection. If MySQL is running on the

how to bind multiple parameters to MySQLi query [closed]

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. Closed 8 years ago. I have a mysql

Bind Param with array of parameters

I have a function that does this: Which sends off to my database class, which does this: The problem is this doesn’t work. What I was hoping to do, was to take the $params list and have it list them after the $type, so that the query would resemble: But obviously I’m going about it the wrong way. is there

Advertisement