Klokjis Posted December 19, 2005 Report Share Posted December 19, 2005 reku mekleejos, bet neatradu, taadu lietu kaa piem $x pieshkjirt veertiibu, kas ir vienaada ar... -te saakas probleema- maximaalo (lielaako) id veertiibu no mysql tabulas Link to comment Share on other sites More sharing options...
Roze Posted December 19, 2005 Report Share Posted December 19, 2005 $result = mysql_query("SELECT MAX(id) FROM tabula"); // vai arii SELECT id FROM tabula ORDER BY id DESC LIMIT 1 $row = mysql_fetch_row($result); $x = $row[0]; Link to comment Share on other sites More sharing options...
Recommended Posts