If you just want to grab one record, or know that you are only expecting one result you can use the following code: <?php // […]
Loop Through Recordset With MySQL and PHP (MYSQLI Connection)
This is the basic syntax required to loop through a MySQL table and output the results <?php // Connect to your database $conn = mysqli_connect(“localhost”, […]
Find An Element In A QueryString With JavaScipt
If you want to see if there’s a valid element in a querystring and then take an action you can use JavaScript to parse the […]
ON DELETE Cascade (Remove child records when parent records deleted)
If you haven’t created the child table you can run the following SQL command: CREATE TABLE ChildTable ( ChildID INT PRIMARY KEY AUTO_INCREMENT, ParentID INT, […]
Loop Through MySQL Fields And Output A Form
This script will loop though all fields in a database and output the name and create a form field with appropriate record value. This is […]
Yamtrack To WordPress Sync
If you’re a fan of films and TV you’ll probably keep track of what you’re watching. While there are online services such as Trakt and […]