Skip navigation links

MySQL Forums :: PHP :: mysql_num_rows(): supplied argument is not a valid MySQL result


Advanced Search

Re: mysql_num_rows(): supplied argument is not a valid MySQL result
Posted by: stef an ()
Date: May 21, 2012 12:15PM

found it!!!
file is called mysql.ssi.php and this is the code it contains:
<?php
function runQuery($query) {
	$connect = mysql_connect(MYSQL_SERVER, MYSQL_USERNAME, MYSQL_PASSWORD);
	if (!$connect) {
		die("<div class=\"error\">" . mysql_error() . "</div>");
	}
	mysql_select_db(MYSQL_DATABASE, $connect);
	$result = mysql_query($query, $connect);
	return $result;
}

file is in a different folder

Options: ReplyQuote


Subject Written By Posted
mysql_num_rows(): supplied argument is not a valid MySQL result stef an 05/14/2012 07:08AM
Re: mysql_num_rows(): supplied argument is not a valid MySQL result laptop alias 05/14/2012 07:55AM
Re: mysql_num_rows(): supplied argument is not a valid MySQL result stef an 05/14/2012 08:46AM
Re: mysql_num_rows(): supplied argument is not a valid MySQL result Peter Brawley 05/14/2012 10:20AM
Re: mysql_num_rows(): supplied argument is not a valid MySQL result laptop alias 05/14/2012 11:21AM
Re: mysql_num_rows(): supplied argument is not a valid MySQL result stef an 05/16/2012 07:43AM
Re: mysql_num_rows(): supplied argument is not a valid MySQL result Rick James 05/16/2012 08:51AM
Re: mysql_num_rows(): supplied argument is not a valid MySQL result stef an 05/16/2012 05:50PM
Re: mysql_num_rows(): supplied argument is not a valid MySQL result laptop alias 05/16/2012 11:40AM
Re: mysql_num_rows(): supplied argument is not a valid MySQL result stef an 05/16/2012 05:32PM
Re: mysql_num_rows(): supplied argument is not a valid MySQL result stef an 05/19/2012 04:19AM
Re: mysql_num_rows(): supplied argument is not a valid MySQL result Rick James 05/20/2012 08:55PM
Re: mysql_num_rows(): supplied argument is not a valid MySQL result stef an 05/21/2012 06:20AM
Re: mysql_num_rows(): supplied argument is not a valid MySQL result laptop alias 05/21/2012 06:51AM
Re: mysql_num_rows(): supplied argument is not a valid MySQL result stef an 05/21/2012 12:15PM
Re: mysql_num_rows(): supplied argument is not a valid MySQL result Barry Galbraith 05/21/2012 06:07PM
Re: mysql_num_rows(): supplied argument is not a valid MySQL result Peter Brawley 05/21/2012 02:33PM
Re: mysql_num_rows(): supplied argument is not a valid MySQL result stef an 05/21/2012 02:50PM
Re: mysql_num_rows(): supplied argument is not a valid MySQL result Peter Brawley 05/22/2012 09:35AM
Re: mysql_num_rows(): supplied argument is not a valid MySQL result stef an 05/22/2012 12:28PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.