PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
<?
$name = 'Fernando';
$res1 = mysql_query( "SELECT t_id, t_text FROM texts HAVING t_id = MIN(t_id)" );
$line1 = mysql_fetch_row($res1);
$phrase = $line1[1];
// variable $phrase come from a record in database
// value of $phrase: 'My name is $name'
echo $phrase
//display 'My name is $name' :cry:
?>
if you want to include the variable in your quoted string, you need to use double quotes. the other alternative is to concat your variable to your string: