Zdravim,
preco mi nechce vypisat "text" ked "nadpis" hej ?
Tu je zdrojak:
mysql_connect("localhost", "root");
mysql_selectdb("pokus");
mysql_query("INSERT INTO `rspokus` (id,nadpis) VALUES (1,'Nadpis')");
mysql_query("INSERT INTO `rspokus` (id,text) VALUES (2,'Text')");
$nadpis = mysql_query("SELECT * FROM rspokus WHERE id=1;") or die(mysql_error());
$nadpis_text = mysql_fetch_array($nadpis);
$text = mysql_query("SELECT * FROM rspokus WHERE id=2;") or die(mysql_error());
$text_text = mysql_fetch_array($text);
echo $nadpis_text['nadpis'];
echo $text_text['text'];
?>
Tu mam vytvorenu tabulku: