This Forum has been archived there is no more new posts or threads ... use this link to report any abusive content
==> Report abusive content in this page <==
Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Trying to understand how PHP and MySQL works - Am I understanding correctly?
12-08-2012, 09:26 PM
Post: #1
Trying to understand how PHP and MySQL works - Am I understanding correctly?
I've read through some articles on Wikipedia, and I am still a bit confused. I just want to make sure I understood it correctly:

1. Client computer sends data request to server via web browser
2. The server receives the data request

3. PHP is a programming language that's embedded in the HTML file, which fetches information from MySQL Database ? Is this correct

4. MySQL is like a program that organizes the data on the Server....kind of like how Quickbooks organize financial data on your PC ? is this correct

5. After the PHP script fetches the data from MySQL - does the information get translated back into HTML and sent to the client browser? Or does it stay in PHP form and the client browser can read PHP? Or, does the PHP script determine which HTML codes to fetch from the server? - I'm confused about how the transition is made between the information fetched from the server hard drive, to the client's browser.

Thanks.

Ads

Find all posts by this user
Quote this message in a reply
12-08-2012, 09:34 PM
Post: #2
 
You use the php to manipulate the data in the mysql database. It also reads the data as requested and writes the appropriate html for the browser.

Ads

Find all posts by this user
Quote this message in a reply
12-08-2012, 09:34 PM
Post: #3
 
1. A client connects to the server.
2. The server then processes the PHP which can connect to a database, MySQL for example. A database stores information in tables which are formed of rows and columns, imagine an Excel document.
3. Once the PHP has got the information from the database it will then output text.
4. If the text is in a format the browser understands, HTML for instance it will be rendered.

Websites like facebook use a database to store information about a person which is then accessed by PHP and rendered by a clients browser as HTML.
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)