Quote:
Also, I dont think you can use an if statement when declaring a variable but im not sure.
|
You can, but certainly not in that syntax with the assignment behind the IF.
Example of proper usage:
PHP Code:
if($array = $DB_site -> query_first())
{
}
As for your script Sabret, your syntax is mostly made up. Try looking at some vB scripts in the queries, as you need to use LEFT JOINs, etc. Always incase your strings in quotes, and use proper tabulation!