|
-
June 17th, 2012, 10:03 PM
#1
[RESOLVED] % sign and PHP tags
Now the % sign shows in HTML ASCII instead of like a % sign.
Works fine in this example...
PHP Code:
$i = 7; echo $i % 2;
But not in this thread
Last edited by PeejAvery; June 17th, 2012 at 10:07 PM.
If the post was helpful...Rate it! Remember to use [code] or [php] tags.
-
June 18th, 2012, 07:30 AM
#2
Re: % sign and PHP tags
Sorry - simply testing:
PHP Code:
$i = 7;
echo $i % 2;
this (is) % $another test
PHP Code:
if(++$cnt == 0) {
echo '<tr>';
} elseif($cnt % 3 == 0)
PHP Code:
<?php $row['local_link'] = 'testing'; ?>
<table border="1">
<tr>
<?php
$cols = 3;
for ($i = 0; $i < 15; $i++) {
?>
<td bgcolor="#009933"><a href="<?php echo $row['local_link']; ?>.m4v" name="video"><?php echo $row['local_link']; ?></a></td>
<td>
<video width="320" height="240" controls="controls">
<source src="<?php echo $row['local_link']; ?>.m4v" type="video/mp4" />
Your browser does not support the video tag.
</video>
</td>
<?php
if (($i + 1) % $cols == 0) { ?></tr><tr><?php }
}
?>
</tr>
</table>
Last edited by Brad Jones; June 26th, 2012 at 12:21 PM.
-
June 26th, 2012, 12:22 PM
#3
Re: % sign and PHP tags
I edited and replaced the % sign. Seems to be okay now.
-----------------------------------------------
Brad! Jones,
Yowza Publishing
LotsOfSoftware, LLC
-----------------------------------------------
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|