Using PHP data in MySQL [closed]

  • You forgot a semicolon after your definition of $name (turn on error reporting to see parse errors).
  • You didn’t delimit the name inside your SQL query.
  • echo $result doesn’t do anything useful.
  • Time to read a peer-reviewed PHP book!

Leave a Comment