Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

IF with $listing['products_model']


riccardino

Recommended Posts

Hi...

I have resolved all my problems...

But now, this isthe last!

 

The file is: product_listing.php

 

---

 

$lc_text = '<a href=index.php?cPath=' . $listing['products_model'] . '>' . $listing['products_name'] . '</a> ';

 

---

 

I want this link when ' . $listing['products_model'] . ' isn't equal to '0'

 

Can you help me?

Link to comment
Share on other sites

if ($listing['products_model'] != '0') {

$lc_text = '<a href=index.php?cPath=' . $listing['products_model'] . '>' . $listing['products_name'] . '</a> ';

}

 

is the literal construction of what you asked for

KEEP CALM AND CARRY ON

I do not use the responsive bootstrap version since i coded my responsive version earlier, but i have bought every 28d of code package to support burts effort and keep this forum alive (albeit more like on life support).

So if you are still here ? What are you waiting for ?!

 

Find the most frequent unique errors to fix:

grep "PHP" php_error_log.txt | sed "s/^.* PHP/PHP/g" |grep "line" |sort | uniq -c | sort -r > counterrors.txt

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...