+ Reply to Thread
Results 1 to 5 of 5

Thread: PHP/Flash Tutorial not working

  1. Join Date
    Nov 2009
    Age
    28
    Posts
    4

    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

  2. Join Date
    Nov 2009
    Age
    28
    Posts
    4
    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?

  3. Join Date
    Nov 2009
    Age
    28
    Posts
    4
    Any ideas?

  4. Join Date
    Nov 2009
    Age
    28
    Posts
    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

  5. Join Date
    Jan 2010
    Age
    32
    Posts
    1

    Yeah it works now.

    Max thanks for posting the update...it works fine now.

+ Reply to Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts