You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
Здравствуйте, подскажите какой тег использовать для увеличения значения, пример на картинке.
Вроде, про такой тег я слышала. Если есть тег прогресс бар, значит и такое должно быть.
Question
egocor91
Как после вывода рандомом строки заблокировать ее так, что бы в следующий раз ее выводило?
<?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);
?>
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.