Step 1: connect to the server
Step 2: connect to the database
Step 3: query the database
Step 4: fetch the result from the database and convert them into an array.
I try to apply the code by following the step. Hopefully, the data can be shown out.
Here is how I select the data from the database. It seems that the data can be inserted but it fail to show out from the website.
References:
W3schools.com. (2017). Tryit Editor v2.2 - Show PHP. [online] Available at: http://www.w3schools.com/php/showphpfile.asp?filename=demo_db_select_oo [Accessed 13 Jan. 2017].
YouTube. (2017). PHP Tutorial - Connecting to MYSQL, Getting Data and Displaying in a Web Page. [online] Available at: https://www.youtube.com/watch?v=Zz9CnB47TLA [Accessed 13 Jan. 2017].
YouTube. (2017). Display Data on Web Page from Database. [online] Available at: https://www.youtube.com/watch?v=HtTG5Kf_mTA [Accessed 13 Jan. 2017].
No comments:
Post a Comment