Need help making a blockquote and line items conditional
Posted on
16th Feb 2014 07:03 pm by
admin
I have some code I bought a few years ago that allows my clients to update content on their site using an Excel spreadsheet. Well this particular application sometimes has line items so I need to come up with a way to do this since it didn't like the fact I put the tags in the echo statement.
Code: <?php echo <h2> $record['header1']; </h2> ?>
<?php echo <p> $record['para1']; </p> ?>
<blockquote><?php echo <li> $record['bullet1']; </li> ?>
Did you know?Explore Trending and Topic pages for more stories like this.
<li><?php echo $record['bullet1-2']; </li> ?>
<?php echo <li> $record['bullet1-3']; </li> ?>
<?php echo <li> $record['bullet1-4']; </li> ?>
<?php echo <li> $record['bullet1-5']; </li> ?>
<?php echo <li> $record['bullet1-6']; </li> ?>
<?php echo <li> $record['bullet1-7']; </li> ?>
</blockquote>
<?php echo <p> $record['para1-end']; </p> ?> So I took them out but I'm stuck with having bullet points when I don't want them.
Code: <h2><?php echo $record['header1']; ?></h2>
<p><?php echo $record['para1']; ?></p>
<blockquote><li><?php echo $record['bullet1']; ?></li>
<li><?php echo $record['bullet1-2']; ?></li>
<li><?php echo $record['bullet1-3']; ?></li>
<li><?php echo $record['bullet1-4']; ?></li>
<li><?php echo $record['bullet1-5']; ?></li>
<li><?php echo $record['bullet1-6']; ?></li>
<li><?php echo $record['bullet1-7']; ?></li>
</blockquote>
<p><?php echo $record['para1-end']; ?></p>
Can someone help me add the condition where if there is no data the bullet point doesn't display?
(please ignore my non-compliant code using blockquote instead of UL)
Thanks very much for your time!
tag inside php... hi
Code: <?php echo "<td width="$columnWidth%" align=&How to set pass login name from htaccess to php When the user logs into my members page via htaccess, I'd like to retain the username so that I can Extracting URL pointer within XML tag Hi.
I'm trying to extract text between two quotation marks in XML. For example, I want to ex first id from db not showing I have a php script which displays the content of a mysql table as a html table with sorting, delete couldn't connect to your database Hello I am new to php mysql
Actually i have read A tutorial on nettuts "http://net.tu array empty Hiya peeps,
Ok here is the codes.
order.php
Code: urldecode question How would I format this line of code properly?
<?php echo urldecode($_GET['Title']); ? using file_get_contents?? okay how would i create a script using file_get_contents() in php have it grab search pages 1-20 and Shuffle between users ?? I have multiple $users in table. I need to send them $message.
I need to send the next messag
|