note 68576 rejected from function.mysql-fetch-array by bjori

From: Date: Wed, 02 Aug 2006 13:22:47 +0000
Subject: note 68576 rejected from function.mysql-fetch-array by bjori
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-115470@lists.php.net to get a copy of this message
Note Submitter: erikeeper at gmail dot com ---- $kysely = "SELECT elokuva_id FROM elokuva"; /*executing the query:*/ $tulos = mysql_query($kysely) or die ('Query failed: '.mysql_error()); /*fetching an array from result into a table*/ $idtaulu = mysql_fetch_row($tulos); /*getting the highest value from table* echo max($idtaulu); ...but it doesn't work! The right max-value in my table should be 6, but this code gives me 1. What is the problem?

« previous php.notes (#115470) next »