Jump to content

Index.php File Loads Up To <Head> Only Made Changes To Dwt.php Template.


Raptor829

Recommended Posts

I really want to focus on this area. Does the highlighted need the ()

I was thinking it should be.

 

<?php require'..Connections/qmbl.php'

 

[color=#ff0000]<?php require('..Connections/qmbl.php'[/color][color=#ff0000])[/color];
$sqlstr = "select i_html from SiteInfo where i_type = 'NEWS_SCROLL'";
$rs_scroll = mysql_query($sqlstr, $cid);
$scroll = mysql_result($rs_scroll,0,0);

$sqlstr = "select team_id, t_name from Team t, Settings s where t.t_season = s.cur_season order by t_name";

$rs_teams = mysql_query($sqlstr, $cid);

$count=0;

$templateTeams="";

while($row = mysql_fetch_assoc($rs_teams)){$templateTeams .= '<a href="team.php?t='.$row['team_id'].'">'.$row['t_name'].'</a><br />';

} //end while ?>

Link to comment
Share on other sites

What I said:

 

 

Your include statement is missing a slash. ../Connections/qmbl.php

 

 

What you said:

 

I really want to focus on this area. Does the highlighted need the ()

 

 

 

I mean...REALLY? I said slash, you somehow got parentheses.

 

Zend Studio is $300.

Link to comment
Share on other sites

  • 2 weeks later...

I m still having a problem with this code no page loads and the error is on Line 6.

Error says:

Fatal error line 6 Fatal error:require(): Failed opening required'../Connections/qmbl.php'(include_path='.;C:\php\php5\pear in C:\.......

The file is there and in the root.

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>

<?php require '../Connections/qmbl.php';
$sqlstr = "select i_html from SiteInfo where i_type = 'NEWS_SCROLL'";
$rs_scroll = mysql_query($sqlstr, $cid);
$scroll = mysql_result($rs_scroll,0,0);

$sqlstr = "select team_id, t_name from Team t, Settings s where t.t_season = s.cur_season order by t_name";

$rs_teams = mysql_query($sqlstr, $cid);

$count=0;

$templateTeams="";

while($row = mysql_fetch_assoc($rs_teams)){$templateTeams .= '<a href="team.php?t='.$row['team_id'].'">'.$row['t_name'].'</a><br />';

} //end while ?>

<!-- TemplateBeginEditable name="head" -->

<!-- TemplateEndEditable --><meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<!-- TemplateBeginEditable name="doctitle" -->

<title>Untitled Document</title>

<!-- TemplateEndEditable -->

<link href="../html/qmbl2010.css" rel="stylesheet" type="text/css" />

</head>

<body>
<div id="fb-root"></div>
<script>(function(d, s, id) {
 var js, fjs = d.getElementsByTagName(s)[0];
 if (d.getElementById(id)) return;
 js = d.createElement(s); js.id = id;
 js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
 fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>


<table id="page" width="960" border="0" align="center" >

 <tr>

   <td><img src="../html/images/1ptTrans.gif" width="1" height="200" alt="image"/></td>

   <td>

  <div id="header">

 <div id="topMenu">

   <table width="100%" border="0">

  <tr>

    <td align="center" valign="middle"><img src="../html/images/1ptTrans.gif" width="1" height="24" alt="image"/></td>

    <td align="center" valign="middle"><a href="field.php">Fields</a></td>

    <td align="center" valign="middle"><a href="../html/sponsors.php">Sponsors</a></td>

    <td align="center" valign="middle"><a href="../html/advertising.php">Advertising</a></td>

    <td align="center" valign="middle"><a href="../html/contact.php">Contact</a></td>

    <td width="25" align="center" valign="middle">  </td>

    <td width="65" align="right" valign="middle"><a href="../html/register.php">Register</a> </td>

    <td align="center" valign="middle">|</td>

    <td width="45" align="left" valign="middle"><a href="../html/login.php"> Login</a> </td>

  </tr>

   </table>

 </div>

 <div id="mainMenu">

   <table width="100%" border="0">

  <tr>

    <td height="100%" align="center" valign="middle"><img src="../html/images/1ptTrans.gif" width="1" height="30" alt="image"/></td>

    <td height="100%" align="center" valign="middle"><a href="../html/about.php">league</a></td>

    <td height="100%" align="center" valign="middle"><a href="../html/standings.php">standings</a></td>

    <td height="100%" align="center" valign="middle"><a href="../html/schedule.php">schedules</a></td>

    <td height="100%" align="center" valign="middle"><a href="../html/scorecard.php">scorecard</a></td>

    <td height="100%" align="center" valign="middle"><a href="../html/thedugout.php">the dugout</a></td>

    <td height="100%" align="center" valign="middle"><a href="../html/news.php">news</a></td>

    <td height="100%" align="center" valign="middle"><a href="../html/products.php">products</a></td>
    <td height="100%" align="center" valign="middle"><a href="../html/rules.php">rules</a></td>
 <td height="100%" align="center" valign="middle"><a href="../html/wavier.php" class="boldtext bigboldtext">wavier</a></td>	  
    <td height="100%" align="center" valign="middle"><a href="../html/events.php">events</a></td>

  </tr>
  <tr>
    <td height="100%" align="center" valign="middle"> </td>
    <td height="100%" align="center" valign="middle"> </td>
    <td height="100%" align="center" valign="middle"> </td>
    <td height="100%" align="center" valign="middle"> </td>
    <td height="100%" align="center" valign="middle"> </td>
    <td height="100%" align="center" valign="middle"> </td>
    <td height="100%" align="center" valign="middle"> </td>
    <td height="100%" align="center" valign="middle"> </td>
    <td height="100%" colspan="3" align="center" valign="middle"><div class="fb-like" data-href="http://www.qmbl.com" data-send="false" data-layout="button_count" data-width="450" data-show-faces="true" data-colorscheme="dark"></div></td>
    </tr>

   </table>

 </div>

 <div id="homelink"><a href="../html/index.php"><img src="../html/images/1ptTrans.gif" width="184" height="177" border="0" alt="image" /></a></div>
  </div></td>

 </tr>
 <tr>
  <td colspan="2"><div id="scroll"><p><marquee style="background-color: #000;">
<p>*** angel vs whitesox time change 12 noon sunday @ basiley***red devil need to report stats** playoff one game elimiation,teams must play as schedule*** **Congrats to forest hill marlins winning s/s 2012 championship,mvp geovanny familia # 10 ****</p>
</marquee>

</p></div>
   </td>
 </tr>
 <tr>

   <td><img src="../html/images/1ptTrans.gif" width="1" height="250" alt="image"/></td>

   <td class="body"><!-- TemplateBeginEditable name="body" --><!-- TemplateEndEditable --></td>

 </tr>

 <tr>

   <td><img src="../html/images/1ptTrans.gif" width="1" height="150" alt="image"/></td>

   <td valign="top" class="bottomMenu"><table width="100%" border="0">

  <tr>

    <th scope="col"><a href="../html/index.php.2">QMBL</a></th>

    <th scope="col"><a href="../html/thedugout.php">The Dugout</a></th>

    <th scope="col">QMBL League</th>

    <th scope="col">QMBL Links</th>

    <th scope="col">QMBL Office</th>

  </tr>

  <tr>

    <td> </td>

    <td> </td>

    <td> </td>

    <td> </td>

    <td> </td>

  </tr>

  <tr>

    <td><a href="../html/about.php">About</a><br />

	  <a href="../html/awards.php">Awareds</a><br />

	  <a href="../html/news.php">News</a><br />

	  <a href="../html/events.php">Special Events</a><br />

	  <a href="../html/products.php">Products</a><br />

	  <a href="field.php">Fields</a></td>

    <td><?php echo $templateTeams; ?></td>

    <td><a href="../html/scorecard.php">Scorecard</a><br />

	  <a href="../html/standings.php">Standings</a><br />

	  <a href="../html/schedule.php">Schedules</a></td>

    <td><a href="http://www.mlb.com">MLB</a><br />

	  <a href="http://www.nfl.com">NFL</a><br />

	  <a href="http://www.nba.com">NBA</a><br />

	  <a href="http://www.nhl.com">NHL</a><br />

	  <a href="http://www.espn.com">ESPN</a><br />

	  <a href="../html/games.php">Fun</a></td>

    <td><a href="../html/contact.php">Contact</a><br />

	  <a href="../html/advertising.php">Advertise with us</a><br />

	  <a href="../html/sponsors.php">Sponsors</a><br />

	  <a href="../html/poll.php">Poll</a></td>

  </tr>

   </table></td>

 </tr>

</table>

</body>

</html>

Link to comment
Share on other sites

You already agreed you were starting from the root.  Why did you say that if you aren't sure what it means?  

 

The "root" of something is the base of it.  C:\ is the root of a windows file system.  / is the root of a *nix file system.  phpfreaks.com/ is the root of phpfreaks.  You should start from your "web root" for file includes so you always know you're getting the right file regardless of where you are in the filesystem. 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.