javascript code within the FIELD to be read by a sql query

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

straightman
Forum Commoner
Posts: 48
Joined: Sun Apr 19, 2009 5:20 am

Re: javascript code within the FIELD to be read by a sql query

Post by straightman »

no, i am not using them, just the code you saw.

anyway, what I want is to put in the values of the cells something lik 1¦ 2 ¦ 3¦ so as to hover over the displayed numbers and that they will show Tooltips where I can include an image. That is why I started with that js thing, but it is turning out not possible because neither with nor without urlencode it brings any satisfactory result.

==============================================================

jackpf wrote:Are you using strip_tags() on it or soemthing?
User avatar
jackpf
DevNet Resident
Posts: 2119
Joined: Sun Feb 15, 2009 7:22 pm
Location: Ipswich, UK

Re: javascript code within the FIELD to be read by a sql query

Post by jackpf »

Ok, I have no idea why your script isn't working.

Try writing the whole thing again. Nothing fancy, just connect to the database, run a query to select the row with the javascript, and display it, and see what happens.
straightman
Forum Commoner
Posts: 48
Joined: Sun Apr 19, 2009 5:20 am

Re: javascript code within the FIELD to be read by a sql query

Post by straightman »

thank you very much for all the devoted time. If you are really knowledgeable in php and would like to do once in a while some coding, just let me know your fees and see whether we can do something. alvaropharma at gmail dot com

regards

Leicester UK
===============================================================================

jackpf wrote:Ok, I have no idea why your script isn't working.

Try writing the whole thing again. Nothing fancy, just connect to the database, run a query to select the row with the javascript, and display it, and see what happens.
User avatar
jackpf
DevNet Resident
Posts: 2119
Joined: Sun Feb 15, 2009 7:22 pm
Location: Ipswich, UK

Re: javascript code within the FIELD to be read by a sql query

Post by jackpf »

No problem :)

Ahh, I'm only 16...I have school and stuff to concentrate on. I'd be happy to help you out on these forums if you have any problems though.

And did you get it to work in the end?
Post Reply