
27-04-2007, 10:48
|
|
|
|
חבר מתאריך: 22.04.07
הודעות: 28
|
|
|
עזרה ביצירת קישור בין פלאש ל-PHP
כתבתי את קוד ה-PHP הבא כפי שקראתי במדריך:
קוד:
<php
mysql_connect ('localhost', 'root', 'hidden);
mysql_select_db ('general');
$query1 = mysql_query("SELECT * FROM articles ORDER BY 'Time' DESC LIMIT 0, 1");
$query2 = mysql_query("SELECT * FROM articles ORDER BY 'Time' DESC LIMIT 1, 1");
$query3 = mysql_query("SELECT * FROM articles ORDER BY 'Time' DESC LIMIT 2, 1");
$query4 = mysql_query("SELECT * FROM articles ORDER BY 'Time' DESC LIMIT 3, 1");
$row1 = mysql_fetch_array($query1);
$row2 = mysql_fetch_array($query2);
$row3 = mysql_fetch_array($query3);
$row4 = mysql_fetch_array($query4);
$title1 = row1['Title'];
$title2 = row2['Title'];
$title3 = row3['Title'];
$title4 = row4['Title'];
$description1 = row1['Description'];
$description2 = row2['Description'];
$description3 = row3['Description'];
$description4 = row4['Description'];
$id1 = row1['id'];
$id2 = row2['id'];
$id3 = row3['id'];
$id4 = row4['id'];
$cat1 = row1['Category'];
$cat2 = row2['Category'];
$cat3 = row3['Category'];
$cat4 = row4['Category'];
$type1 = row1['Type'];
$type2 = row2['Type'];
$type3 = row3['Type'];
$type4 = row4['Type'];
echo "&tit1=$title1";
echo "&desc1=$description1";
echo "&iden1=$id1";
echo "&tit2=$title2";
echo "&desc2=$description2";
echo "&iden2=$id2";
echo "&tit3=$title3";
echo "&desc3=$description3";
echo "&iden3=$id3";
echo "&tit4=$title4";
echo "&desc4=$description4";
echo "&iden4=$id4";
echo "&type1=$type1";
echo "&type2=$type2";
echo "&type3=$type3";
echo "&type4=$type4";
echo "&cat1=$cat1";
echo "&cat2=$cat2";
echo "&cat3=$cat3";
echo "&cat4=$cat4";
?>
עכשיו אני רוצה לדעת איך אני גורם לפלאש בעזרת ה-ACTIONSCRIPT להשתמש במשתנים שקבעתי. ואז איך לגרום לתיבות טקסט להכיל אותם...
תודה לעוזרים!
|