Page 1 of 1

why database still not appear ??

Posted: Tue Mar 27, 2007 10:00 pm
by faridbaharuddin
Jcart | Please use

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: :arrow: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]

Code: Select all

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

<html>
<? include "mode.php";

$sql2 = mysql_query	("	SELECT * FROM tv 
						WHERE t_id = '$t_id'
					");
$result2 = mysql_fetch_array($sql2);
?><title>Hi! @ ALLASIA .TV // <? echo $result2[1]; ?>!</title>
</script>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
//-->
</script>
<? include "t_header_0.php"; 

                    <table width="530" border="0" cellpadding="0" cellspacing="0" class="fbacktable">
                    <tr>
                      <td valign="top"><img src="<? echo $result2[2] ?>" width="530" height="100"></td>
                    </tr>
                    <tr>
                      <td align="center" valign="top"><table width="510" border="0" cellspacing="0" cellpadding="0">
                           <tr>
                          <td width="510">&nbsp;</td>
                        </tr>    <tr>
                          <td width="510"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
                            <form name="category" method="post" action=""><tr>
                              <td width="310" align="left"> Watch feeds assorted in category. </td>
                                          <td width="200" align="right"> <select name="select" class="sec_b_norm" onChange="MM_jumpMenu('parent',this,0)">
                                              <option selected>Select category</option>
                                              <option>unnamed1</option>
                                              <option value="tv_list_cat.php?t_id=<? echo $t_id; ?>&c_id=<? echo $query_data["0"]; ?>"><? echo $query_data["2"]; ?></option>
                                              <option>unnamed2</option>
                                            </select></td>
                              <td>&nbsp;</td>
                            </tr>    </form> <tr>
                          <td colspan="2">&nbsp;</td>
                        </tr> <form name="tv" method="post" action=""><tr>
                              <td width="310" align="left"> Other realms</td>
                                          <td width="200" align="right"> <select name="select2" class="sec_b_norm" onChange="MM_jumpMenu('parent',this,0)">
                                              <option selected>Select tv</option>
                                              <option>unnamed1</option>
                                              <option value="tv_list.php?t_id=<? echo $query_data2["0"]; ?>"><? echo $query_data2["1"]; ?></option>
                                              <option>unnamed2</option>
                                            </select></td> 
                              <td>&nbsp;</td>
                            </tr></form>
                          </table></td>
                        </tr> <tr>
                          <td width="510">&nbsp;</td>
                        </tr>
                        <tr>
                          <td><table width="510" border="0" cellpadding="0" cellspacing="0" class="r_botb_table">
                            <tr>
                              <td align="center" class="r_botb_header">Best of the Best </td>
                            </tr>
                            <tr>
                              <td align="center" valign="top"><table width="490" border="0" cellspacing="0" cellpadding="0">
                                  <tr>
                                    <td>&nbsp;</td>
                                    <td width="30" align="center">&nbsp;</td>
                                  </tr>
                                  <? 
								$query2 = mysql_query("	SELECT * FROM source 
						WHERE t_id = '$t_id'
						AND s_best ='Yes'
						LIMIT 0,8  
													");

								$no = 1;
								
								while ($row2 = mysql_fetch_row($query2)) {
								$view = $row2[21] + 1;
							?>
                                  <tr>
                                    <td height="22" align="left" ><font class="intlive_title"><? echo "$row2[13]";?></font> <font color="#000000"><!-- (Hits : <--? echo "$row2[21]";?>) --></font></td>
                                    <td width="30" align="center"><?
	if (($row2[8] != "WM Player") & ($row2[8] != "WM") & ($row2[8] != "RM") & ($row2[8] != "QT")){
	echo "	<A href=\"javascript:playme2('play2.php?id=$row2[2]&s_view=$view&url2=$row2[5]')\" >
			<img src=\"subs/images/playvideo.gif\" alt=\"Play\" width=\"20\" height=\"20\" border=\"0\"></a> ";
	} 
	else if (($row2[8] != "RM Player") & ($row2[8] != "QT Player")& ($row2[8] != "URL")){
	echo "<A href=\"javascript:playme('play.php?id=$row2[2]&s_view=$view')\" ><img src=\"subs/images/playvideo.gif\" alt=\"Play\" width=\"20\" height=\"20\" border=\"0\"></a>
";
	} 
	else {
	echo "	<A href=\"javascript:playme2('play2.php?id=$row2[2]&s_view=$view&url2=$row2[5]')\" >
			<img src=\"subs/images/playvideo.gif\" alt=\"Play\" width=\"20\" height=\"20\" border=\"0\"></a>";
	}
	?></td>
                                  </tr>
                                  <?
							}
							?>
                              </table></td>
                            </tr>
                            <tr>
                              <td class="r_botb_footer">&nbsp;</td>
                            </tr>
                          </table>
                          </td>
                        </tr>
                         <tr>
                          <td>&nbsp;</td>
                        </tr> <tr>
                          <td align="left" class="support_medium">
						  <? 
						  	$su1 = mysql_query("SELECT * FROM tv WHERE t_id = '$t_id' ");
							$ro1 = mysql_fetch_array($su1);
														
							echo $ro1["t_name"];
							?>
							</td>
                        </tr>
                        <tr>
                          <td><table width="508" border="0" cellspacing="0" cellpadding="0">
                            <tr align="center">
                              <td width="19" align="center" class="intlive_table_header">#</td>
                              <td width="434" align="left" class="intlive_table_header">Feeds</td>
                              <td width="21" align="center" class="intlive_table_header">C</td>
                              <td width="17" align="center" class="intlive_table_header">F</td>
                              <td width="17" align="center" class="intlive_table_header">P</td>
                            </tr>
                            <? 
								$color1 = "#FFFFFF";
								$color2 = "#D5EAFF";
								$row_count = 0;
								$query = mysql_query("	SELECT * FROM source 
														WHERE t_id = '$t_id'
														ORDER BY s_id DESC 
														LIMIT 0,25 
													");

								$no = 1;
								
								while ($row = mysql_fetch_row($query)) {
								$row_color = ($row_count % 2) ? $color1 : $color2;
								$view = $row[21] + 7;
							?>
                            <tr bgcolor="<? echo $row_color ?>" >
                              <td rowspan="2" align="center" style="padding-bottom:2px; padding-top:2px;"><? echo "$no. ";?></td>
                              <td align="left" class="intlive_title"><? echo "$row[13]";?></td>
                              <td width="21" rowspan="2" align="center"><?

if($row[7]=='Afghanistan')				{ $flag='af'; }
else if($row[7]=='Albania')				{ $flag='al'; }
else if($row[7]=='Algeria')				{ $flag='dz'; }
else if($row[7]=='American Samoa')			{ $flag='as'; }
else if($row[7]=='Andorra')				{ $flag='ad'; }
else if($row[7]=='Angola')				{ $flag='ao'; }
else if($row[7]=='Anguilla')				{ $flag='ai'; }
else if($row[7]=='Antarctica')				{ $flag='aq'; }
else if($row[7]=='Antigua and Barbuda')			{ $flag='ag'; }
else if($row[7]=='Argentina')				{ $flag='ar'; }											
else if($row[7]=='Zambia')				{ $flag='zm'; }
else if($row[7]=='Zimbabwe')				{ $flag='zw'; }
else { $flag='nap'; }
echo "<img src=\"images/flags/$flag.png\"  alt=\"$row[7]\">";

?></td>
                              <td width="17" rowspan="2" align="center"><?
	if ($row[8]== 'RM') 
		{ 
	echo "<img src=\"subs/images/f_rp3.gif\" width=\"16\" height=\"16\" border=\"0\">";
		}		
	else if ($row[8]== 'RM Player') 
		{ 
	echo "<img src=\"subs/images/f_rp3.gif\" width=\"16\" height=\"16\" border=\"0\">";
		}
	else if ($row[8]== 'WM') 
		{ 
	echo "<img src=\"subs/images/f_wm3.gif\" width=\"16\" height=\"16\" border=\"0\">";
		}
	else if ($row[8]== 'WM Player') 
		{ 
	echo "<img src=\"subs/images/f_wm3.gif\" width=\"16\" height=\"16\" border=\"0\">";
		}
	else if ($row[8]== 'QT') 
		{ 
	echo "<img src=\"subs/images/f_qt3.gif\" width=\"16\" height=\"16\" border=\"0\">";
		}
	else if ($row[8]== 'QT Player') 
		{ 
	echo "<img src=\"subs/images/f_qt3.gif\" width=\"16\" height=\"16\" border=\"0\">";
		}	
	else {
	echo "<img src=\"subs/images/f_ie3.gif\" width=\"16\" height=\"16\" border=\"0\">";
		}
		?></td>
                              <td width="17" rowspan="2" align="center"><?
	if (($row[8] != "WM Player") & ($row[8] != "WM") & ($row[8] != "RM") & ($row[8] != "QT")){
	echo "	<A href=\"javascript:playme2('play2.php?id=$row[2]&s_view=$view&url2=$row[5]')\" >
			<img src=\"subs/images/playvideo.gif\" alt=\"Play\" width=\"20\" height=\"20\" border=\"0\"></a> ";
	} 
	else if (($row[8] != "RM Player") & ($row[8] != "QT Player")& ($row[8] != "URL")){
	echo "<A href=\"javascript:playme('play.php?id=$row[2]&s_view=$view')\" ><img src=\"subs/images/playvideo.gif\" alt=\"Play\" width=\"20\" height=\"20\" border=\"0\"></a>
";
	} 
	else {
	echo "	<A href=\"javascript:playme2('play2.php?id=$row[2]&s_view=$view&url2=$row[5]')\" >
			<img src=\"subs/images/playvideo.gif\" alt=\"Play\" width=\"20\" height=\"20\" border=\"0\"></a>";
	}
	?></td>
                            </tr>
                            <tr bgcolor="<? echo $row_color ?>">
                              <td align="left"><? echo "$row[14]";?>...</td>
                            </tr>
                            <?
							$row_count++;
							$no ++;
							} ?>
                          </table></td>
                        </tr>
                        <tr>
                          <td>&nbsp;</td>
                        </tr>
                        <tr>
                          <td align="right">Subscribe to this <? include "functions/gen_rssbutt.php";?> <a href="http://localhost/v2/hi/rss_doc/index.php"><img src="images/help.gif" alt="What's this?" title="What's this?" width="20" height="20" border="0" align="absmiddle"></a></td>
                        </tr>
                        <tr>
                          <td>&nbsp;</td>
                        </tr>
                        <tr>
                          <td><table width="486" height="60" border="0" align="center" cellpadding="0" cellspacing="0">
                            <tr>
                              <td>		<div align="center">
<IMG
SRC="http://service.bfast.com/bfast/serve?bfmid=37923410&siteid=41537810&bfp
age=homepage_468" BORDER="0" WIDTH="1" HEIGHT="1" NOSAVE >
<A
HREF="http://service.bfast.com/bfast/click?bfmid=37923410&siteid=41537810&bf
page=homepage_468" TARGET="_blank"><IMG
SRC="http://www.photoalley.com/affiliates/468x60_pa_brands.gif" BORDER="0"
WIDTH="468" HEIGHT="60" ALT=""></A>
  

                              </div></td>
                            </tr>
                          </table></td>
                        </tr>
                        <tr>
                          <td>&nbsp;</td>
                        </tr>
                        <br>
                        <br>
                      </table>
                       
                        </td>
                    </tr>
                    <tr>
                      <td valign="bottom"><img src="images/images/c_footer.jpg" width="530" height="20"></td>
                    </tr>
                  <? include "t_footer_0.php"; ?>
<html>[syntax="php"]


...........................................................

tv_list_cat.php




<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<? include "mode.php";

$sql2 = mysql_query (" SELECT * FROM tv
WHERE t_id = '$t_id' ");

$result2 = mysql_fetch_array($sql2);
?><html><!-- InstanceBegin template="/Templates/t_content1.dwt" codeOutsideHTMLIsLocked="false" -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<!-- InstanceBeginEditable name="doctitle" -->
<title>Hi! @ ALLASIA.TV // <? echo $result2[1]; ?>!</title>


<script language="JavaScript" type="text/JavaScript">
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}
//-->
</script>

<? include "t_header_0.php"; ?>


<table width="530" border="0" cellpadding="0" cellspacing="0" class="fbacktable">
<tr>
<td valign="top"><img src="<? echo $result2[2] ?>" width="530" height="100"></td>
</tr>
<tr>
<td align="center" valign="top"><table width="510" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="510">&nbsp;</td>
</tr> <tr>
<td width="510"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<form name="category" method="post" action=""> <tr>
<td width="310" align="left"> Watch feeds assorted in category. </td>
<td width="200" align="right">
<select name="select" class="sec_b_norm" onChange="MM_jumpMenu('parent',this,0)">
<option selected>Select category</option> <?
//$query_sesi = "SELECT * FROM class_session ";
$sql = " SELECT * FROM category WHERE t_id = '$t_id'";
$result = mysql_query($sql);
while ($query_data = mysql_fetch_array($result)) {

?>

<option value="tv_list_cat.php?t_id=<? echo $t_id; ?>&c_id=<? echo $query_data["0"]; ?>"><? echo $query_data["2"]; ?></option>
<? } ?>
</select>
</td>
<td>&nbsp;</td>
</tr></form> <tr>
<td colspan="2">&nbsp;</td>
</tr><form name="tv" method="post" action=""><tr>
<td width="310" align="left"> Other realms</td>
<td width="200" align="right">
<select name="select" class="sec_b_norm" onChange="MM_jumpMenu('parent',this,0)">
<option selected>Select tv</option> <?
//$query_sesi = "SELECT * FROM class_session ";
$sql2 = " SELECT * FROM tv
WHERE t_id != '5'
AND t_id != '30'";
$result2 = mysql_query($sql2);
while ($query_data2 = mysql_fetch_array($result2)) {

?>

<option value="tv_list.php?t_id=<? echo $query_data2["0"]; ?>"><? echo $query_data2["1"]; ?></option>
<? } ?>
</select>
</td>
<td>&nbsp;</td>
</tr></form>
</table></td>
</tr> <tr>
<td width="510">&nbsp;</td>
</tr>
<tr>
<td><table width="510" border="0" cellpadding="0" cellspacing="0" class="r_botb_table">
<tr>
<td align="center" class="r_botb_header">Best of the Best </td>
</tr>
<tr>
<td align="center" valign="top"><table width="490" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>&nbsp;</td>
<td width="30" align="center">&nbsp;</td>
</tr>
<?
$query2 = mysql_query(" SELECT * FROM source
WHERE t_id = '$t_id'
AND s_best ='Yes'
LIMIT 0,8
");

$no = 1;

while ($row2 = mysql_fetch_row($query2)) {
$view = $row2[21] + 1;
?>
<tr>
<td height="22" align="left" ><font class="intlive_title"><? echo "$row2[13]";?></font> <font color="#000000">(Hits : <? echo "$row2[21]";?>)</font></td>
<td width="30" align="center"><?
if (($row2[8] != "WM Player") & ($row2[8] != "WM") & ($row2[8] != "RM") & ($row2[8] != "QT")){
echo " <A href=\"javascript:playme2('play2.php?id=$row2[2]&s_view=$view&url2=$row2[5]')\" >
<img src=\"subs/images/playvideo.gif\" alt=\"Play\" width=\"20\" height=\"20\" border=\"0\"></a> ";
}
else if (($row2[8] != "RM Player") & ($row2[8] != "QT Player")& ($row2[8] != "URL")){
echo "<A href=\"javascript:playme('play.php?id=$row2[2]&s_view=$view')\" ><img src=\"subs/images/playvideo.gif\" alt=\"Play\" width=\"20\" height=\"20\" border=\"0\"></a>
";
}
else {
echo " <A href=\"javascript:playme2('play2.php?id=$row2[2]&s_view=$view&url2=$row2[5]')\" >
<img src=\"subs/images/playvideo.gif\" alt=\"Play\" width=\"20\" height=\"20\" border=\"0\"></a>";
}
?></td>
</tr>
<?
}
?>
</table></td>
</tr>
<tr>
<td class="r_botb_footer">&nbsp;</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr> <tr>
<td align="left" class="support_medium">
<?
$su1 = mysql_query("SELECT * FROM tv WHERE t_id =$t_id");
$ro1 = mysql_fetch_array($su1);

$su2 = mysql_query("SELECT * FROM category WHERE c_id =$c_id");
$ro2 = mysql_fetch_array($su2);

echo $ro1["t_name"];
?> -
<? echo $ro2["c_name"]; ?>
</td>
</tr>
<tr>
<td><table width="510" border="0" cellspacing="0" cellpadding="0">
<tr align="center">
<td width="19" align="center" class="intlive_table_header">#</td>
<td width="433" align="left" class="intlive_table_header">Feeds</td>
<td width="18" align="center" class="intlive_table_header">C</td>
<td width="21" align="center" class="intlive_table_header">F</td>
<td width="19" align="center" class="intlive_table_header">P</td>
</tr><? if(!isset($_GET['page'])){
$page = 1;
} else {
$page = $_GET['page'];
}

// Define the number of results per page
$max_results = 20;

// Figure out the limit for the query based
// on the current page number.
$from = (($page * $max_results) - $max_results);



$color1 = "#FFFFFF";
$color2 = "#D5EAFF";
$row_count = 0;
$query = mysql_query(" SELECT * FROM source
WHERE t_id = '$t_id'
AND c_id = '$c_id'
ORDER BY s_remark ASC
LIMIT $from, $max_results
");

$no = 1;

while ($row = mysql_fetch_row($query)) {
$row_color = ($row_count % 2) ? $color1 : $color2;
$view = $row[21] + 1;

?>
<tr bgcolor="<? echo $row_color ?>">
<td rowspan="2" align="center" style="padding-bottom:2px; padding-top:2px;">
<? echo "$no. ";?></td>
<td align="left" class="intlive_title"><? echo "$row[13]";?></td>
<td width="18" rowspan="2" align="center"><?

if($row[7]=='Afghanistan') { $flag='af'; }
else if($row[7]=='Albania') { $flag='al'; }
else if($row[7]=='Algeria') { $flag='dz'; }
else if($row[7]=='American Samoa') { $flag='as'; }
else if($row[7]=='Andorra') { $flag='ad'; }
else if($row[7]=='Angola') { $flag='ao'; }
else if($row[7]=='Anguilla') { $flag='ai'; }
else if($row[7]=='Antarctica') { $flag='aq'; }
else if($row[7]=='Antigua and Barbuda') { $flag='ag'; }
else if($row[7]=='Argentina') { $flag='ar'; }
else if($row[7]=='Zambia') { $flag='zm'; }
else if($row[7]=='Zimbabwe') { $flag='zw'; }
else { $flag='nap'; } { $flag='zw'; }
else { $flag='nap'; }
echo "<img src=\"images/flags/$flag.png\" alt=\"$row[7]\">";

?></td>
<td width="21" rowspan="2" align="center"><?
if ($row[8]== 'RM')
{
echo "<img src=\"subs/images/f_rp3.gif\" width=\"16\" height=\"16\" border=\"0\">";
}
else if ($row[8]== 'RM Player')
{
echo "<img src=\"subs/images/f_rp3.gif\" width=\"16\" height=\"16\" border=\"0\">";
}
else if ($row[8]== 'WM')
{
echo "<img src=\"subs/images/f_wm3.gif\" width=\"16\" height=\"16\" border=\"0\">";
}
else if ($row[8]== 'WM Player')
{
echo "<img src=\"subs/images/f_wm3.gif\" width=\"16\" height=\"16\" border=\"0\">";
}
else if ($row[8]== 'QT')
{
echo "<img src=\"subs/images/f_qt3.gif\" width=\"16\" height=\"16\" border=\"0\">";
}
else if ($row[8]== 'QT Player')
{
echo "<img src=\"subs/images/f_qt3.gif\" width=\"16\" height=\"16\" border=\"0\">";
}
else {
echo "<img src=\"subs/images/f_ie3.gif\" width=\"16\" height=\"16\" border=\"0\">";
}
?></td>
<td width="19" rowspan="2" align="center"><?
if (($row[8] != "WM Player") & ($row[8] != "WM") & ($row[8] != "RM") & ($row[8] != "QT")){
echo " <A href=\"javascript:playme2('play2.php?id=$row[2]&s_view=$view&url2=$row[5]')\" >
<img src=\"subs/images/playvideo.gif\" alt=\"Play\" width=\"20\" height=\"20\" border=\"0\"></a> ";
}
else if (($row[8] != "RM Player") & ($row[8] != "QT Player")& ($row[8] != "URL")){
echo "<A href=\"javascript:playme('play.php?id=$row[2]&s_view=$view')\" ><img src=\"subs/images/playvideo.gif\" alt=\"Play\" width=\"20\" height=\"20\" border=\"0\"></a>
";
}
else {
echo " <A href=\"javascript:playme2('play2.php?id=$row[2]&s_view=$view&url2=$row[5]')\" >
<img src=\"subs/images/playvideo.gif\" alt=\"Play\" width=\"20\" height=\"20\" border=\"0\"></a>";
}
?></td>
</tr>
<tr bgcolor="<? echo $row_color ?>">
<td align="left"><? echo "$row[14]";?>...<span class="sec_a_norm"><span class="sec_b_norm"><strong class="smallmenu">
<input type="hidden" value="<? echo "$view"; ?>" name="s_view">
</strong></span></span></td>
</tr>
<?
$row_count++;
$no ++;
} ?>
</table></td>
</tr>
<tr>
<td align="right"><? // Figure out the total number of results in DB:
$total_results = mysql_result(mysql_query(" SELECT COUNT(*) as Num
FROM source
WHERE t_id = '$t_id'
AND c_id = '$c_id'
ORDER BY s_remark ASC "),0);

// Figure out the total number of pages. Always round up using ceil()
$total_pages = ceil($total_results / $max_results);

// Build Page Number Hyperlinks
echo "<b>Page </b>";

// Build Previous Link
if($page > 1){
$prev = ($page - 1);
echo "<a href=\"".$_SERVER['PHP_SELF']."?page=$prev&c_id=$c_id&t_id=$t_id\">Prev</a> ";
}



for($i = 1; $i <= $total_pages; $i++){

//echo "<select name=\"mList\" onChange=\"navM()\">";
if(($page) == $i){
//echo "<option value=\"".$_SERVER['PHP_SELF']."?page=$i\">$i</option>";
echo "$i ";
} else {
echo "<a href=\"".$_SERVER['PHP_SELF']."?page=$i&c_id=$c_id&t_id=$t_id\">$i</a> ";
//echo "<option value=\"".$_SERVER['PHP_SELF']."?page=$x\">$x</option>";
}
}


// Build Next Link
if($page < $total_pages){
$next = ($page + 1);
echo "<a href=\"".$_SERVER['PHP_SELF']."?page=$next&c_id=$c_id&t_id=$t_id\">Next</a>";
}
?></td>
</tr> <tr>
<td>&nbsp;</td>
</tr>
<tr>
<td><table width="486" height="60" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td> <div align="center"><IMG SRC="http://service.bfast.com/bfast/serve?bf ... ge=1747911" BORDER="0" WIDTH="1" HEIGHT="1" NOSAVE >
<A HREF="http://service.bfast.com/bfast/click?bf ... ge=1747911" TARGET="_top"><IMG SRC="http://img3.musiciansfriend.com/dbase/g ... 468x60.gif" BORDER="0" WIDTH="468" HEIGHT="60" ALT=""></A>

</div></td>
</tr>
</table></td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<br>
<br>
</table>

</td>
</tr>
<tr>
<td valign="bottom"><img src="images/images/c_footer.jpg" width="530" height="20"></td>
</tr>
</table>
<!-- InstanceEndEditable --></td>
<td width="200" align="right"><form name="form1" action="results.php" method="post" >
<table width="200" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="right"><input name="word5" type="text" class="searchinput" onFocus="if(this.value=='Search...')this.value='';" VALUE="Search..." size="32" maxlength="100"></td>
<td width="20" align="right"><INPUT name="search" type=image src="images/b_search.gif" width="16" height="16" border="0"></td>
</tr>
</table>
</form>
<table width="200" border="0" cellpadding="0" cellspacing="0" class="sec_c">
<tr>
<td valign="top"><img src="images/images/sec_c_header.jpg" width="200" height="20"></td>
</tr>
<tr>
<td align="center" valign="top"><table width="190" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td align="center" valign="top"><script type="text/javascript" language="javascript" src="feat.js"></script></td>
</tr>

</table></td>
</tr>
<tr>
<td valign="bottom"><img src="images/images/sec_c_footer.jpg" width="200" height="10">
<? include "t_footer_0.php"; ?>

</html>[/syntax]


dia_tidur@yahoo.com


Jcart | Please use

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: :arrow: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]

Posted: Wed Mar 28, 2007 1:39 am
by Christopher
Your script does not appear to connect to the database. Check the manual for mysql_connect() and mysql_select_db().