PHP variable in link

Reply

Join Date: Jul 2009
Posts: 8
Reputation: isak is an unknown quantity at this point 
Solved Threads: 0
isak isak is offline Offline
Newbie Poster

Re: PHP variable in link

 
0
  #11
Aug 19th, 2009
The "horrible" structure... I am using a program called Machform to create the form that enters the info into the database. This program gives the horrible names you are noting. And yes, they are hard to work with, especially since my form has 65 fields.

I added the WHERE as you had it (WHERE id=".$id, but I got this error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1

When I change it to WHERE ap_form_1.id, I do not get the error message, but I still only get the first record from the database.
Reply With Quote Quick reply to this message  
Join Date: Apr 2009
Posts: 257
Reputation: BzzBee is an unknown quantity at this point 
Solved Threads: 37
BzzBee BzzBee is offline Offline
Posting Whiz in Training

Re: PHP variable in link

 
0
  #12
Aug 19th, 2009
$id have some value or may be its blank?
Reply With Quote Quick reply to this message  
Join Date: Jul 2009
Posts: 8
Reputation: isak is an unknown quantity at this point 
Solved Threads: 0
isak isak is offline Offline
Newbie Poster

Re: PHP variable in link

 
0
  #13
Aug 19th, 2009
$id is the record number as assigned by the database. There are currently 2 records in the database -- 1 and 2. When you click on either record, it displays the first one and it shows the record number to the left of the street address. So not blank.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:




Views: 395 | Replies: 12
Thread Tools Search this Thread



Tag cloud for PHP
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC