PDA

View Full Version : [dev] How to interact with php from Webapps?


bigcheese
03-16-2008, 04:23 PM
Hi,
i try to make a database query (mysql) from php... this is already working...
but how can I implement this in my webapp?
Do I have to make a HTTPRequest? or does it work inline in one file?
I want to:
from Webapp, read Config, pass then login and password to PHP script.
the PHP script then makes the database query and returns somehow the return from the db-query - this should then be shown in the webapp in a list...

can someone please give me some hint how to do this?
I don't find anywhere some sample code to do this :(

thanks,
bigcheese

Scape-Server
03-16-2008, 04:54 PM
I'm trying to do the same sort of thing as well. I am trying to make my iTunes streaming look more 'iphoney' but I can only load one page list of things at a time (the artists).

Any help would be appreciated :) I would post if I work it out. You could try having the user click a button and use a hidden text field to store then needed info. Then use cookies (set on the second page) for the login.

James,

bigcheese
03-16-2008, 07:58 PM
hm... on this link:
http://forums.macrumors.com/showthread.php?t=452311
, Post #7 - perhaps this is the solution?
but it is a little much for me to follow...

any other hints?