Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 3 of 3
  1. #1
    Senior Member leprechaun13's Avatar
    Join Date
    May 2005
    Location
    Northampton
    Posts
    487
    Member #
    10058
    Hi can somebody help me debug the following scripts as im fairly new to php and cant solve some issues.

    All files are attached

    Thanks in Advanced Phil
    Attachment 3394
    Attachment 2460
    Attachment 2461
    Attachment 2463
    Attachment 2462
    Regards Phil,


  2.  

  3. #2
    Senior Member
    Join Date
    May 2003
    Location
    UK
    Posts
    2,354
    Member #
    1326
    It would have been helpful if you could provide the error messages (if any) that occur.

    In index2.php, you have
    PHP Code:
            <?php 
            
            session_start
    () // Start Session
                
    include("config.php");
                
    úlink mysqli_connect('$host' '$user' '$pass' '$db');
    It should be
    PHP Code:
            <?php 
            
            session_start
    (); // Start Session
                
    include("config.php");
                
    $link mysqli_connect('$host' '$user' '$pass' '$db');

  4. #3
    Senior Member
    Join Date
    Jun 2005
    Location
    Atlanta, GA
    Posts
    4,146
    Member #
    10263
    Liked
    1 times
    Also, that'll probably give you a connection error, since putting variables ($host, $user) in single quotes means that you're passing the actual name of the variable, not its value. So maybe:
    PHP Code:
    $link mysqi_connect$host$user$pass$db ); 


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 08:14 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com