View Single Post
ישן 01-08-07, 21:35   # 9
נמרוד
הוסטסניון
 
נמרוד's Avatar
 
מיני פרופיל
תאריך הצטרפות: Oct 2006
הודעות: 2,766

נמרוד לא מחובר  

ציטוט:
נכתב במקור על ידי 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>";

?>


* סליחה על ההקפצה, אבל חבל לפתוח עוד אשכול על זה *
  Reply With Quote