$dbh=mysql_connect("localhost:3306","username","password");
This creates the connection with the database,then you can
store or get database's datas.
Since raymundo saves the User ID with session,we should select the unique row.
$sql="select * from $table_name...
Something is wrong with the file operation.
function fread(),fwrite() read or write binary datas into
a file.But your $hits is a string,that's to say,10 means
character 1 and 0,2 bytes.Therefore when you want to write 10 to file,in fact you write 1 to file because filesize() returns 1 byte.
If...
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.