i do a select to get some datas from mysql.
say on the web page i print this:
name address email pic
ok now the point is in the db there is another field i want to be displayed only on mouseover.
so when a user does mouseover (or click) one of those fields(name, address,...) in the bottom of the page is displayed another field(description).
how can i do the trick.
tnx, pacho
display data from db
Moderator: General Moderators
- greenhorn666
- Forum Commoner
- Posts: 87
- Joined: Thu Aug 14, 2003 7:14 am
- Location: Brussels, Belgium
Basically you have to get the "other" value right away.
Then, on client-side, you hide that value using let's say CSS, and had a onMouseOver setting the elements visibility to true.
You have to understand that php is server-side scripting, while JavaScript is client-side scripting.
What you want to do involves client-side, not the database, nor the php script it self.
Then, on client-side, you hide that value using let's say CSS, and had a onMouseOver setting the elements visibility to true.
You have to understand that php is server-side scripting, while JavaScript is client-side scripting.
What you want to do involves client-side, not the database, nor the php script it self.