PHP MySQL SSL certificate -


i have vb.net software , shall use php code on website make user customer. have tried many codes same error:

warning:

mysqli_ssl_set() expects parameter 1 mysqli, null given in xxxxxxxxxxx/makeuser/insert.php on line 12 warning: mysqli::mysqli(): (hy000/2002):

the php code needs certificate shall store certificate. shall store them in webserver? understand can store certificate in webserver safe?

when shall execute sql script doing this:

$sql = $conn->prepare ("create database '$_post[group]' /*!40100 default character set latin1 */;"); 

i error on execute process. if use $ssl instead of $conn don't error. correct?

whoa.

first things first never use $_post directly in sql. dangerous. post "; drop databases" , run.

next, query, error because mysql query failed, either syntax error, or connection. how creating $conn object? should

$conn = mysqli_connect($host... 

if not connected mysql server, that's problem, read php docs regarding mysqli.

ssl certificate - talking mysql connection, or web server itself? should not placed somewhere accessible web, no, installed onto server , configured web server software (apache/nginx)


Comments

Popular posts from this blog

wordpress - (T_ENDFOREACH) php error -

Export Excel workseet into txt file using vba - (text and numbers with formulas) -

Using django-mptt to get only the categories that have items -