How - Each Record to have a clickable url link
Posted: Fri Jun 17, 2005 10:18 am
Extremely Raw code at the mo'.... but can you shed some light on this...
Have a Form that enters Data into a Database (One element being Title
another being a URL among others)
http://www.topweb.co.uk/temp/statsenter_form.txt <<<<HTML Form Code
http://www.topweb.co.uk/temp/statsenter_script.txt <<<<PHP Script Code
Obviously You'll need to change usual details to get it to work on your system.
Once Submitted the Data is indeed entered - It then proceeds to display the
whole contents (ugly display at moment, but will be tidied up) of the
database - However I want the Title to be a clickable link to wherever the
entered URL references.
The following may make what I need to do a little clearer...
Within the php script you'll see a commented out line that I tried - this
however Gives ALL the records 'Title' elements the same value which is the
last entered URL link, as it's in a while loop - obviously what I want is each record to have each Title link to its Unique Url link...
So every time different details are entered into the Form, then database contents displayed, each Title is a link to that url...
Have searched everywhere for a solution, but no joy...
My php skills are limited so please respond as if your talking to an alien...
Thanks in advance
Soundsdodgy... Submitted Fri 17th June 4pm (London, England)
Have a Form that enters Data into a Database (One element being Title
another being a URL among others)
http://www.topweb.co.uk/temp/statsenter_form.txt <<<<HTML Form Code
http://www.topweb.co.uk/temp/statsenter_script.txt <<<<PHP Script Code
Obviously You'll need to change usual details to get it to work on your system.
Once Submitted the Data is indeed entered - It then proceeds to display the
whole contents (ugly display at moment, but will be tidied up) of the
database - However I want the Title to be a clickable link to wherever the
entered URL references.
The following may make what I need to do a little clearer...
Within the php script you'll see a commented out line that I tried - this
however Gives ALL the records 'Title' elements the same value which is the
last entered URL link, as it's in a while loop - obviously what I want is each record to have each Title link to its Unique Url link...
So every time different details are entered into the Form, then database contents displayed, each Title is a link to that url...
Have searched everywhere for a solution, but no joy...
My php skills are limited so please respond as if your talking to an alien...
Thanks in advance
Soundsdodgy... Submitted Fri 17th June 4pm (London, England)