ציטוט:
נכתב במקור על ידי 4ior
מה זה קשור גבר?
שאלתי אותו איזה קוד הוא שם.
במקום לענות לי, תענה לו.
|
הוא צודק, יש לי ניסיון קודם עם 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>";
?>
* סליחה על ההקפצה, אבל חבל לפתוח עוד אשכול על זה *