2 Tables : "Marques" with (id
,nom
) and "Modeles" with (id,id_parent,nom)
for the moment i can display it without problem as there :
http://www.st-event.be/vehicules/question.php
My problem : I would like to display THE NAME OF THE "MARQUES" with same ID of "ID_PARENT". The Result is always RESOURCE id#
I show my code, so it will be better to understand : `
echo(
"<table border='1'>
<tr>
<td>ID PARENT</td><td>NOM PARENT</td><td>NAME</td>
</tr>" ) ;
while( $result = mysql_fetch_object( $requete ) )
{
//tentative d'inscription du parent mais sans succès pour l'instant
$prt = "SELECT `nom`".
" FROM `marques`".
" WHERE `id` = \"". $result->id_parent ."\"" or die(mysql_error());
$requete2 = mysql_query( $prt, $cnx ) ;
//---------------------------------------------------------------------
echo(
"<tr>
<td>". $result->id_parent ."</td><td>".$requete2."</td><td>".$result->nom
."<td> <a href=\"modification_modeles.php?id=".$result->id."\"><img src=.\img\modifier.png width=15px></a></td><td>") ;
?>`
Would any body can help to find where i did an error ?