Welcome, Guest. Please login or register.
Did you miss your activation email?
05/22/12, 18:35
Home Help Search Login Register
News: Parsley Flex framework review featuring quiz application, in our Flex frameworks series
Flex SDK 4.5 mobile roadmap: begin with your mobile development
Swiz Flex framework review featuring quiz application
New homepage we release our new Homepage, take a look ...

+  Flash-db
|-+  Server side Scripting and Database Support
| |-+  MySQL, PostgreSQL, MS SQL, Access (Moderators: Flash-db, Musicman, Ronald Wernecke, Jorge Solis, Andries Seutens)
| | |-+  A newbie with a Flash/mysql crisis
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: A newbie with a Flash/mysql crisis  (Read 2529 times)
angela ryder
Server what's that
*
Posts: 2



View Profile Email
« on: 11/16/02, 12:13 »

Howdy! I am hoping one of you gurus can help me... I have a MySql/PHP database set up... it's populated and all... and I have a flash site that's calling to it. Problem is- someone played with the script I had to actually call to the database... and i can't seem to find my problem...

I have this:
loadVariables("http://localhost/omrarchdb/projects.php?id=
           <http://localhost/omrarchdb/projects.php?id=>
           <http://localhost/omrarchdb/projects.php?id=
           <http://localhost/omrarchdb/projects.php?id=>>"+_level0.id, this,
           "GET");        
loadVariables("tempInput.txt", this);

Do I have a typo?

Ahhhhhhh!

~Migrane Girl
Logged
Ronald Wernecke
Administrator
Systems Administrator
*****
Posts: 6175


View Profile WWW Email
« Reply #1 on: 11/16/02, 13:26 »

Hi Angela,
what are you trying to do with this line:

loadVariables("http://localhost/omrarchdb/projects.php?id=
          <http://localhost/omrarchdb/projects.php?id=>
          <http://localhost/omrarchdb/projects.php?id=
          <http://localhost/omrarchdb/projects.php?id=>>"+_level0.id, this,
          "GET");        

How does your php-script look?
Logged

happy flashing
Cool
Ronald
angela ryder
Server what's that
*
Posts: 2



View Profile Email
« Reply #2 on: 11/16/02, 13:50 »

I have about 50 projects in a MySQl database- whtn you choose a thumbnail, this script is supposed to find the id# assigned to that thumb and call that id from the database.. I have the index key is id_db.. and I have:
db_project
db_location
db_service
db_quote
db_text
db_images
with in each project.

Did that makes sense?

A programmer gave me the script that I posted and you saw, yet he must have missed something....

I thank you for helping me! My head hurts from banging it against the wall.
Logged
Ronald Wernecke
Administrator
Systems Administrator
*****
Posts: 6175


View Profile WWW Email
« Reply #3 on: 11/16/02, 14:18 »

OK Angela,
one step after the other.
It makes sense, yes.
Image in the DB is a path to the image? Right?
I need some more details on the flash and php side.
What does php deliver and how is it handled in flash?

If you want more details of how flash talks to php, read the article in the technical reference area here in this board.

If you give some more details, we can help you getting the things running.
Logged

happy flashing
Cool
Ronald
Musicman
Administrator
Systems Administrator
*****
Posts: 2685



View Profile WWW Email
« Reply #4 on: 11/16/02, 14:27 »

Hi,

I guess some software was playing tricks on you, abd the code should just be
loadVariables("http://localhost/omrarchdb/projects.php?id="+_level0.id, this,, "GET")
loadVariables("tempInput.txt", this);

May I suggest to show the full code - Ithe use of a tempinput.txt suggests that there might be errors in the code...
The first call sends all your current vars (those in the timeline where you have put the code) as well as the id variable and might get some variables from the php in return
A simultaneous call asks the server to send the text file. If the purpose of the php is writing the text file, you are gambling with server timing - the text file may be delivered before the php writes it, or the other way round.

Muicman
Logged
Pages: [1] Print 
« previous next »
Jump to:  


Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!