Hi everyone,
thank you for reading, I am sure that the advice you give will be helpful.
main.php
include "errorForm.php";
$SQL = "SELECT * FROM contacts where contact_id = '$id'";
$result = mysql_query($SQL) or die($errorForm);
errorForm.php(truncate)
<?php
$errorForm = '
<h1>Error</h1>
<table>
<tr>
<td>...</td>
</tr>
<tr>
<td>
<form name="report" action="" method="post">
...
<textarea name="message">' . mysql_error() . '</textarea>
<input type="submit" value="Send bug report" style="width: auto; margin-right: 2px;"/>
</form>
</td>
</tr>
</table>';
?>
Basically: upon die display $errorForm which is working fine, however mysql_error() is not being displayed. I figured that mysql_error() is not able to function when it is an include?
Any advice you might have will be brilliant.