error message in showing " <?php echo $record['info1'] ?>"
2 posts by 2 authors in: Forums > CMS Builder
Last Post: January 5, 2009 (RSS)
By esupport - January 4, 2009
hi dear sir [:)]
error message:
Notice: Undefined index: info1 in /var/www/vhosts/ourdomain/httpdocs/_pj/tfh/productsDetail.php on line 204
code:
<table border="0" cellpadding="14" cellspacing="15" class="link03">
<tr>
<?php foreach ($productsRecords as $record): ?>
<?php foreach ($record['upload1'] as $upload): ?>
<td><img src="<?php echo $upload['thumbUrlPath'] ?>" width="<?php echo $upload['thumbWidth'] ?>" height="<?php echo $upload['thumbHeight'] ?>" alt="" /></br>
<?php echo $record['info1'] ?>[/#ff0000]</td>
<?php $maxCols=5; if (@++$count % $maxCols == 0): ?>
</tr>
<tr>
<?php endif ?>
<?php endforeach ?>
<?php endforeach; ?>
</tr>
</table>
I creat a thum image and want to show the image title name. but got error message. is there any body know about it? hope to get your help.
Great thanks!
JH
error message:
Notice: Undefined index: info1 in /var/www/vhosts/ourdomain/httpdocs/_pj/tfh/productsDetail.php on line 204
code:
<table border="0" cellpadding="14" cellspacing="15" class="link03">
<tr>
<?php foreach ($productsRecords as $record): ?>
<?php foreach ($record['upload1'] as $upload): ?>
<td><img src="<?php echo $upload['thumbUrlPath'] ?>" width="<?php echo $upload['thumbWidth'] ?>" height="<?php echo $upload['thumbHeight'] ?>" alt="" /></br>
<?php echo $record['info1'] ?>[/#ff0000]</td>
<?php $maxCols=5; if (@++$count % $maxCols == 0): ?>
</tr>
<tr>
<?php endif ?>
<?php endforeach ?>
<?php endforeach; ?>
</tr>
</table>
I creat a thum image and want to show the image title name. but got error message. is there any body know about it? hope to get your help.
Great thanks!
JH
-Jax H.
Re: [JH] error message in showing " <?php echo $record['info1'] ?>"
By Dave - January 5, 2009
Hi JH,
Try this instead:
<?php echo $upload['info1'] ?>
Let me know if that works for you.
Try this instead:
<?php echo $upload['info1'] ?>
Let me know if that works for you.
Dave Edis - Senior Developer
interactivetools.com
interactivetools.com