Help for this page

Select Code to Download


  1. or download this
    # I need the members information for their profile update...
    #$_un carries the username they are logged in as:
    ...
    my $_mbrInfo = $sth->fetchrow_hashref();
    $sth->finish();
    # then go build the html page and form for them to update their profil
    +e, prepopulating the data that is already in their
    
  2. or download this
    $sth = $dbh->selectrow_array(qq{select * from `members` where `USERNAM
    +E` = ? LIMIT 1});
    $sth->execute($_un);
    ...
    $sth->execute($_mbrInfo->{mid});
    my $_addy = $sth->fetchrow_hashref();
    $sth->finish();
    
  3. or download this
    # Get Members Id, Name, Phone, Email:
    my($_mbrId,$_mbrName,$_mbrPhone,$_mbrEmail) = $dbh->selectrow_array(qq
    +{select `mid`,`name`,`phone`,`email` from `members` where `USERNAME` 
    += ?}, undef, $_un);
    
  4. or download this
    # Get address:
    $sth = $dbh->selectrow_array(qq{select * from `shippingAddresses` wher
    +e `Id` = (select `mid` from `members` where `USERNAME` = ?)});
    $sth->execute($_un);
    my $_addy = $sth->fetchrow_hashref();
    $sth->finish();