Jump to content

[SOLVED] link to view the form


abs0lut

Recommended Posts

<?php
$query = mysql_query("SELECT iqid, qty, name FROM
       iqtable WHERE postid=$post");

    while($row = mysql_fetch_array($query))
    {

	$iqid=$row['iqid'];
        $qty = $row['qty'];
        $name = $row['name'];

	if($_SESSION['group']=='vmember'){ 
	echo "<input type=\"text\" name=\"qty[]\" value=".$qty." />";
	echo "<input type=\"text\" name=\"iqid[]\" value=".$iqid." />";
	}

		echo $name;
        if($_SESSION['group']=='vmember'){ 


$results = mysql_query("SELECT cost FROM ctable WHERE userid=$_SESSION[userid] AND postid=$post") or die (mysql_error());
$values = mysql_fetch_array($results);
		if($values['cost'] == ''){
   				 echo "<input type=\"text\" name=\"cost[]\" /><br>";
	}

	}
?>

here's my code, the input form will not display unless he click the link/button -fast reply

any help would be appreciated..

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.