Just ask the questions guy, no-one knows if they can answer 'em or not if you don't post 'em!
Lads, anyone good with Php .... just have a few questions !!
The SFAI are the governing body for grassroots football in Ireland, not the FAI. Its success or the lack of is all down to them.
Just ask the questions guy, no-one knows if they can answer 'em or not if you don't post 'em!
PHP is a widely-used general-purpose scripting language that is especially suited for Web development and can be embedded into HTML.
Is this what you're talking about? If so then,
Try here:http://www.php.net/
Life without Rovers, it makes no sense...it's a heartache...nothing but a fools game. S.R.F.C.
When i echo the results of a query onto a results page .... how do i make the foreign key results into hyper links so i can then run another query depending on what it is ..... i.e. the foreign key will be WHERE whatever = {$row['Whatever']}Originally Posted by dahamsta
I know the syntax is wrong there but i dont know how to do it !!
i hear ya .... but what i need isn't specifically in there !!Originally Posted by sligoman
The SFAI are the governing body for grassroots football in Ireland, not the FAI. Its success or the lack of is all down to them.
mate just become a member of experts-exchange.com
you will have an answer in 30 mins at most.
Post code face, your query isn't exactly, um, coherent. (No offense like.) What exactly do you mean by forgeign key for example? That's the second time I've seen you use it, and it's looked out of context on both occasions.
Paul has a point though, this is an odd place to ask. Although I used to go to phpbuilder meself, and these days I'd probably head to DevShed. Experts Exchange is a thundering piece of crap I only use via Google. Even then I feel dirty.
adam
None taken sir ... none taken !Originally Posted by dahamsta
(SELECT data1, data2, data3, ForeignKey, data4 FROM table)What exactly do you mean by forgeign key for example? That's the second time I've seen you use it, and it's looked out of context on both occasions.
so then i echo "Data One: {$row['data1']} <br> "Foreign Key: {$row['ForeignKey']} <br> .....
and the result on the webpage is ....
Data One: the value
Foreign Key: The value
i want
Data One: the value
Foreign Key: The value
So when i click on the link .... it runs a query and displays the results for it, if you know what i mean.
Yeah .... i been all over ... i'll keep trying.Paul has a point though, this is an odd place to ask. Although I used to go to phpbuilder meself, and these days I'd probably head to DevShed.
I haven't ever got one answer there and ignore when i google and i hate pop-upsExperts Exchange is a thundering piece of crap I only use via Google. Even then I feel dirty.
The SFAI are the governing body for grassroots football in Ireland, not the FAI. Its success or the lack of is all down to them.
So you were referring to a column. Now how were we supposed to know that?Originally Posted by A face
You'd do something like...
[php]echo "Foreign Key: <a href=\"script.php?action=dosubquery&key={$row['ForeignKey']}\">{$row['ForeignKey']}</a><br>\n";[/php]However you're going to need more code that'll do that query, or even a dedicated script. They don't just magically do themselves!
I'd seriously suggest you spend a little time researching "SQL injection attacks" and "validating user input" before you go any further face. I think you might be getting a little ahead of yourself. Again, no offense intended.
adam
Last edited by dahamsta; 27/04/2005 at 5:24 PM.
Bookmarks