<code>

Programming snippets here… eventually… it’ll be mostly based around php, mysql, html and css. There ya go!

Basics:

The way I create MySQL queries in PHP :
$getQuery = "SELECT * FROM mysql_table";
$result = mysql_query($getQuery) or die(mysql_error());
$row = mysql_fetch_array($result);
$id = $row['id'];
echo $id;

Now I know some people may write it like this:
$result = mysql_query("SELECT * FROM mysql_table;")";
But I find my way gives more control and easier debugging because the mysql and php are separated on to individual lines.  See, how I can separate when php throws an error:
$getQuery - "SELECT * FROM mysql_table";
could return an error and I can find it easier that trying to run the whole command on one line.  Not to say I want thousands of lines of code, but some things need to be separated…