Jump to content

Dunkthefunk

New Members
  • Posts

    9
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Dunkthefunk's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Thanks for your feedback, i'll work around it see what i can do. Anything else, anyone? Good, bad, ugly?
  2. Thanks for the feedback. I've just placed all my CSS in an external sheet, you're right it looks alot cleaner. As for the lime colours ill play with some others and see what works.
  3. Hiya, Nearly finished, few links need brushing up and occasional tweak here and there. Any feedback would be fantastic! www.lewishynd.com Thankyou.
  4. Hello, I'm trying to connect to my MySQL database through Dreamweaver CS5, however everytime i select a database or choose to connect it crashes. I've tried altering the firewall and the infomation typed in is correct. It works fine in phpMyAdmin. Any suggestions? Thanks.
  5. Right got'cha. Thank's very much for your time and input, it's very helpful!
  6. Ahh thank you very much. - Instead of using die, should i use exit?
  7. Hiya, I'm fairly new to PHP and MySQL but I’ve toyed around with a Register and login script and i can now get most of it too work, however I’m having trouble with the passwords. When a user registers the password changes and comes up as jargon in my database. I can't really see much wrong with the script but i expect that’s due to my amateur PHP abilities. Here is the code relating to the Password. It stored as an array and as a cookie and the cookie is deleted upon log out. (I'm also aware i havn't uncluded MySQL connect infomation... for obvious reasons ) Kind regards <?php mysql_connect("", "", "") or die(mysql_error()); mysql_select_db("") or die(mysql_error()); if (isset($_POST['submit'])) { if (!$_POST['username'] | !$_POST['pass'] | !$_POST['pass2'] ) { die('You did not complete all of the required fields'); - Here is infomation about the Username.. that's working fine and dandy - if ($_POST['pass'] != $_POST['pass2']) { die('Your passwords did not match. '); } $_POST['pass'] = md5($_POST['pass']); if (!get_magic_quotes_gpc()) { $_POST['pass'] = addslashes($_POST['pass']); $_POST['username'] = addslashes($_POST['username']); } $insert = "INSERT INTO users (username, password) VALUES ('".$_POST['username']."', '".$_POST['pass']."')"; $add_member = mysql_query($insert); ?>
×
×
  • 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.