Current location: Hot Scripts Forums » Programming Languages » PHP » need help getting started


need help getting started

Reply
  #1 (permalink)  
Old 12-05-03, 04:47 PM
Tatyana Tatyana is offline
New Member
 
Join Date: Dec 2003
Location: Ukraine
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
need help getting started

Hi all,

I'm not exactly a programmer, I'm a web designer, but I'm really interested in database-driven websites and would like to have it all clear. Most of all I would like to learn about how to connect a database table to a webpage - does any of you know about a site/article/tutorial/whatever on this subject?

I'd appreciate any suggestions! Thanks!

Tatyana
Reply With Quote
  #2 (permalink)  
Old 12-05-03, 05:56 PM
darkcarnival's Avatar
darkcarnival darkcarnival is offline
PHP/MySQL coder
 
Join Date: Jun 2003
Posts: 939
Thanks: 0
Thanked 0 Times in 0 Posts
well to connect to a db is really simple heres how to do it:

PHP Code:

$db_connection mysql_connect ($DB_HOST$DB_USER$DB_PASS) or die ('Could not connect to MySQL: ' mysql_error());


mysql_select_db ($DB_NAME) or die ('Could not select database: ' mysql_error());

$query "SELECT * FROM tablename 
hope this helps
Reply With Quote
  #3 (permalink)  
Old 12-05-03, 07:09 PM
RynO RynO is offline
Newbie Coder
 
Join Date: Sep 2003
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
There's a book i read that really helped me with this stuff.

'PHP and MySQL Web Development' By Luke Welling and Laura Thomson. It's a very good book.
Reply With Quote
  #4 (permalink)  
Old 12-06-03, 01:31 AM
fyrestrtr fyrestrtr is offline
Wannabe Coder
 
Join Date: Nov 2003
Posts: 191
Thanks: 0
Thanked 0 Times in 0 Posts
You can buy a book, or you can check out the following sites for tutorials

http://www.phpfreaks.com (hear lots of good things about these people)
http://www.zend.com/zend/tut/ (excellent tutorial website from Zend -- a company formed by the guys that wrote the PHP3 engine)
http://www.php.net/mysql (list of functions to connect to mysql databases using PHP)
http://www.w3schools.com
http://www.google.com/search?q=php+mysql+tutorials
<plug type="shameless">
http://www.meidomus.com (Disclaimer : This is my website, and I wrote the tutorials on it. If you have a comment about it, leave me a message )
</plug>
Reply With Quote
  #5 (permalink)  
Old 12-06-03, 10:02 AM
darkcarnival's Avatar
darkcarnival darkcarnival is offline
PHP/MySQL coder
 
Join Date: Jun 2003
Posts: 939
Thanks: 0
Thanked 0 Times in 0 Posts
?I also know a very good book that helped me program my very 1st site:

Core PHP programming by leon

and for mysql i got:

Mysql by Larry

both helped me program my 1st program and isnt that expensive
Reply With Quote
  #6 (permalink)  
Old 12-14-03, 05:51 AM
Tatyana Tatyana is offline
New Member
 
Join Date: Dec 2003
Location: Ukraine
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks to all of you!
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to find the difference between two dates and make multiple inserts based on it? wyseguy ASP 1 10-08-03 11:53 AM


All times are GMT -5. The time now is 06:08 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.