NLCGraphics Posted September 18, 2009 Share Posted September 18, 2009 Hi All, Can anyone tell me if they see anything wrong with this class? <?php class Tutorials { public function __construct() { mysql_connect("localhost:8889", "root", "root"); mysql_select_db("firstdb"); } public function getTutorials() { $myresult = mysql_query("SELECT * FROM firstDb"); $t = array(); while($row = mysql_fetch_assoc($myresult)) { array_push($t,$row); } return $t; } It produces this error in flash AS3: Error #2044: Unhandled NetStatusEvent:. level=error, code=NetConnection.Call.BadVersion at zendTest_fla::MainTimeline/frame1() any help would be great. Thanks, Sky Link to comment https://forums.phpfreaks.com/topic/174730-trying-to-connect-to-mysql/ Share on other sites More sharing options...
DEVILofDARKNESS Posted September 19, 2009 Share Posted September 19, 2009 The function get tutorials is not closed with a } Link to comment https://forums.phpfreaks.com/topic/174730-trying-to-connect-to-mysql/#findComment-921135 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.