Select

From: Date: Tue, 14 Aug 2001 14:53:14 +0000
Subject: Select
Groups: php.general 
Request: Send a blank email to php-general+get-62645@lists.php.net to get a copy of this message
Hi, I'm having a problem with my Select statement. This is what i'm doing: $connection = @mysql_connect("l", "c", "c") or die("Couldn't connect."); $db = @mysql_select_db($db_name, $connection) or die("Couldn't select database."); $sql =" SELECT * FROM table_1 "; $result = @mysql_query($sql,$connection) or die("Couldn't execute query."); $data=mysql_fetch_row($result); $count=$data[0]; echo $count; Yet the only result I get is the first value of the first column.............

« previous php.general (#62645) next »