|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
Hello People.
I am really hoping you can help me, I'm 15 and just starting to learn php. I know how to set up a MySQL database and I know some basic PHP. I was wondering if anybody could tell me how to query a database? What I really want to do is a New and Updates thing for my personal site. I want two things, a date, and the new for that date. I have the basic idea how it works I just need a little help. Thanks. Glen |
|
#2
|
|||
|
|||
|
hmmm.... you should look at php.net. They have a great section that will explain all the different codes fore you, and then mysql.com. They will tell you how to query the db.
BUT. Here is the genneral idear: PHP Code:
PHP Code:
PHP Code:
- Pheifel |
|
#3
|
|||
|
|||
|
if you want a really great book ( at least in my opinion ) on learning php, get PHP Fast and Easy Web Development by Julie C. Meloni. I got it and it helped me out a great deal and I still use it for reference though it is mainly good for learning the basics. After you learn the basics, all you need is the PHP and MySQL online documentation.
![]() |
|
#4
|
|||
|
|||
|
Hey I started learning php when I was 16 and been doing it for a year. What helped me was looking at hotscripts.com and the example scripts there for updates and inserts then learning that way.
PHP and MySql for dummies helped me a lot. php.net is also very useful. |
|
#5
|
|||
|
|||
|
Hi Glen,
One way to establish a connection with a mySQL server is with the following function: PHP Code:
This function will return a true if the connection was successfully made, and a false if the connection was not made. After the ConnectToDB function has been called by your script, you can do something as follows: PHP Code:
Additionally, http://us3.php.net/manual/en/ref.mysql.php has a list of available PHP functions that you can use with mySQL. Hope that helps. Thanks, ClearWater |
![]() |
| Viewing: Dev Articles Community Forums > Databases > MySQL Development > Really Basic PHP / MySQL Help |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|