Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / Data Integration / July 2006



Tip: Looking for answers? Try searching our database.

How to connect to database using php

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
jlw12689 - 14 Jul 2006 16:10 GMT
Im new to data input using flash, can someone please tell me how to connect to a mysql database.
Vertine - 14 Jul 2006 16:46 GMT
hi jlw12689 -

i have a pretty standard code i use to do just this. It goes SOMETHING like

<?php
$host="localhost";
$db="databaseName";
$user="username";
$pass="secretpassword";

$connect=mysql_connect($host,$user,$pass) or die(mysql_error());
mysql_select_db($db,$connect);
?>
jlw12689 - 16 Jul 2006 12:26 GMT
thank you, now this probably a stupid question, but do i type that in flash actionscript or do i type it using dreamweaver and call the file in flash.
The Pickler - 18 Jul 2006 07:32 GMT
Put the above code in Dreamweaver and save it as .php. Then call the file using either the send or sendandload function in Flash. You'll have to alter the php of course for your own purposes.
jlw12689 - 20 Jul 2006 17:39 GMT
thank you for your help
micahkoga - 21 Jul 2006 06:40 GMT
You should really check into amfphp. it's flash remoting with php. http://www.amfphp.org . it's very quick and very easy, it also generates some code for you.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.