I have looked at these websites to see if I can work out how to save and retrieve pictures from the database but it's not worked out.
http://php.about.com/od/phpbasics/ss/php_mysql.htm
http://www.php.net/
I though this was useful code for connecting to your database:-
// Connects to your Database
mysql_connect("your.hostaddress.com", "username", "password") or die(mysql_error());
mysql_select_db("Database_Name") or die(mysql_error());
?>
I imagine need to substitute this in to the zapis.php file I have for saving to my databases, here's the zapis code:-
mysql_connect("localhost","root","");
mysql_select_db("flashkit");
I'm frustrated nothing's working.
No comments:
Post a Comment