Jump to content


Photo

php/mysql/javascript


  • Please log in to reply
1 reply to this topic

#1 paul2463

paul2463
  • Members
  • PipPipPip
  • Advanced Member
  • 955 posts
  • LocationUK

Posted 08 July 2006 - 11:53 AM

Hello,

I am not after specific answers for this question as I like trying to work things out for myself, all I need is a bit of direction. Here is my question. I have a PHP/MySQL query result set, if I place these results in an array object, can this object be passed to a javascript function which also has an array object so they can be compared? if the answer is yes can someone point me to the relevant pages of a relevant manual for the answers. many thanks

Paul
you cannot affect the past but you can ruin a perfectly good present by worrying about the future

*********************************************************************
The <A HREF="http://www.php.net/d...php">MANUAL</A> is actually a useful resource

#2 hvle

hvle
  • Members
  • PipPipPip
  • Advanced Member
  • 667 posts
  • Locationmelbourne, Australia

Posted 08 July 2006 - 11:57 AM

no, it can not be pass.
php run by server, javascript run on client browser.

but you sure can make this array available to the javascript.
You have print it like how it should be written in javascript to the html file.



Life's too short for arguing.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users