Jump to content


Photo

New in PHP,need help with db.


  • Please log in to reply
3 replies to this topic

#1 Atex

Atex
  • New Members
  • Pip
  • Newbie
  • 1 posts

Posted 03 July 2006 - 04:30 PM

ok,im new in php...and i need help XD
Questions:
1)How do i create a db in php? (in asp i use Access)
2)How do i update the db?
3)How do i delet the db?
4)How i search in db?
5)how i read from db?
6)how do i connect to the db?

i know,SQL so lines like : Select * from mydb,con,3,3
                                    .
                                    .
like,for update in asp i use recrodeset.update(rs.update..)
but how do i work in php?

thx

#2 trq

trq
  • Staff Alumni
  • Advanced Member
  • 31,041 posts

Posted 03 July 2006 - 04:38 PM

php can connect to many different databases, however, most people (and most examples) use MySql with php.

You can look up how to use MySql with php in the manual.

#3 Orio

Orio
  • Staff Alumni
  • Advanced Member
  • 2,491 posts

Posted 03 July 2006 - 04:39 PM

Lots of tutorials:
http://www.google.co... mysql tutorial

For creating DBs and such, use PHPmyAdmin.

Orio.
Think you're smarty?

(Gone until 20 to November)

#4 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 03 July 2006 - 05:05 PM

I would recommend your to goto php-mysql-tutorial.com and go through turorial numbers 1 through to 9. NOTE tutorial number one steps you through setting up Apache, PHP and MySQL locally so you run PHP scripts locally on your home PC.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users