+ 1

Php warning don't know what to do need help PLEAAAAAASE!!!!

WARNING:mysql_query()expects parameter 2 to be resource , object given , why and how do i fix this

26th Jun 2017, 12:25 PM
Victor Cislari
Victor Cislari - avatar
3 Réponses
+ 4
um oh mysql_query(your connection, your query); lets say u have $con = mysqli_connect(bla bla bla); u put mysqli_query($con, "DROP TABLE myTable"); and pls use mysqli, mysql is soooo deprecated
26th Jun 2017, 12:28 PM
David Sebastian Keshvi Illiakis
David Sebastian Keshvi Illiakis - avatar
0
ok hold i'll tell you result in like 10 mins
26th Jun 2017, 12:29 PM
Victor Cislari
Victor Cislari - avatar
0
ok it works now
26th Jun 2017, 12:40 PM
Victor Cislari
Victor Cislari - avatar