Hello and thanks for reading my thread. I'm willing to start coding a little bit, specially php. This website has a lot of useful information that a rookie like me could use. I have a homeserver that isn't very powerful or big for storage(120GB) but it can be used for testing. So if any of you need to test small projects that won't be such a hassle, I'd be very happy to share it with you for free, no catch. It's at [snipped] please don't attack it or damage it, I'm sure you can destroy it easily but that's not …
|+0 forum 3|
I can't seem to get my register page working with a password. This is the query I executed: [CODE]CREATE TABLE dbUsers ( id INT(10) NOT NULL AUTO_INCREMENT PRIMARY KEY, username VARCHAR(16) unique, password CHAR(16), email VARCHAR(25) );[/CODE] It only registers if there is no password filled..
|+0 forum 29|
I'm almost done making my registration system on my home server. Thanks to everyone for your help. The last thing I would like to know is why it says: Error: [U]User not added to database.[/U] This is part of my register code: [CODE] // Fields are clear, add user to database // Setup query $q = "INSERT INTO `dbusers` (`username`,`password`,`email`) " ."VALUES ('".$_POST["username"]."', " ."PASSWORD('".$_POST["password"]."'), " ."'".$_POST["email"]."')"; [/CODE] My database is made and named like in dbconfig.php [CODE] $db = "mysqladmin";[/CODE] My table is dbusers but the columns/rows are made manually... What could be the problem?
|+0 forum 7|
Hello, like before, I'm still trying to make a register page with login and logout. Here's the link to my server (If I'm not allowed to share links please remind me.) [url]http://fifarulez.dyndns.org/hacks4all.wapzan.com/registration/[/url] After the registration it will give 2 warnings. ( ! ) Warning: mysql_query() [function.mysql-query]: Access denied for user ''@'localhost' (using password: NO) in C:\wamp\www\hacks4all.wapzan.com\registration\register.php on line 40 and ( ! ) Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in C:\wamp\www\hacks4all.wapzan.com\registration\register.php on line 40 I tried to fix it by changing the code in: [CODE] // dbConfig.php is a file that contains your // …
|+0 forum 9|
Hello, I've always liked coding and lately I've learned a little but more of it. Now I also understand sql and db a little more. My problem is that my register.php file seems to give me a notice. Notice: Undefined index: op in C:\wamp\www\hacks4all.wapzan.com\registration\register.php on line 11 and Notice: Undefined index: op in C:\wamp\www\hacks4all.wapzan.com\registration\register.php on line 55 the code is the following: [CODE] <?php // dbConfig.php is a file that contains your // database connection information. This // tutorial assumes a connection is made from // this existing file. include ("dbConfig.php"); //Input vaildation and the dbase code if ( $_GET["op"] …
|+0 forum 1|