You are here: array in array... « PHP SQL « IT news, forums, messages
array in array...

Posted by stjepko on 05/29/06 23:25

I need help. I have done this:

$sql = "SELECT jedan.ime, jedan.text, dva.rb, dva.opis, dva.proizvod,
dva.sifra, dva.cijena
from jedan, dva WHERE jedan.ime=dva.ime ";
$result = mysql_query($sql,$link) or die("ERROR IN
QUERY:".$sql."<br>".mysql_error());
while($row = mysql_fetch_array($result))
{
include "show.php";
}


and show.php is:

table>
<tr>
<td><?= $row["ime"]?></td>
<td><?= $row["text"]?></td>
</tr>
<tr>
<td><?= $row["rb"]?></td>
<td<?= $row["opis"]?></td>
<td><?= $row["proizvod"]?></td>
<td><?= $row["sifra"]?></td>
<td><?= $row["cijena"]?></td>
</tr>
</table

The problem is in row ime and text. I have to get something like this:

Ime1 Text1
1. rb opis proizvod sifra cijena
2. rb opis proizvod sifra cijena
....

Ime2 Text2
1. rb opis proizvod sifra cijena
2. rb opis proizvod sifra cijena

but i got:

Ime1 Text1
1. rb opis proizvod sifra cijena
Ime1 Text1
2. rb opis proizvod sifra cijena
....

Please help...
tnx

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация