Autor Zpráva
josh
Profil *
Pomuze nekdo? Jsem uz s tema apostrofama lost :-)
Porad se mi to v dtb neupdatuje

$conn = mysql_pconnect("localhost", "web", "heslo") or die(MySQL_Error());
mysql_select_db("dtb", $conn);
mysql_query("set names cp1250",$conn);

$query=mysql_query(" update tabulka set Z1='".$m1."' where Hrac='".$user."' ");

$m1 je cislo, zatimco $user je jmeno
djlj
Profil
Zkus echo mysql_error();
josh
Profil *
nic to nevypsalo .. ? :/
josh
Profil *
tak uz to bezi, ani nevim, jak je to mozny :-) jeste bych mel jeden dotaz, updatujou se mi nesmyslne jen sloupce Z1-Z8 pri tomhle prikazu

$query1=mysql_query(" update tip_tabulka set Z1='".$m1."' where Hrac='".$user."' ");
$query2=mysql_query(" update tip_tabulka set Z2='".$m2."' where Hrac='".$user."' ");
$query3=mysql_query(" update tip_tabulka set Z3='".$m3."' where Hrac='".$user."' ");
$query4=mysql_query(" update tip_tabulka set Z4='".$m4."' where Hrac='".$user."' ");
$query5=mysql_query(" update tip_tabulka set Z5='".$m5."' where Hrac='".$user."' ");
$query6=mysql_query(" update tip_tabulka set Z6='".$m6."' where Hrac='".$user."' ");
$query7=mysql_query(" update tip_tabulka set Z7='".$m7."' where Hrac='".$user."' ");
$query8=mysql_query(" update tip_tabulka set Z8='".$m8."' where Hrac='".$user."' ");
$query9=mysql_query(" update tip_tabulka set Z9='".$m9."' where Hrac='".$user."' ");
$query10=mysql_query(" update tip_tabulka set Z10='".$m10."' where Hrac='".$user."' ");
$query11=mysql_query(" update tip_tabulka set Z11='".$m11."' where Hrac='".$user."' ");

nevi nekdo proc? Vzdy se zmeni pri zmene Z promene prvnich osm sloupcu 9-11 nikoliv a netusim proc :/
Toto téma je uzamčeno. Odpověď nelze zaslat.

0