Re: Stupid newbie looping MySQL question

From: Date: Mon, 08 Jan 2001 06:59:47 +0000
Subject: Re: Stupid newbie looping MySQL question
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-5694@lists.php.net to get a copy of this message
> Per your instructions, after linking to the db I put in: > > $query = "SELECT name FROM forums"; > echo $query; > $result = mysql_db_query ("tnh", $query); > if(!$result) echo mysql_error(); > > and the result, cut and pasted from the web page, was: > > SELECT name FROM forums > > No error message. Ok, then your query is fine. What does: echo mysql_numrows($result); show? -Rasmus

« previous php.db (#5694) next »