Forum » Programiranje » php - update
php - update

masticore ::
mysql_query = ("UPDATE imeTabele SET blabla=blabla+1 where id=$id");s tem povečam pač blabla za ena, samo ko hočm narest recimo blabla=$input .... mi noče delat .... kako bi tam namest "blabla+1" ustavil spremenljivko.... hvala za pomoč ...

MasterBlaster ::
?e ho?eš popraviti vrednost moraš isto narediti query:
mysql_query = "UPDATE imeTabele SET blabla = '$nova_vrednost' where id=$id";
mysql_query = "UPDATE imeTabele SET blabla = '$nova_vrednost' where id=$id";
Vredno ogleda ...
Tema | Ogledi | Zadnje sporočilo | |
---|---|---|---|
Tema | Ogledi | Zadnje sporočilo | |
» | [JS / PHP] miniajax postOddelek: Programiranje | 1055 (789) | cobrica |
» | pomoč pri spletni straniOddelek: Programiranje | 1292 (770) | no1pheeew |
» | 2002-03-29 -> 29.3.2002Oddelek: Izdelava spletišč | 1639 (1465) | cahahopie |
» | PHP in mySQLOddelek: Programiranje | 1959 (1667) | rasta |
» | pa še 2 PHP problema ... (strani: 1 2 )Oddelek: Programiranje | 3045 (2594) | rasta |