Ask coding questions

← Back to all posts
how do i get this error out of my way
glassdemon66

When i try to connect to my remotemysql database via this line of code:

$connect = @mysqli_connect($host,$username,$password,$db);

i keep getting this error:

Uncaught Error: Call to undefined function mysqli_connect() in /home/runner/index.php:14
Stack trace:
#0 {main}
thrown in /home/runner/index.php on line 14

does if anyone know how i can fix this error can you please give me a solution because i've been trying to look for solutions for hours now

Voters
V3rmillionNet
glassdemon66
Comments
hotnewtop
V3rmillionNet

There's no function named myslqi_connect, define the function and it will work

glassdemon66

@V3rmillionNet thank you sooo much bro ive been trying to fix this for hours now thanks alot

V3rmillionNet

I'm glad i helped. @glassdemon66

Vandesm14

@glassdemon66, If @V3rmillionNet answered your question, be sure to mark his comment as the answer!

lojaonline

@V3rmillionNet E COMO FAZ ISSO?

glassdemon66

for some reason it's still not working https://stackoverflow.com/questions/25281467/fatal-error-call-to-undefined-function-mysqli-connect this stackoverflow link show help but i don't understand it