| | |
help
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Nov 2007
Posts: 183
Reputation:
Solved Threads: 5
hi in this app i have three pages
from the first page id is passed to the second page.in the third page i am not able to get the value..............
from the first page id is passed to the second page.in the third page i am not able to get the value..............
if (mysql_num_rows($result) > 0 )
{
while($row = mysql_fetch_row($result))
{
echo "<tr>";
echo "<td><a href='detailjob.php?id=".$row[3]."'>".$row[0]."</td><td>".$row[1]."</td>";
echo "</tr>";
echo "<tr><td bgcolor='#008080'></td><td bgcolor='#008080'></td></tr>";
}
echo "</table>";
}$line=$_GET['id'];
echo $line;
$result=mysql_query("SELECT * FROM post_resume where id='$line'");
for ($i = 0; $i < 1; ++$i)
{
$line = mysql_fetch_row($result);
$rid=$line[0];
echo "<table width='60%'>";
print "<tr><td><font face='Times New Roman' color='#008080' size='3'><strong>Resume Title</strong></font></td></tr>";
print "<tr><td> $line[2] </td></tr>";
print "</table>";<form method="post" action="agreement1.php"> <?php echo "thanks for creating aggreement with CG"; echo $_GET['rid']; $line=$_GET['rid']; echo $line; ?>
•
•
Join Date: Nov 2007
Posts: 183
Reputation:
Solved Threads: 5
sorry.............
page1
page2
page3
page1
if (mysql_num_rows($result) > 0 )
{
while($row = mysql_fetch_row($result))
{
echo "<tr>";
echo "<td><a href='detailjob.php?id=".$row[3]."'>".$row[0]."</td><td>".$row[1]."</td>";
echo "</tr>";
echo "<tr><td bgcolor='#008080'></td><td bgcolor='#008080'></td></tr>";
}
echo "</table>";
}page2
$line=$_GET['id'];
echo $line;
$result=mysql_query("SELECT * FROM post_resume where id='$line'");
for ($i = 0; $i < 1; ++$i)
{
$line = mysql_fetch_row($result);
$rid=$line[0];
echo "<table width='60%'>";
print "<tr><td><font face='Times New Roman' color='#008080' size='3'><strong>Resume Title</strong></font></td></tr>";
print "<tr><td> $line[2] </td></tr>";
print "</table>";page3
<form method="post" action="agreement1.php"> <?php echo "thanks for creating aggreement with CG"; echo $_GET['rid']; $line=$_GET['rid']; echo $line; ?>
•
•
•
•
$rid=$line[0];
1. pass it in the query string ($_GET method).
2. use a session variable to pass the values.
3. Post it through the form. ($_POST).
In page 1, you are passing the id in query string. In page 2, you aren't doing passing the value ot $rid to page 3.
Ignorance is definitely not bliss!
*PM asking for help will be ignored*
*PM asking for help will be ignored*
![]() |
Other Threads in the PHP Forum
- Previous Thread: Error message: Database error
- Next Thread: Run time error!!!!!! Pls help...
| Thread Tools | Search this Thread |
.htaccess alerts apache api archive array autocomplete beginner binary broken cakephp checkbox class cms code convert cron curl database dataentry date display duplicates dynamic echo email emptydisplayvalue error execute explodefunction file files firstoptioninphpdroplist folder form forms function functions google hack href htaccess html htmlspecialchars image include insert ip javasciptvalidation javascript joomla keywords limit link login mail matching menu methods mlm multiple mysql network object oop paypal pdf php problem query radio random recursion recursive redirect remote script search securephp server sessions shot sms source space sql subscription syntax system table tutorial tutorials update upload url validator variable video web youtube






