Monday, January 21, 2008

Technical Developments Part 10

Here are a few web pages that I have been looking at to help me with the PHP and mySQL, I'm running out of time unfortunately and I'm not really getting anywhere.

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: