Jump to content

nworst

Members
  • Content Count

    36
  • Joined

  • Last visited

Community Reputation

0 Neutral

About nworst

  • Rank
    Newbie

Contact Methods

  • Website URL
    http://
  • ICQ
    0
  1. nworst

    Rounded corners

    Thanks all! I'll give it a try
  2. nworst

    Rounded corners

    How do I get the corners of a certain (rectangled) div to be rounded? What I mean is this.Thanks.
  3. I had exactly the same problem as you do. I'd indeed recommend you to take up PHP. You'll only need some basic knowledge to do it
  4. nworst

    I'm Confused About It

    It's just a matter of choice, if you prefer tables, just use tables I prefer using <div>.
  5. Oh ok, I just wanted to experiment a bit with mailforms et cetera, so I'll just give up mailforms for now
  6. I've made a mailform, but sending the mail doesn't yet work out as it should. This is the error code I get when sending the email: Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\xampp\htdocs\Testweb\startpagina.php on line 106 What port should I be using if 25 (default) doesn't work?
  7. Ah, I knew it was a dumb fault. Worked out properly now. Thanks very much, you really helped me out. Gotta say you really know a lot about PHP
  8. Now it says Unknown database 'my_db', however I did save the file as my_db.mysql :SI think I'm making a really stupid mistake somewhere..By the way, I'm leaving now I'll be back tomorrow, hopefully it works out then
  9. This is db.php: <?php$con = mysql_connect('localhost', 'root', ''); // host, username, passwordmysql_select_db('my_db', $con);function db_query($sql){ return mysql_query($sql, $GLOBALS['con']);}?> I filled in the name of the database behind mysql_select_db, should it be filled in somewhere else as well?
  10. If I type in a password at db.php, it says Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'root'@'localhost' (using password: YES) in C:\xampp\htdocs\Testweb\db.php on line 3Warning: mysql_select_db() expects parameter 2 to be resource, boolean given in C:\xampp\htdocs\Testweb\db.php on line 4Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: Access denied for user 'ODBC'@'localhost' (using password: NO) in C:\xampp\htdocs\Testweb\register.php on line 27Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: A link to the serv
  11. Now it says 'No database selected'.
  12. This is the code of register.php: <?phprequire_once 'db.php';$page_mode = isset($_POST['page_mode']) ? $_POST['page_mode'] : '';$error_string = '';if ($page_mode == 'register'){ $email = trim($_POST['email']); // trim to remove whitespace $name = trim($_POST['name']); // trim to remove whitespace $password = $_POST['password']; $conf_password = $_POST['conf_password']; if (!isValidEmail($email)) $error_string .= 'Vul aub een geldig emailadres in.<br>'; if ($name == '') $error_string .= 'Vul uw naam in aub.<br>'; if (strlen(trim($password)) < 6) $error_string .= 'Het w
  13. Ok, username now is root, and now the errors above the register.php and login.php page are gone. But when I now try to register, I get the following: Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\Testweb\register.php on line 28Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\Testweb\register.php:28) in C:\xampp\htdocs\Testweb\register.php on line 37 If you need any scripts, I'll post them
  14. Downloaded XAMPP, but when I try to register (filled in all the fields in register.php), I get the following: Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'ODBC'@'localhost' (using password: NO) in C:\xampp\htdocs\Testweb\db.php on line 3Warning: mysql_select_db() expects parameter 2 to be resource, boolean given in C:\xampp\htdocs\Testweb\db.php on line 4Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: Access denied for user 'ODBC'@'localhost' (using password: NO) in C:\xampp\htdocs\Testweb\register.php on line 27Warning: mysql_real_escape
  15. Which WAMP would you recommend?
×
×
  • Create New...