Code: Select all
<?php
for ($i=3;$i<12;$i++) {
echo $i;
echo "this might or not be a long line but when things go"
." crazy you might want to cut that so u can read"
." and you will not get sore eyes";
print_r ($i);
//for insert queries that have indexes:
//table: id-firstname-lastname
$query = "INSERT INTO table (firstname,lastname) VALUES ("Johnny","Blaer")"; //see? you don;t need to specify the 'id' field, that's redundant, cuz mySQL does that for you anyways!
mysql_query($query,$somelink);
include "WhyUseParenthesesIfTheyAreNotNeededAnyways.php";
}
?>