<?php
$contest="foremacat";
$where = " WHERE Status='$d' AND Contest_name=$contest";
See I added the Contest_name=$contest
But the previous programmer added Status=$d
He put a $variable in single quotes, while I didn't.
His code worked before while it was in single quotes.
Is there something wrong with my code?
Am I not supposed to NOT put it in single quotes?
I'm using PHP4 and MySQL as the DB.
Thank You