query_error.php:
<?
$msg = 'Could not produce proper results';
if (preg_match('/\/development\//i', $devpath)) $msg .= ': ' . mysql_error();
?>
<script>
<!--
location.href = '<?= $devpath ?>error.php?msg=<?= urlencode($msg) ?>';
//-->
</script>
<meta http-equiv='Refresh' content='1;URL=<?= $devpath ?>error.php?msg=<?= urlencode($msg) ?>'>
This script is called by other scripts this way:
$result = mysql_query($this->query, $this->dbcnx) or die(include("$DOCUMENT_ROOT${devpath}errors/query_error.php?msg=" . urlencode(mysql_error())));
However, upon attempt to do so the following warning is thrown instead and everything just dies:
Warning: Failed opening '/errors/query_error.php?msg=Can%27t+find+FULLTEXT+index+matching+the+column+list' for inclusion (include_path='.:/usr/share/pear') in /libdev/db.inc on line 115
Very Very simple requirement: Show Friendly mysql_error() message and can't do it 🙁
Please help, I'm stuck
Thanx
Phil