Pulling one record from a db(newbie)

From: Date: Mon, 27 May 2002 03:03:14 +0000
Subject: Pulling one record from a db(newbie)
Groups: php.general 
Request: Send a blank email to php-general+get-99325@lists.php.net to get a copy of this message
Hi, I know how to use limit to pull 2 or more records out of a database. What I wish to do is only pull one record from a database. I am using the following query: $query = "select * from news limit LIMIT $id, ++id"; I get all sorts of parse errors and stuff. Please Help. Also is there a function to return only one record? JJ Harrison www.tececo.com webmaster@tececo.com

« previous php.general (#99325) next »