Jump to content

Assigning variables??


Miss-Ruth

Recommended Posts

Hey!!

 

Please help me assign variables to this echos. I know nothing about php  :-\

 

 

// I need something like this:  echo "category=...

 

$query = "SELECT * FROM yomails WHERE identity = '$SomeVar'";
$results = mysql_query($query);
if($line = mysql_fetch_assoc($results))
{
echo $line["category"];
echo $line["namez"];
echo $line["col1"];
echo $line["col2"];
echo $line["col3"];
echo $line["col4"];
echo $line["col5"];
echo $line["col6"];
echo $line["col7"];
}
mysql_close($link);
?>

Link to comment
https://forums.phpfreaks.com/topic/180307-assigning-variables/
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.