Results 1 to 9 of 9
Threaded View
-
23rd Nov 2011, 03:33 PM #2OPToo busy :|Website's:
L337Fx.com BeastieBay.netI modified the code and currently, this is working fine. I know its a lame and poor code, but its still doing what it should do.
PHP Code:<?php $id = $_GET['id'];
$db = mysql_connect($hostname,$username,$password);
if(!$db){
echo 'Failed to connect to database. Check your info';
}
@mysql_select_db($database) or die( "Unable to select database");
$query = "SELECT * FROM post";
/*$result = mysql_query($query);*/
$result = mysql_query($query) or die(mysql_error());
$title = mysql_result($result,--$id,"title");
$cover = mysql_result($result,$id,"cover");
$info = mysql_result($result,$id,"info");
echo 'ID='.++$id.' - Title='.$title.'';
mysql_close();?>
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Apache displaying massive Reading request
By khan007 in forum Server ManagementReplies: 7Last Post: 11th Aug 2012, 03:28 PM -
Need help with Wordpress links displaying problem
By glavier in forum Technical Help Desk SupportReplies: 3Last Post: 16th Apr 2012, 07:47 PM -
Displaying Random Post Widget
By {Psycho} in forum Web Application/Script SupportReplies: 2Last Post: 11th Feb 2011, 11:32 AM -
Why are avatars not displaying???
By gamelord in forum General DiscussionReplies: 4Last Post: 23rd Jul 2010, 06:27 AM -
(Tut) Displaying katzporn button in specific forum
By raj11 in forum vBulletinReplies: 6Last Post: 7th May 2010, 01:59 PM
themaPoster - post to forums and...
Version 5.38 released. Open older version (or...