gunnard.org

Stuff and Things...

  • Security
  • PHP
  • Devops
  • Learning
  • hacking
  • Fun
  • links
black laptop computer turned on showing computer codes

Connecting PHP to MySQL (MySQLi & PDO)

by gunnard

This is the most asked question I have seen in the past few months so I thought I would collect some samples here:

Share this:

  • Click to share on X (Opens in new window) X
  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to email a link to a friend (Opens in new window) Email

Category: PHP Tags: mysql, mysqli, php

code projected over woman

How can I prevent SQL injection in PHP?

by gunnard

Preventing SQL injections is a popular topic. #1 on stackoverflow (for php) and also listed on the OWASP top 10. So what is an SQL Injection? The first part “SQL” refers to Sequential Query Language which is used… Read More

Share this:

  • Click to share on X (Opens in new window) X
  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to email a link to a friend (Opens in new window) Email

Category: Development, hacking, PHP, Security Tags: mysqli, pdo, sql injection

Copyright © 2026 · All Rights Reserved · gunnard.org

90s Retro from Organic Themes · RSS Feed · Log in