Forum Posts and While Loop
Posted: Mon Jul 21, 2008 12:11 am
Hello,
Can someone shed some light on the following piece of code? No matter what I do the $_POST will not work. I know the posts are making it over the the page. It's like PHP will not put the $serviceName information from the query into the print line...
Can someone shed some light on the following piece of code? No matter what I do the $_POST will not work. I know the posts are making it over the the page. It's like PHP will not put the $serviceName information from the query into the print line...
Code: Select all
include("mysql_connect.php");
$sql = 'SELECT serviceID, serviceName FROM service';
$query = $DB->Query($sql);
while($array = $DB->FetchArray($query)){
extract($array);
print $serviceName." Value: ".$_POST['$serviceName']."<BR />\r";
}