Re: Problemas con la busqueda
| From: | Carlos Longarela | Date: | Tue, 17 Aug 2004 11:28:19 +0000 |
| Subject: | Re: Problemas con la busqueda | ||
| References: | 1 | Groups: | php.general.es |
| Request: | Send a blank email to general-es+get-50790@lists.php.net to get a copy of this message | ||
En vez de:
while($isql = mysql_fetch_array($answ)){
echo "
<tr>
<td width='20%'><img src=$isql->pix><br>$isql[Type]
$isql->Name<br>REF#$isql->Ref,<br><strong>SERIAL N°:
$isql->Serial</strong><br>DETAILS: $isql->Description</td>"
}
Prueba con:
while($isql = mysql_fetch_array($answ)){
echo '
<tr>
<td width="20%">
<img src='.$isql['pix'].' /><br
/>'.$isql['Type'].$isql['Name'].'<br
/>REF#'.$isql['Ref'].',<br
/><strong>SERIAL N°:
'.$isql['Serial'].'</strong><br />DETAILS:
.'$isql['Description']
</td>
</tr>';
}
Estás utilizando mysql_fetch_array() ej: $isql['pix']. en vez de
mysql_fetch_object() ej:$isql->pix.
Además de la sintáxis de la sentencia sql como te indicó Rolan.