Jump to content

PHP & MYSQL Getting data Error Page?


winmastergames

Recommended Posts

Ok well im making a script and is there any way that if MYSQL has a error it redirects to another Page (Error Page) Heres a piece of MYSQL code:

<?php 
$sql = "SELECT * FROM $userget";
$query = mysql_query($sql);
while($row = mysql_fetch_array($query)) {
echo "".$row['title']."";
}
?> 

I just need a sample on how to do this so i can add it myself

Thanks Alot

Link to comment
https://forums.phpfreaks.com/topic/100397-php-mysql-getting-data-error-page/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.