jainritesh
07-18-2009, 07:31 AM
Hello All,
I'm using following code on my website to retreive Plan Details.
<?php
$SQL = "SELECT * from PLANS WHERE ID = '$_GET[id]'"; $result = @mysql_query( $SQL ); $row = @mysql_fetch_array( $result );
$description = preg_replace("/\n/","\n<BR>",$row[DESCRIPTION]);
$summary = preg_replace("/\n/","\n<BR>",$row[SUMMARY]);
?>
If the output is null or entry not present in the database how to display the same. (I want to display this message if the same is not there --> Plan Not found)
Please Help,
Best Regards,
Ritesh Jain
I'm using following code on my website to retreive Plan Details.
<?php
$SQL = "SELECT * from PLANS WHERE ID = '$_GET[id]'"; $result = @mysql_query( $SQL ); $row = @mysql_fetch_array( $result );
$description = preg_replace("/\n/","\n<BR>",$row[DESCRIPTION]);
$summary = preg_replace("/\n/","\n<BR>",$row[SUMMARY]);
?>
If the output is null or entry not present in the database how to display the same. (I want to display this message if the same is not there --> Plan Not found)
Please Help,
Best Regards,
Ritesh Jain
