View Single Post
Old 10-17-2011, 06:26 PM  
georgeyw
58008 53773
 
georgeyw's Avatar
 
Industry Role:
Join Date: Jul 2005
Location: Australia
Posts: 9,864
Quote:
Originally Posted by Confined View Post
Oh yeah baby! that's a great way to get hacked
It was a quick example you fuckstick. Handled correctly GET / POST etc are all safe

Quote:
Originally Posted by TheSquealer View Post
Here is what i wanted... assume there is 5 rows of pictures as an example

<div class="rowofpictures">
<div class="pictitle">
Title of pic
</div>
<div class="image1">
<img src="image-a.jpg" />
</div>
<div class="picdescription">
This is the image description under the image
</div>
</div>

Assume there is 5 of them on a row and i want to put all css for that row into a php file and include it in the page... like row1.php, the second row in row2.php, the third row in row3.php etc.

<?php include("row1.php"); ?>
<?php include("row2.php"); ?>
<?php include("row3.php"); ?>

Then rotate those rows so at a glance it appears the pages content changed when refreshed or opened later.
Something like this will work - foreach or for to output
Code:
<?
$rowID =  range(1,10);

shuffle($rowID);

//Then output it

for($i=0;$i<sizeof($rowID);$i++)
{
	echo 'ROW ID' . $rowID[$i] . '<br>';
}
echo '<br>';
foreach ($rowID as $id) {
    echo $id . '<br>';
}
?>
georgeyw is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote