Go Back   Singapore Web Hosting Talk > TECHNICAL > Programming Forum

Programming Forum Web applications, languages and other related issues in configuration, optimization, practical usage and database connectivity.

Reply
 
Thread Tools
Old 22-07-2009, 03:21   #1
MumbleVoice-Jen
SGWHT Newbie
 
Join Date: 09-07-2009
Posts: 12
MumbleVoice-Jen is on a distinguished road
Exclamation Help Related to PHP+SQL

Hello All,

I'm using following code on my website to retreive Plan Details.

PHP Code:
<?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
__________________
MumbleVoice.com - Providing Affordable & Reliable Mumble Voice Hosting Servers since 2001!
MumbleVoice-Jen is offline   Reply With Quote

Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump




All times are GMT +8. The time now is 19:50.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Copyright (C) 2002-2015 Brought to you by Singapore Web Hosting Talk (SGWHT). All Rights Reserved.