Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,155,799 members, 7,827,945 topics. Date: Tuesday, 14 May 2024 at 07:49 PM

Php, Mysql. Pls Help Me Out - Webmasters - Nairaland

Nairaland Forum / Science/Technology / Webmasters / Php, Mysql. Pls Help Me Out (712 Views)

Php/mysql Pin And Serial Number Generation Script / Wamp Server Ebook Ft Install Wamp, Write Php / Mysql / Mysql Console / Learn Cakephp, Php/mysql For Free With Video Tutorials (2) (3) (4)

(1) (Reply)

Php, Mysql. Pls Help Me Out by triplee02(m): 9:00am On Jan 21, 2010
I used dis d below script while creating a mobile toplist and it generated error. Pls correct me: <?php
header('Content-type: text/html; charset=utf-8');
header('Cache-Control: no-store, no-cache, must-revalidate');
echo "<?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?>";
echo "<!DOCTYPE html PUBLIC \"-//WAPFORUM//DTD XHTML Mobile 1.0//EN\" \"http://www.wapforum.org/DTD/xhtml-mobile10.dtd\">";
echo "<link rel=\"StyleSheet\" type=\"text/css\" href=\"style.css\" />";
echo "<html xmlns=\"http://www.w3.org/1999/xhtml\">";
include_once("config.php"wink;
include_once("logics.php"wink;
connectdb();
echo "<title>$sn</title>";
echo "<head>";
?>
<?
echo "<body>";
echo "<div class='center'>";
echo "Wed, 10 September 2008<br/>";
echo '</div>';
echo "<div class='image'>";
echo "<img src='images/logo.gif' alt=''/><br/>";
echo '</div>';
echo "<div class='center'>";
echo '
Bookmark Now!<br/>
http://mtop.tk
';
echo '<br/>';
echo "<a href=''>$adn</a><br/>";
echo "<a href=''>$adn2</a>";
echo '</div><br/>';
echo "<div class='left'>";
echo 'Interesting<br/>';
echo '</div>';
echo "<div class='leftline'>";
echo " <img src='images/top.gif' alt=''/> <a href='top10.php'>Top 10</a><br/>";
echo '</div>';
echo "<div class='leftlight'>";
echo " <img src='images/search.gif' alt=''/> <a href='search.php'>Search Engine</a><br/>";
echo '</div>';
echo "<div class='leftline'>";
echo " <img src='images/new.gif' alt=''/> <a href='newsites.php'>New Sites</a><br/>";
echo '</div>';
echo "<div class='left'>";
echo ' Random:<br/>';
echo '</div>';

$count = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM users WHERE hin >= '3'"wink);

if($count[0]=="0"wink{
echo "<div class='leftline'>";
echo "<img src='images/ran.gif' alt=''/>No Site Active Now";
echo '</div>';
}else{



$sql ="SELECT * FROM users WHERE hin '3' ORDER BY

RAND() LIMIT 1";

$sites = mysql_query($sql);

while ($site = mysql_fetch_array($sites))

{

echo "<div class='leftline'>";
echo "<img src='images/ran.gif' alt=''/><a href='vsites.php?sid=$site[0]'>$site[4]</a><br/>";
echo '</div>';

}
}
echo "<div class='left'>";
echo "Categories:";
echo '</div>';


$css_row = 'odd';

$cats = mysql_query("SELECT * FROM cats"wink;

while($cat = mysql_fetch_array($cats))
{
if($css_row == 'odd')
{
$css_row = 'even';
}else{
$css_row = 'odd';
}

echo "<div class='$css_row'>";
echo "<img src=\"images/cube.gif\" alt=\"x\"/> <a href=\"vcats.php?cid=$cat[0]\">$cat[1]</a><br/>";
echo '</div>';
}



echo "<br/><div class='left'>";
echo "Add/Edit Your Site<br/>";
echo '</div>';
echo "<div class='leftline'>";
echo "<img src='images/edit.gif' alt=''/> <a href='login.php'>Login/Edit</a><br/>";
echo '</div>';
echo "<div class='left'>";
echo "<img src='images/add.gif' alt=''/> <a href='reg_user.php?ac=reg'>Sign up</a><br/>";
echo '</div>';
echo "<div class='center'>";
echo "$sn &copy;";

echo '</div>';
echo "</body>";
echo "</html>";

?> pls check d error here: http://fundisc.tk pls help me

(1) (Reply)

Wanted: A Professional Web Designer (& Hosting) / Googe Launches Mail Motion - This Is Great! / What Does Spider/web Crawler Do To A Site

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 17
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.