Searching a database problems

  • gromituk2k
  • Newbie
  • Newbie
  • User avatar
  • Joined: Jun 29, 2009
  • Posts: 14
  • Loc: West Yorkshire, England
  • Status: Offline

Post June 29th, 2009, 5:04 am

I have a MySQL database with one table in it which contains a list of unique number/letter combinations, e.g. 234gfd5675

In my Flash file I then have one text field and a button. What I want to happen is then a combination is entered into the text field and the button is pressed, using a PHP file, the database is searched for this combination. If not fund an error is displayed and if the combination is found then the Flash file will continue to the next frame.

Any ideas on a good tutorial to use for this? I have found loads that write to a database and then deiplay the content, but can not find any that will search the database.
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post June 29th, 2009, 5:04 am

  • Rabid Dog
  • Web Master
  • Web Master
  • User avatar
  • Joined: May 21, 2004
  • Posts: 3229
  • Loc: South Africa
  • Status: Offline

Post June 29th, 2009, 5:07 pm

Are you doing this async or does the flash you using have direct database access?

Bit behind on the flash side of things and I remember the way I used to do it was an async call of to a php page or the likes that provided access to the database./ If you can write to a database you can read from the database :) Do you know how to execute queries against a database?
Watch me grow

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 110 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.