quecoder wrote:I think it's $row["year"] ,
try this :
if($row["year"] <=1998) { echo ' <a href="https://www.webstercityrv.com/credit_app/" target="_blank"><img src="../images/credit_app_button.jpg" width="121" height="30" border="0"></a>';}
That looks ok, but you haven;t shown how you get the data from the database into the array $row.
Here is a function you could edit and use as a base.
function getyear(){
global $conn;
$q = "SELECT year FROM tablename";
$result = mysql_query($q,$conn);
$row = mysql_fetch_row($result);
return $row[0];
}
Where the variable $conn contains the details to connect to the database.
How will the system know which year to select? Will the database only have 1 year in? or what?
Any questions please ask. 🙂