Hi there,
I am trying to insert data in to a mysql database.
This error message comes up relating to $org and every other field:
Notice: Undefined variable: org in c:\inetpub\wwwroot\Wendy\Add.php on line 51his is the
Here is my php:
<?php
mysql_connect ("localhost", "root", "purple1");
mysql_select_db ('youth_services');
$query="INSERT INTO details (org, address1, address2, address3, city, pcode, la, tel,
fax, email, web, name, surname, cat1, cat2, cat3, cat4, cat5, cat6, cat7, cat8, cat9, cat10, cat11, gptext, image, date)
VALUES ('$org', '$address1', '$address2', '$address3', '$city', '$pcode', '$la', '$tel',
'$fax', '$email', '$web', '$name', '$surname', '$cat1', '$cat2', '$cat3', '$cat4', '$cat5', '$cat6', '$cat7', '$cat8', '$cat9', '$cat10', '$cat11', '$gptext'. '$image', '$date')
";
print("<p>");
print('$org ');
print("successfully entered in to database");
print("</p>");
?>
Any ideas how to define the variables?
Thanks