<?php
mysql_connect("localhost","root");
mysql_select_db("pokus");
mysql_query("CREATE TABLE zamestnanci(ID int,jmeno varchar(10),prijmeni varchar(15),datum_narozeni date)");
mysql_query("INSERT into zamestnanci(ID, jmeno, prijmeni, datum_narozeni) values('1','Marek','Vyskočil','8.8.1888') ");
mysql_connect("localhost","root");
mysql_select_db("pokus");
$query = mysql_query("select jmeno from zamestnanci where ID=1");
$row = mysql_fetch_array($query); -18 řádek
echo $row["jmeno"];
?>
A píše mi to tohle:
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in H:\Program Files\EasyPHP 2.0b1\www\db\index.php on line 18
Můžete mi někdo říct, co je tam špatně?