View Single Post
ישן 23-08-07, 18:03   # 1
DanielS
הוסטסניון
 
מיני פרופיל
תאריך הצטרפות: Jan 2007
מיקום: ישראל
הודעות: 2,429

DanielS לא מחובר  

[PHP] מערכים וטבלאות - עזרה

לפני שאני שואל אני רק מתחיל אז אל תגידו לי. וואי איזה פשוט. איזה מעפאן. אני ממש ממש רק בהתחלה.

PHP קוד:
<html>
<head>
<title> language of country </title>
<head>
<body>
<h1> The Lang In Table </h1>
<h3> By DanielS </h3>
<?php
$lang 
= array(=> "Hebrew""English""Spanish");
$country = array(=> "Israel""USA""Spain");
?>
<table border="1" width="100%" id="table1" cellspacing="0" cellpadding="0" bordercolor="#000000">
    <tr>
        <td>
        <p align="center"><u><b>Country</b></u></td>
        <td>
        <p align="center"><u><b>Lang</b></u></td>
    </tr>
    <tr>
        <td align="center"><?php echo $country[1?></td>
        <td align="center"><?php echo $lang[1?></td>
    </tr>
    <tr>
        <td align="center"><?php echo $country[2?></td>
        <td align="center"><?php echo $lang[2?></td>
    </tr>
    <tr>
        <td align="center"><?php echo $country[3?></td>
        <td align="center"><?php echo $lang[3?></td>
    </tr>
</table>
</body>
</html>
השאלה שלי היא כזאת. איך אני יעשה לולאה שתסדר את זה בידיוק לפי הסדר הנוכחי בלולאה.

תודה,
דניאל
  Reply With Quote