Jump to content

egocor91

Newbie
  • Posts

    4
  • Joined

  • Last visited

egocor91's Achievements

Explorer

Explorer (1/14)

0

Reputation

  1. Спасибо... торопился
  2. Как после вывода рандомом строки заблокировать ее так, что бы в следующий раз ее выводило? <?php $host="localhost"; $user="egocor"; $pwd="transcend"; $db=mysql_connect($host,$user,$pwd); mysql_select_db("diplom",$db); //include "mysql.php"; $result=mysql_query("SELECT * FROM diplom ORDER BY RAND() LIMIT 1"); $n=mysql_num_rows($result); echo "<table border=1>"; for($i=0;$i<$n;$i++) echo "<tr><td>",mysql_result($result,$i,"id"),"</td><td>",mysql_result($result,$i,"F"),"</td><td>",mysql_result($result,$i,"I"),"</td><td>",mysql_result($result,$i,"O"),"</td><td>",mysql_result($result,$i,"BirthDay"),"</td><td>",mysql_result($result,$i,"Info"),"</td><td>",mysql_result($result,$i,"Photo"),"</td></tr>"; echo "</table>"; mysql_close($db); ?>
  3. Все равно проблема осталась в 10 линии
  4. <?php $host=localhost; $user=egocor; $pwd=transcend; $db=mysql_connect($host,$user,$pwd); mysql_select_db(diplom,$db); //include "mysql.php"; $result=mysql_query("SELECT * FROM diplom ORDER BY №"); $n=mysql_num_rows($result); echo "<table border=1>"; for($i=0;$i<$n;$i++) echo "<tr><td>",mysql_result($result,$i,№),"</td><td>",mysql_result($result,$i,F),"</td><td>",mysql_result($result,$i,I),"</td></tr>",mysql_result($result,$i,O),"</td></tr>",mysql_result($result,$i,BirthDay),"</td></tr>",mysql_result($result,$i,Info),"</td></tr>",mysql_result($result,$i,Photo),"</td></tr>"; echo "</table>"; mysql_close($db); ?>
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy