Thanks I have tried it and it hasn’t worked.
this is my code
<?php
if (isset($_POST[‘submiited’])){
$hname= $_POST[‘name’];
$haddress= $_POST[‘address’];
$hcontact= $_POST[‘contact’];
$hcost= $_POST[‘cost’];
global $wpdb;
$wpdb->insert(‘hotel’,array(‘name’ => ‘$hname’,’Price’ => $address),array(‘%s’,’%d’));
}
?>
I am not sure exatly why its not working, I don’t get errors but nothing inserts into the database.
Thanks