i design i page that let the user upload pic by saving the pic in a folder and the name in a database and when the submit button press it move to the page that contain the uploaded picture,
the problem is in that some time it display the picture and some time not and in the time that does not display the picture, the picture is already stored in the folder and the pic name is also stored in the database so i don't now what wrong with it.
the second question is that if i want to put my page on the net do i have to change the following code and do i have to change the username if the site will be for the regested user only to be able to write message on it and all people can veiw it
the code is
$db = mysql_connect("localhost", "root");