Thanks, it works great now :), however i have one more question, what
is the best way to perform a php mysql function to get data and update
a div using jquery...

i ask because i have a comments section that allows the user to choose
how many comments to display the default is just 1, but i want to be
able to show 5 latest using ajax.
I could make another php page that accept a get variable for the
amount of comments needed and outputs the comments,

For example getcomment.php?show=2, which would output

comment1
---------------------------
comentcomentocmentocmentoskdjsdklfjklsdfjksldfjsklfjlskf
-----------------------------
comment2
-----------------------------
comentcomentocmentocmentoskdjsdklfjklsdfjksldfjsklfjlskf
----------------------------

i could use .get to load this data on to the comments div, but i am
not sure if there is a better way of doing it?

Can jquery be used to somehow run a the php function on the same page
and then replace the contents of the comments div? is this possible?

Reply via email to