You did not add concatenations.
Change:
PHP Code:
echo '<p style="color: red; text-align: center">data has been inserted in apartment $apt</p>';
Into:
PHP Code:
echo '<p style="color: red; text-align: center">data has been inserted in apartment' . $apt . '</p>';
__________________
$gocore = new gakoyucore();
$con = mysql_connect($gocore->server, $gocore->username, $gocore->password) or die(mysql_error());
|