21st November 2009 19:32
#1
PHP/Flash Tutorial not working
Hi there, I'm having problems making this tutorial work:
http://www.sephiroth.it/tutorials/flashPHP/flash_chat/
Basically it's not inserting any data into the database, I really don't know why. I try the first_access.php script and it seems it never enters this conditional:
if(isset($submit) && isset($HTTP_GET_VARS['username']))
For example using this address:
http://www.javierespana.com/clientes...sername=Javier
Any ideas how to make sure it works?
Thanks,
Javier
21st November 2009 19:38
#2
For more information I tried adding this lines in the config.inc.php to check if all connects and it's working:
$link = mysql_connect($host, $dbuser, $dbpass);
if (!$link) {
die('Could not connect: ' . mysql_error());
}
echo 'Connected successfully';
mysql_close($link);
It shows the "Connected successfully" message when you run it...
Any help?
23rd November 2009 11:09
#3
24th November 2009 22:06
#4
For any of you having the same problem the solution I found was replacing this line:
if(isset($submit) && isset($HTTP_GET_VARS['username']))
with this one:
if(@$_GET['submit'] != "" && @$_GET['username'] != "")
It seems that the other method is quite old and can cause problems...
The files on the .zip are not updated, that seems to be the problem...
Javier
15th January 2010 19:59
#5
Yeah it works now.
Max thanks for posting the update...it works fine now.
Posting Permissions
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Rules
Bookmarks