display data from db

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
pachox
Forum Newbie
Posts: 23
Joined: Sun Aug 17, 2003 7:14 am

display data from db

Post 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
User avatar
greenhorn666
Forum Commoner
Posts: 87
Joined: Thu Aug 14, 2003 7:14 am
Location: Brussels, Belgium

Post 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.
Post Reply