• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
  • Bear Bibeault
  • Jeanne Boyarsky
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Piet Souris
  • salvin francis
  • Stephan van Hulst
  • Frits Walraven
  • Carey Brown
  • Jj Roberts

Having problem to connect to my SQL database to add values in my table (PHP code)

Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is my code:

The output when I enter good inputs, it print in the error area: Database error: Failed to register

Also, I defined the variables: DB_HOST, DB_USER, DB_PASS, DB_NAME

the same as in my Xampp phpmyadmin settings.

If you need more info just tell me and i'll try my best give it to you.
Posts: 3268
Android Eclipse IDE TypeScript Redhat MicroProfile Quarkus Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try printing-out the information returned by $stmt->error_list (mysqli_stmt::$error_list) to get a better idea of what is happening.
no wonder he is so sad, he hasn't seen this tiny ad:
Thread Boost feature
    Bookmark Topic Watch Topic
  • New Topic