Jump to content


Photo

Passing a variable to the browser to view a record


  • Please log in to reply
2 replies to this topic

#1 TommyG

TommyG
  • New Members
  • Pip
  • Newbie
  • 1 posts

Posted 04 May 2004 - 01:05 PM

Hello there... I'm having trouble with a record update form. I have a repeating table that lists all records in my database and have an arrow image that points to page.php?<?php echo $row_Recordset1['Tag_Number']; ?>

However when clicking on this link, The page that displays is the last record entered... not the one with the corresponding Tag_Number I was searching for.

I created a record update form called page.php. By opening the page with the ? and the variable shouldn't it open the corresponding page?

Any help would be great.

#2 Milshak

Milshak
  • Members
  • Pip
  • Newbie
  • 7 posts

Posted 20 May 2004 - 06:59 PM

Try to send the the record id which should be part of the databse as an autoincrement colum
like this page.php?id=$id

Then use this id to modify your query with; select * from tablename where id=$id.

#3 youngbuc

youngbuc
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 07 July 2004 - 04:05 PM

to make this work:
Try to send the the record id which should be part of the databse as an autoincrement colum
like this page.php?id=$id

i believe that you can use a url variable when you are creating your recordset. then you get the ? after the .php

hope this helps




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users