Jump to content

URL parameter for the links


Recommended Posts

Hi, I\'m using Dreamweaver to connect to a MySQL/PHP database running on a Linux server. I need to search on a few fields and display the results in table form which I have partialy accomplished. I have a search form that searches by STATE. In the results.php page I hava table populated with recordset fields. I would like one of the fields to link to a contacts.php page to an associated record. I got it to display the contacts.php page but with no data. Here is the code for the link:

 

<td><a href=\"contacts.php?MLA_NO= <?php echo $row_rscontacts[\'MLA_NO\']; ?>\"><?php echo $row_rscompanies[\'MLA_NO\']; ?></a></font></td>

 

MLA_NO is the unique field in both recordsets

 

The url in the address bar for the contacts page with no data is:

 

http://domain.com/sitefolder/contacts.php?MLA_NO=

 

if I manually type in a mla_no in the address bar, it will return correct data. Any help would be appreciated.

 

Thanks

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.