Page 1 of 1

display data from db

Posted: Wed Aug 20, 2003 2:55 am
by pachox
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

Posted: Wed Aug 20, 2003 3:14 am
by greenhorn666
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.