thanks for taking the time to help guys,
the SQL statement comes out as you said Andrew
select * from users where username = 'Fred'
and i am only interested in the count at this point so i will try the select count... idea but this code should still work should it not?
also all this code...
Hi guys,
apologies if this is something silly i'm still quite new to MySQL so here goes...
the user fills out this form to sign up to the website, the form checks the database to see if the username has already been taken with the code:
$conn = mysql_connect("localhost:3306", "root"...
very sorry... posted the wrong info
i was looking at the wrong php.ini
; Default timeout for socket based streams (seconds)
default_socket_timeout = 600
upload_tmp_dir="C:\DOCUME~1\Ben\LOCALS~1\Temp\php\session"
session.save_path="C:\DOCUME~1\Ben\LOCALS~1\Temp\php\upload"
cgi.force_redirect=0...
thanks for taking the time to reply,
I tried:
session_write_close();
gave the same results, get bounced straight back to the login page.
so tried the test with test_a.php and test_b.php and i get a couple of interesting looking errors
first:
PHP Warning: session_start()...
I'm quite new to php and i;m struggling, i'm trying to write a simple login section which checks a username and a password against a database and then either redirects you to the main website (if details are correct) or back to the login page (if incorrect)
I've got a simple html form which...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.