Talk about little in coding style. Your code is lets say very compressed, there is no style to it. May I suggest picking a common style and sticking to it as best as you can.
<?php
if(true){
echo 1;
}
?>
Is sort of what you have done its little and easily read for that but just think of this with 1000+ lines of code not only are you going to get dizzy reading it, but 6months down the track your gonna waste hours maybe even days trying to understand what you did. (Commenting would help too, I counted about 0 Comments).
My above example could be easily formatted like this
<?php
if (true)
{
echo 1;
}
?>
or
<?php
if (true) {
echo 1;
}
?>
Your tab/space could vary I use 4 spaces, and generally use the 1st example of formatting code since it looks cleaner. Also commenting would be good but for my example it is pointless since true is always true you will always get 1, that and my example is small. Like halojoy said use descriptive variable names, again pick a style PHP tends to have a few common ones, Perl, and Java.
Perl Style is
$user_name = "myvar";
While Java Style is
$userName = "myvar";
With descriptive usernames, and use of a style you can usually keep commenting down quite a bit although you should still comment a lot too.
Ill wait a little longer once you have fixed the code up to be readable before I comment on it, that and im getting a headache from trying to keep track.