Search results

  1. G

    PHP and mysql questions; retrieving information for different users.

    Okay, my title may seem confusing but here is what I want: I am trying to make it so that I can retrieve information, depending on which user is logged in. I have a page that when a user looks at it, the user see's his name. i have run into a problem, because I am unsure of how to retrieve more...
  2. G

    Problem with encrypting passwords.

    Now I found out that my passwords were very insecure, and that rainbow tables would be able to easily find out my information. . . so I decided to try and encrypt them. function enc($string) { $salt = "@x2p"; $hash = sha1(md5($salt.$string)).md5($string).sha1(md5(md5($string)))...
  3. G

    Why doesn't this save to my mysql file? (PHP)

    It worked literally 15 minutes before, and I tried to make a small change to the script, erased it because I changed my mind, and now it won't save this information to my database. . . any idea why? <?php //form data $submit = $_POST['submit']; $Name = strip_tags($_POST['Name']); $username =...
  4. G

    Help with a mysql database, how to reset a "unique" id to 1.

    As of now, the database in mysql has a unique row, named "id" which is set as auto-increment. I was debugging the site with some fake accounts, and now I deleted them and wish to make actual accounts on the site, but the id number doesn't start at 1, it starts where it left off. How can I...
  5. G

    Problem with php. Connecting to a database. Easy fix?

    <?php $username = $_POST['username']; $password = $_POST['password']; if ($username&&$password) { $connect = mysql_connect('localhost',"******","******") or die ("Couldn't connect!"); mysql_select_db('garrette_login') or die("Couldn't Log In!"); is the code. I have a system in which the user...
  6. G

    PHP, Mysql, and creating a log in system for users help

    Okay, I have been tinkering around with many different templates, but I just can't seem to get them to work. I don't want one that is already coded for me and just be a copy and paste, but I would also like to learn how it functions and why it functions as well. I've done several google...
  7. G

    Help with php and mysql

    Hello, I am currently having problems with databases in mysql. As of now, I have a basic script in which the user will input data into 7 text field, and hit the submit button. My real problem is that for some reason I am unable to access my database through php. I have it set up like so...
Top