Mysql problema
Last Updated: May 28 2008 13:02, Started by
Alexutzu_1991
, Apr 18 2008 14:55
·
0
#19
Posted 08 May 2008 - 19:53
Va rog eu stiu ca stiti... Sunt n00b ce sa fac... :|... Spuneti'mi si mie.
|
#20
Posted 08 May 2008 - 20:17
$i=0; while($row = mysql_fetch_array($result)) { $i++; echo "<tr>"; echo "<td class=tabele_tabele>" . "<strong>" . $i . "</td>"; echo "<td class=tabele_tabele>" . "<strong>" . $row['srvname'] . "</td>"; echo "<td class=tabele_tabele>" . "<strong>" . $row['srvip'] . ":" . $row['srvport'] . "</td>"; echo "<td class=tabele_tabele>" . "<strong>" . $row['srvplayers'] . "</td>"; echo "<td class=tabele_tabele>" . "<strong>" . "<a href=http://cs.dap.ro/stats/stats.php?ip=$row[srvip]&port=$row[srvport]>" . "Verifica"; echo "</center></tr>"; } era si mai sus solutia Edited by WizzB, 08 May 2008 - 20:35. |
#21
Posted 10 May 2008 - 07:24
La codul pe care lai pus tu de exemplu daca am 5 servere in lista el imi arata doar 4 :| ... ... ...
Edited by Alexutzu_1991, 10 May 2008 - 07:24. |
#22
Posted 28 May 2008 - 13:02
Alexutzu_1991, on May 10 2008, 08:24, said: La codul pe care lai pus tu de exemplu daca am 5 servere in lista el imi arata doar 4 :| ... ... ... Ba iti arata exact toate randurile din rezultatul interogarii. Daca tu ai in baza de date 4 servere si faci o interogare in care bagi un "limit 5" el nu o sa-ti intoarca 5 ci patru rezultate. Si ar mai fi ceva. Tu deschizi <strong>-uri in nestire dar nu le mai si inchizi. Ca sa nu mai spun ca ai deschis un <center> inainte de tabel si l-ai inchis in continutul tabelului. Oare in loc sa scrii "<td class=tabele_tabele>" . "<strong>" nu era mai bine "<td class=tabele_tabele><strong>"? Nu era acelasi lucru? Te chinui cu MySQL si PHP dar nu stii HTML. E naspa. Edited by deltaT, 28 May 2008 - 13:06. |
Anunturi
Bun venit pe Forumul Softpedia!
▶ 0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users