Help with register, please?

Results 1 to 2 of 2
  1. #1
    Registered Loz is offline
    Jan 2017 Join Date

    Support Help with register, please?

    Would someone kindly be able to help with this register?
    I've edited the config to my server/database names, made the recommended changes the index file and added the the extensions to my PHP file, I'm not really sure what else to do now since I'm pretty new to this . The version I'm using is 7.4.19.

    I'd really appreciate the help, thank you!
    Click image for larger version. 

Name:	reg.jpg 
Views:	12 
Size:	50.1 KB 
ID:	169803Click image for larger version. 

Name:	Index.jpg 
Views:	13 
Size:	404.4 KB 
ID:	169804Click image for larger version. 

Name:	php.png 
Views:	10 
Size:	21.5 KB 
ID:	169805

  2. #2
    cMuServices cMu is online now
    True MemberRank
    Jan 2017 Join Date

    Re: Help with register, please?

    chane your parameters and name them, for example:
    $sth = $dbh->prepare("SELECT COUNT(*) FROM tUser WHERE sUserID = :uid");
    $sth->bindParam(":uid", $_POST['uid'], PDO::PARAM_INT);

    change ur fetchColumn() if to:
    if(!$sth->rowCount()) {

    there is no need to fetch the row cause u won't use it, u just check if the user exists.