Someone tell me why I get the messages below?
Notice: Use of undefined constant localhost - assumed ‘localhost’ in C:\xampp\htdocs\hofiles\maintupdate.php on line 2
Notice: Use of undefined constant root - assumed ‘root’ in C:\xampp\htdocs\hofiles\maintupdate.php on line 2
Notice: Use of undefined constant maintdb - assumed ‘maintdb’ in C:\xampp\htdocs\hofiles\maintupdate.php on line 3
<?php
mysql_connect("localhost","root","");
mysql_select_db('maintdb') or die( "Unable to select database");
if(!empty($_POST["submit"]))
{
$apt = $_POST['apt'];
$query="SELECT * FROM maintdata Where apt='$apt'";
$result=mysql_query($query);