I am trying to learn mysql and have some problems updating / adding data to a table
this is my code and after starting this page, when I switch to phpmyadmin to find out if new data has appeared, I donโt see it there.
<?php $conn = mysql_connect($dbhost, $dbuser, $dbpass); if(!$conn) { die("Could not connect"); } $dbname = "test"; mysql_select_db($dbname, $conn); mysql_query("INSERT INTO 'test'.'table1' ('A1', 'A2', 'A3', 'A4', 'A5', 'A6', 'A7', 'A8') VALUES ('test1', 'test2', 'test3', 'test4', 'test5', 'test6', 'test7', 'test8')"); mysql_close($conn); ?>
Can someone tell me what happened with this?
source share