mrneilrobinson Posted October 19, 2009 Share Posted October 19, 2009 hi there, i am trying to connect to a db, but i am having the following message return: Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/sites/furryfrog.co.uk/public_html/aliens/addemail.php on line 20 Error querying database. when i change mysql_query() to mysqli_query() i recieve the following message Fatal error: Call to undefined function: mysqli_connect() in /home/sites/furryfrog.co.uk/public_html/aliens/addemail.php on line 12 i am using php version 4, as parts of the site are built in the cms expression engine that does not support php5 i dont know what avenue to pursue with fixing this error, mysqli or mysql? i hope this makes sense! merci Link to comment https://forums.phpfreaks.com/topic/178217-mysqli-or-mysql/ Share on other sites More sharing options...
fenway Posted October 19, 2009 Share Posted October 19, 2009 The first error means your query failed -- use mysql_error() to determine what the problem was. If you'd like our help, show us both the query and the error. Link to comment https://forums.phpfreaks.com/topic/178217-mysqli-or-mysql/#findComment-939638 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.