I seem to have a small problem, in the code below $a_trip is always true, even if $trip!= $admin_trip. Any idea why?
if($trip == $admin_trip)
$a_trip = true;
if($a_trip == true)
$trip = ("~::##Admin##::~");
Beat me to it. === means 'identical'.
Check this out.
http://php.net/manual/en/language.operators.comparison.php
Also a sidenote, you should use { } in your if statements. You'll thank yourself later when debugging. It's easier to read.