move information from one page and display it to another
Posted: Wed Mar 25, 2009 7:15 am
hi, first of all, i'm quite new to php. i'm trying to send a set of information from one page to another through a link but i got stuck. Please I need help! the sentence in bold and italic is the whole problem.
this is where i've got to:
<php?
$i=0;
while($row = mysql_fetch_array($resultAllInfo ))
{
$Make[$i]=$row['Make'];
$Model[$i]=$row['Model'];
$Price[$i]=$row['Price'];
$Year[$i]=$row['Year'];
$queryLink = "SELECT Make, Model, Category, Price FROM carinfo LIMIT $i OFFSET $i";
$resultLink = mysql_query($queryLink)
or die("could not process $queryLink");
//declare variables
$rowLink = mysql_fetch_array($resultLink);
$selected_radio = $rowLink['Category'];
$make = $rowLink['Make'];
$model = $rowLink['Model'];
echo "<a href='search.php?$selected_radio=Category'>$Make[$i] $Model[$i]</a>"
?>
this is where i've got to:
<php?
$i=0;
while($row = mysql_fetch_array($resultAllInfo ))
{
$Make[$i]=$row['Make'];
$Model[$i]=$row['Model'];
$Price[$i]=$row['Price'];
$Year[$i]=$row['Year'];
$queryLink = "SELECT Make, Model, Category, Price FROM carinfo LIMIT $i OFFSET $i";
$resultLink = mysql_query($queryLink)
or die("could not process $queryLink");
//declare variables
$rowLink = mysql_fetch_array($resultLink);
$selected_radio = $rowLink['Category'];
$make = $rowLink['Make'];
$model = $rowLink['Model'];
echo "<a href='search.php?$selected_radio=Category'>$Make[$i] $Model[$i]</a>"
?>