Jump to content

SQL Values


01hanstu

Recommended Posts

Something like this:

 

// Connections to Database go here.


$sql = mysql_query("SELECT * from table_name WHERE id = '23'");
$row = mysql_fetch_array($sql);
if($row['Bkd'] == 'yes'){
     echo $row['name'].' / '.$row['year'];
}else{
     echo '<a href="/someLink.php">No</a>';
}

Link to comment
https://forums.phpfreaks.com/topic/133078-sql-values/#findComment-692074
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.