|
![]() |
# 1 |
חבר וותיק
|
|
![]() |
![]() |
# 2 |
הוסטסניון
|
הוא צודק, יש לי ניסיון קודם עם SQL. אני השתמשתי בקוד הזה:
<? $host="localhost"; $user="discer_discer"; $password="1753"; $db="discer_funil"; $con=@mysql_connect($host,$user,$password); mysql_select_db($db) or die(mysql_error()); $sqlquery="SELECT top 3 * FROM 'games'"; $theresult=mysql_query($sqlquery,$con) or die(mysql_error()); while ($recordeset=@mysql_fetch_array($theresult)) echo "<div class='game'><img src='images/".$recordeset["image"]."'class='game-img' /><br />"; echo $recordeset["descraption"]; echo "</div>"; ?> * סליחה על ההקפצה, אבל חבל לפתוח עוד אשכול על זה * |
![]() |
![]() |
חברים פעילים הצופים באשכול זה: 1 (0 חברים ו- 1 אורחים) | |
|
|