Page 1 of 1

move information from one page and display it to another

Posted: Wed Mar 25, 2009 7:15 am
by selom86
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>"
?>

Re: move information from one page and display it to another

Posted: Thu Mar 26, 2009 12:23 am
by sujithtomy
Hello,

Use Link like this

Code: Select all

echo "<a href='search.php?Category=$selected_radio&Make=$Make[$i]&Model=$Model[$i]'>Link Text</a>";