I have made a table with rows of information in it, next to the rows I have included a 'delete' button, which I was hoping would delete that specific row of information from the SQL. However, I keep getting errors that it failed to connect as I do not know how to give the row a specific number so the SQL knows which row to delete. Here is the code for the table:
However, it does not work, the page doesnt refresh or delete from SQL.
I hope someone can help me sort out my issue. Thank you,
setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);tho ) vs MySQLi.. And PDO can connect to multiple databases with the same code if you write ANSI SQL your SQL statements should run on ANSI complaint databases with the same code.