Pogledajte određenu poruku
Staro 14. 11. 2010.   #2
Milance
novi član
Na probnom radu
 
Datum učlanjenja: 30.04.2010
Poruke: 21
Hvala: 1
0 "Hvala" u 0 poruka
Milance is on a distinguished road
Default

Moras da pocnes da citas php manual, tamo sve pise lepo.

Evo ti primer kako bi ovo trebalo da ide

//performs the query
$result = mysql_query("SELECT $fields FROM $table WHERE $uniquefield = '$uniquevalue'") or die("Could not perform select query - " . mysql_error());

$num_rows = mysql_num_rows($result);

//if query result is empty, returns NULL, otherwise, returns an array containing the selected fields and their values
if($num_rows == NULL)
{



------
int mysql_num_rows ( resource $result )
Milance je offline   Odgovorite uz citat