Ver Mensaje Individual
  #1 (permalink)  
Antiguo 04/11/2008, 10:12
Dilema101
 
Fecha de Ingreso: junio-2007
Mensajes: 10
Antigüedad: 16 años, 10 meses
Puntos: 0
Error con un condicional y no se porque!

Mi problema es este, y llevo horas dandole vueltas y no consigo solucinarlo.
El condigo que tengo es este

<table cellpadding="0" cellspacing="0" border="0" style="height:258px">
<tr>
<td style="height:55px; border:1px solid #fcf9f2; border-width:0 0 0 25px" class="vam">'.$p_name.'</td>
</tr>
<tr>
<td style="height:114px " class="pic" align="center">'.$p_pic.'</td>
</tr>
<tr>
<td style="height:27px; border:1px solid #fcf9f2; border-width:0 0 0 25px" class="vam">'.$p_price.'</td>
</tr>
<tr>
<td style="height:62px; border:1px solid #fcf9f2; border-width:0 0 0 15px" ><a href="' . tep_href_link('product_info.php?products_id='.$p_i d) . '">'.tep_image_button("button_details.gif").'</a>
<br style="line-height:2px"><a href="'.tep_href_link("products_new.php","action=b uy_now&products_id=".$p_id).'">'.tep_image_button( 'button_add_to_cart1.gif').'</a></td>


</tr>
</table></td></tr></table>');

y lo unico que quiero es ponerle una condicional a la imagen del carrito para controlar el stock pero me da error : Parse error: syntax error, unexpected T_STRING, expecting ')' in /home/jocrfs27/public_html/baurora/includes/modules/product_listing.php on line 185(donde la linea 185 es el condicional)

<table cellpadding="0" cellspacing="0" border="0" style="height:258px">
<tr>
<td style="height:55px; border:1px solid #fcf9f2; border-width:0 0 0 25px" class="vam">'.$p_name.'</td>
</tr>
<tr>
<td style="height:114px " class="pic" align="center">'.$p_pic.'</td>
</tr>
<tr>
<td style="height:27px; border:1px solid #fcf9f2; border-width:0 0 0 25px" class="vam">'.$p_price.'</td>
</tr>
<tr>
<td style="height:62px; border:1px solid #fcf9f2; border-width:0 0 0 15px" ><a href="' . tep_href_link('product_info.php?products_id='.$p_i d) . '">'.tep_image_button("button_details.gif").'</a>
<br style="line-height:2px">
If ($listing['products_quantity']<>0) //linea 185
{
<a href="'.tep_href_link("products_new.php","action=b uy_now&products_id=".$p_id).'">'.tep_image_button( 'button_add_to_cart1.gif').'</a></td>
}else{
$lc_text = tep_image_button('out_stock.gif', IMAGE_BUTTON_OUT_STOCK) . '&';
}

</tr>
</table></td></tr></table>');

Gracias por vuestra atencion!!!