Connecting...

This is a quick preview of the lesson. For full access, please Log In or Sign up.
For more information, please see full course syllabus of Advanced PHP
For more information, please see full course syllabus of Advanced PHP
Advanced PHP Using PHP from MySQL
Lecture Description
In this lesson our instructor talks about using PHP from MySQL. First, he discusses PHP and MySQL architecture. Then he talks about MySQLi extension, steps to using MySQL from PHP, and connecting to a database. He also lectures on running an SQL statement, processing the results, and closing the connection. He ends the lesson with nine homework challenges.
Bookmark & Share
Embed
Share this knowledge with your friends!
Copy & Paste this embed code into your website’s HTML
Please ensure that your website editor is in text mode when you paste the code.(In Wordpress, the mode button is on the top right corner.)
×
Since this lesson is not free, only the preview will appear on your website.
- - Allow users to view the embedded video in full-size.
Next Lecture
Previous Lecture
0 answers
Post by Joshua Baker on July 31, 2014
If your table has multiple columns you can insert into each like this:
$query1 = "INSERT INTO persons ('name', 'age', 'gender') VALUES ('josh', '21', 'male')";
$result1 = $getDb->query($query1);
1 answer
Last reply by: Jared DiChiara
Thu Feb 28, 2013 1:17 PM
Post by Behrouz Hosseini on November 23, 2012
hi
Can you please let me know why we are using the @ before the $db variable?
Thanks