<?php $p = $_GET['p']; $sql = mysql_query('SELECT name,url FROM search WHERE name = "' . $p . '"') or die(mysql_error("rere")); while ($r = mysql_fetch_array($sql)) { print "<p><b>Результат поиска:</b> <a href=index.php?option=content&task=view&id=" . $r['url'] . ">" . $r['name'] . "</a>"; } ?>
As you understand, in the case of or die
will be a void, and I want the inscription PARDON
to be displayed. How to fix or die
? or what generally needs to be fixed in the code?