Jump to content

dlbDennis

New Members
  • Posts

    5
  • Joined

  • Last visited

Everything posted by dlbDennis

  1. Maybe it's pain from your age or who knows what. But if you read the rules. I joined this forum to try and understand php. I'm stuck using and access.mdb and need a password recovery script. I have searched the web and only find basic login scripts that use odbc_connect. I'm guessing no one wants to create a full script. But none of them have a password recovery script. So my options were to find one that works with mysql and try to modify it. I was understanding phpfreaks forum was for helping people like me understand php scripts. But I don't need flamed by a "Moderator" just because I don't understand. Thanks everyone for the help you have given and have a good weekend or whats left of it. Forum DO NOT'sDo not flame other users.
  2. I don't understand what I"m being told
  3. I'm still trying to get the password, username and email to populate at the bottom. $sql="SELECT * FROM $tbl_name WHERE email='$email'"; $result=odbc_exec($strcon, $sql); //executing select * statement //need help from here down $count=odbc_fetch_array($result); var_dump($count); //this does dump a row of data, but it looks like this. //array(5) { ["id"]=> string(1) "1" ["username"]=> string(3) "dlb" ["email"]=> string(20) "[email protected]" ["password"]=> string(5) "somepassword" ["active"]=> string(1) "1" } if($count==1) //at least one row must exist { $rows=odbc_fetch_array($count); $pass = $rows['password'];//FETCHING PASS echo "your pass is ::".($pass)."" ; echo "<br/>"; $username = $rows['username'];//FETCHING USERNAME echo "your username is ::".($username); echo "<br/>"; $email = $rows['email'];//FETCHING USERNAME echo "your email is ::".($email); } else {
  4. $result=odbc_exec($strcon, $sql); $count=odbc_fetch_array($result); //var_dump($count); //This does dump the info on the record in the db if($count==1) while($row=odbc_fetch_array($result)) { // var_dump($row); //This does not get the data and tells me not found int db $pass = $rows['password']; //FETCHING PASS echo "your pass is ::".($pass)."" ; //DISPLAYING PASSWORD } else {
  5. $result=odbc_exec($strcon, $sql); //executing select * statement //need help from here down $count=odbc_fetch_array($result); if($count==1) //at least one row must exist { $rows=odbc_fetch_object($result); Thanks in advance
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.