PHP update
- Started
- Last post
- 5 Responses
- Claymantis
http://www.odoughs.com/products.…On the left you will see "Package of 4 crusts and 4"
It should say "package of 4 crusts and 4 sauce pouches"This is all updated by a cms.
How do I make room for more characters?Thanks!
- BattleAxe0
can you post your echo statement , looks like your field is getting truncated , not sure how your are pulling the data
- moth0
Throw away the package and eat the crusts?
- Claymantis0
is this what your looking for?
<?php
} else {
$catid = $_GET['catid'];
$result = mysql_query("SELECT * FROM products WHERE `cat` = '$catid' ORDER BY `name` ASC");while ($data = mysql_fetch_array($result)) {
extract($data);
?>
<div class="pItem">
<a href="?catid=<?php echo $cat; ?>&productid=<?php echo $id; ?>"><img src="images/products/items/thumbs/<?php echo str_replace(' ', '', strtolower($name)); ?>.jpg" title="Buns" />
<div class="pItemName"><?php echo $name; ?><?php
if ($packageof == '101' || $packageof == '102' || $packageof == '') {
// don't print package of for these.
} else {
echo " (Package of $packageof)";
}
?></div></a>
</div>
<?php
}
}
- BattleAxe0
code looks clean,
check the database and check the products table , look where you have the package info saved, does it read as it should ? maybe the input field where you are entering the data has a character limit
- is that product the only one getting cut off? are there others with longer descriptions that do work?BattleAxe
- Claymantis0
I found the database table that controls the number.
I changed it and it worked!I'm not a back end guy - I thought it might be only HTML.
But I got it to work, thanks to your help!