By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,627 Members | 2,339 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,627 IT Pros & Developers. It's quick & easy.

Output stops after while loop

P: n/a
Hi, I am developing a CMS and came across something which has never
happened to me before, and I re-wrote the specific script twice, both
differently, and still had the same error.

I'm not sure if it is apache, or php, or just an error I am not seeing.

here is the code:
<?php
/**
* Loop through the resultset
*/
$int = 0;
while( $row = $db->fetcharray( $query ) )
{
if( $int == 0 )
{
$class = "page_table1";
$int++;
}
else
{
$class = "page_table2";
$int = 0;
}

if( $row["type"] == "error" )
{
$img = "emblem-important-small.png";
}
else
{
$img = "text-x-generic.png";
}
?>
<tr class="<?php echo $class; ?>">
<td><a
href="index3.php?page=pagemanager&amp;do=edit&amp; id=<?php echo
$row["id"]; ?>">
<img src="images/emblem-unreadable.png" width="16" height="16"
border="0" /></a></td>
<td><a
href="index3.php?page=pagemanager&amp;do=edit&amp; id=<?php echo
$row["id"]; ?>">
<img src="images/accessories-text-editor.png" alt="Edit" width="16"
height="16" /></a></td>
<td><?php echo $row["id"]; ?></td>
<td><?php echo $row["title"]; ?></td>
<td><?php echo $row["slug"]; ?></td>
<td><img src="images/<?php echo $img; ?>" title="<?php echo
$row["type"]; ?>" style="float:left;" />&nbsp;
<?php echo $row["type"]; ?></td>
</tr>

<?php
}
?>

The output just stops when the while loop is done executing. Any help
would be greatly appreciated.

Jul 29 '06 #1
Share this Question
Share on Google+
14 Replies


P: n/a
da*****@gmail.com wrote:
Hi, I am developing a CMS and came across something which has never
happened to me before, and I re-wrote the specific script twice, both
differently, and still had the same error.

I'm not sure if it is apache, or php, or just an error I am not seeing.

here is the code:
<?php
/**
* Loop through the resultset
*/
$int = 0;
while( $row = $db->fetcharray( $query ) )
{
if( $int == 0 )
{
$class = "page_table1";
$int++;
}
else
{
$class = "page_table2";
$int = 0;
}

if( $row["type"] == "error" )
{
$img = "emblem-important-small.png";
}
else
{
$img = "text-x-generic.png";
}
?>
<tr class="<?php echo $class; ?>">
<td><a
href="index3.php?page=pagemanager&amp;do=edit&amp; id=<?php echo
$row["id"]; ?>">
<img src="images/emblem-unreadable.png" width="16" height="16"
border="0" /></a></td>
<td><a
href="index3.php?page=pagemanager&amp;do=edit&amp; id=<?php echo
$row["id"]; ?>">
<img src="images/accessories-text-editor.png" alt="Edit" width="16"
height="16" /></a></td>
<td><?php echo $row["id"]; ?></td>
<td><?php echo $row["title"]; ?></td>
<td><?php echo $row["slug"]; ?></td>
<td><img src="images/<?php echo $img; ?>" title="<?php echo
$row["type"]; ?>" style="float:left;" />&nbsp;
<?php echo $row["type"]; ?></td>
</tr>

<?php
}
?>

The output just stops when the while loop is done executing. Any help
would be greatly appreciated.

I guess I'm not sure what you expect to happen. It looks to me like
when the loop is done executing your go to the end of the page, do not
pass go and do not collect 200 cpu cycles.

IOW - unless I'm missing something, there isn't anything after your
loop. What do you expect to happen?

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Jul 29 '06 #2

P: n/a

Jerry Stuckle wrote:
da*****@gmail.com wrote:
Hi, I am developing a CMS and came across something which has never
happened to me before, and I re-wrote the specific script twice, both
differently, and still had the same error.

I'm not sure if it is apache, or php, or just an error I am not seeing.

here is the code:
<?php
/**
* Loop through the resultset
*/
$int = 0;
while( $row = $db->fetcharray( $query ) )
{
if( $int == 0 )
{
$class = "page_table1";
$int++;
}
else
{
$class = "page_table2";
$int = 0;
}

if( $row["type"] == "error" )
{
$img = "emblem-important-small.png";
}
else
{
$img = "text-x-generic.png";
}
?>
<tr class="<?php echo $class; ?>">
<td><a
href="index3.php?page=pagemanager&amp;do=edit&amp; id=<?php echo
$row["id"]; ?>">
<img src="images/emblem-unreadable.png" width="16" height="16"
border="0" /></a></td>
<td><a
href="index3.php?page=pagemanager&amp;do=edit&amp; id=<?php echo
$row["id"]; ?>">
<img src="images/accessories-text-editor.png" alt="Edit" width="16"
height="16" /></a></td>
<td><?php echo $row["id"]; ?></td>
<td><?php echo $row["title"]; ?></td>
<td><?php echo $row["slug"]; ?></td>
<td><img src="images/<?php echo $img; ?>" title="<?php echo
$row["type"]; ?>" style="float:left;" />&nbsp;
<?php echo $row["type"]; ?></td>
</tr>

<?php
}
?>

The output just stops when the while loop is done executing. Any help
would be greatly appreciated.


I guess I'm not sure what you expect to happen. It looks to me like
when the loop is done executing your go to the end of the page, do not
pass go and do not collect 200 cpu cycles.

IOW - unless I'm missing something, there isn't anything after your
loop. What do you expect to happen?

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
It is supposed to show the rest of the html on the page, and a few
other lines of php used for logging and such, but it works on other
pages, so I know that they are not the problem.

Jul 30 '06 #3

P: n/a
dawnerd wrote:
Jerry Stuckle wrote:
>>da*****@gmail.com wrote:
>>>Hi, I am developing a CMS and came across something which has never
happened to me before, and I re-wrote the specific script twice, both
differently, and still had the same error.

I'm not sure if it is apache, or php, or just an error I am not seeing.

here is the code:
<?php
/**
* Loop through the resultset
*/
$int = 0;
while( $row = $db->fetcharray( $query ) )
{
if( $int == 0 )
{
$class = "page_table1";
$int++;
}
else
{
$class = "page_table2";
$int = 0;
}

if( $row["type"] == "error" )
{
$img = "emblem-important-small.png";
}
else
{
$img = "text-x-generic.png";
}
?>
<tr class="<?php echo $class; ?>">
<td><a
href="index3.php?page=pagemanager&amp;do=edit&a mp;id=<?php echo
$row["id"]; ?>">
<img src="images/emblem-unreadable.png" width="16" height="16"
border="0" /></a></td>
<td><a
href="index3.php?page=pagemanager&amp;do=edit&a mp;id=<?php echo
$row["id"]; ?>">
<img src="images/accessories-text-editor.png" alt="Edit" width="16"
height="16" /></a></td>
<td><?php echo $row["id"]; ?></td>
<td><?php echo $row["title"]; ?></td>
<td><?php echo $row["slug"]; ?></td>
<td><img src="images/<?php echo $img; ?>" title="<?php echo
$row["type"]; ?>" style="float:left;" />&nbsp;
<?php echo $row["type"]; ?></td>
</tr>

<?php
}
?>

The output just stops when the while loop is done executing. Any help
would be greatly appreciated.


I guess I'm not sure what you expect to happen. It looks to me like
when the loop is done executing your go to the end of the page, do not
pass go and do not collect 200 cpu cycles.

IOW - unless I'm missing something, there isn't anything after your
loop. What do you expect to happen?

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================

It is supposed to show the rest of the html on the page, and a few
other lines of php used for logging and such, but it works on other
pages, so I know that they are not the problem.
But you haven't shown anything else, so how are we supposed to help with
your problem?
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Jul 30 '06 #4

P: n/a
Here is the page in it's completeness. I removed the logging and other
stuff to see if it was the cause, and it wasn't. Also, the logging
script is not open source, well, yet.

<?php
if( !OJAICMS )
{
die("No");
}

require_once( "functions/newpage.function.php" );

/**
* update the page?
*/
if( $_GET["action"] == "update" )
{
///
/// Planned
///
}

/**
* Delete the page?
*/
if( $_GET["action"] == "delete" )
{
///
/// Planned
///
}
/**
* Show the correct breadcrumb and perform some other hacking checks
*/
if( $_GET["do"] == "edit" )
{
$bc = "&raquo; Editing Page";
$do = "edit";

/**
* Check if the id was passed
*/
if( $_GET["id"] == "" )
{
$error .= "<li>What post do you expect to edit?</li>";
$do = "list";
}
else
{
$id = mysql_real_escape_string( htmlspecialchars( trim( $_GET["id"] )
) );
$sql = "SELECT * FROM `pages` WHERE `id` = '$id'";
$query = $db->query( $sql );
$num = $db->numrows( $query );

/**
* Check if the page exists
*/
if( $num != 1 )
{
$error .= "<li>Page does not exist witht that identification
number</li>";
$do = "list";
}
else
{
$row = $db->fetcharray( $query );
}
}
}
else if( $_GET["do"] == "delete" )
{
$bc = "&raquo; Deleting Page";
$do = "delete";

/**
* Check if the id was passed
*/
if( $_GET["id"] == "" )
{
$error .= "<li>What post do you expect to edit?</li>";
$do = "list";
}
else
{
$id = mysql_real_escape_string( htmlspecialchars( trim( $_GET["id"] )
) );
$sql = "SELECT * FROM `pages` WHERE `id` = '$id'";
$query = $db->query( $sql );
$num = $db->numrows( $query );

/**
* Check if the page exists
*/
if( $num != 1 )
{
$error .= "<li>Page does not exist witht that identification
number</li>";
$do = "list";
}
else
{
$row = $db->fetcharray( $query );
}
}
}
else
{
$do = "list";

/**
* Go ahead and do some sql to grab all pages
*/
$sql = "SELECT * FROM `pages`";
$query = $db->query( $sql );
$num = $db->numrows( $query );
}
?>
<p><a href="index3.php?page=main">Home</a&raquo; <a
href="index3.php?page=pagemanager">Page Manager</a<?php echo $bc;
?></p>
<div id="newpage">
<h2>Page Manager</h2>
<?php
if( $error != "" )
{
/**
* Show the errors if there are any
*/
?>
<div id="error">
<img src="images/emblem-important.png" alt=" " width="32" height="32"
/>
<h2>There were errors: </h2>
<ul><?php echo $error;?></ul>
</div>
<?php
}
if( $perfect != "" )
{
/**
* Show the success mesasages if any
*/
?>
<div id="perfect">
<img src="images/emblem-notice.png" alt=" " width="32" height="32" />
<ul><?php echo $perfect;?></ul>
</div>
<?php
}

/**
* Show the editing page
*/
if( $do == "edit" )
{

}

/**
* Show the delete confirmation
*/
else if( $do == "delete" )
{

}

/**
* Else, show the list of pages
*/
else
{
/**
* Check if the page exists
*/
if( $num <= 0 )
{
?>
<p>There are no pages to display here.<br />
To add pages, go to back and click on "Create Page".</p>
<?php
}
else
{
?>
<table id="page_table" border="0" cellspacing="0" cellpadding="5">
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
<th>Id</th>
<th>Title</th>
<th>Slug</th>
<th>Type</th>
</tr>
<?php
/**
* Loop through the resultset
*/
$int = 0;
while( $row = $db->fetcharray( $query ) )
{
if( $int == 0 )
{
$class = "page_table1";
$int++;
}
else
{
$class = "page_table2";
$int = 0;
}

if( $row["type"] == "error" )
{
$img = "emblem-important-small.png";
}
else
{
$img = "text-x-generic.png";
}
?>
<tr class="<?php echo $class; ?>">
<td><a
href="index3.php?page=pagemanager&amp;do=edit&amp; id=<?php echo
$row["id"]; ?>">
<img src="images/emblem-unreadable.png" width="16" height="16"
border="0" /></a></td>
<td><a
href="index3.php?page=pagemanager&amp;do=edit&amp; id=<?php echo
$row["id"]; ?>">
<img src="images/accessories-text-editor.png" alt="Edit" width="16"
height="16" /></a></td>
<td><?php echo $row["id"]; ?></td>
<td><?php echo $row["title"]; ?></td>
<td><?php echo $row["slug"]; ?></td>
<td><img src="images/<?php echo $img; ?>" title="<?php echo
$row["type"]; ?>" style="float:left;" />&nbsp;
<?php echo $row["type"]; ?></td>
</tr>

<?php
}
?>
</table>
<?php
}
}

/**
* Do some logging.
* Note: This was removed as for testing
*/
?>
</div>

Jul 30 '06 #5

P: n/a

"dawnerd" <da*****@gmail.comwrote in message
news:11**********************@m79g2000cwm.googlegr oups.com...
Here is the page in it's completeness. I removed the logging and other
stuff to see if it was the cause, and it wasn't. Also, the logging
script is not open source, well, yet.

<?php
if( !OJAICMS )
{
die("No");
}

require_once( "functions/newpage.function.php" );

/**
* update the page?
*/
if( $_GET["action"] == "update" )
{
///
/// Planned
///
}

/**
* Delete the page?
*/
if( $_GET["action"] == "delete" )
{
///
/// Planned
///
}
/**
* Show the correct breadcrumb and perform some other hacking checks
*/
if( $_GET["do"] == "edit" )
{
$bc = "&raquo; Editing Page";
$do = "edit";

/**
* Check if the id was passed
*/
if( $_GET["id"] == "" )
{
$error .= "<li>What post do you expect to edit?</li>";
$do = "list";
}
else
{
$id = mysql_real_escape_string( htmlspecialchars( trim( $_GET["id"] )
) );
$sql = "SELECT * FROM `pages` WHERE `id` = '$id'";
$query = $db->query( $sql );
$num = $db->numrows( $query );

/**
* Check if the page exists
*/
if( $num != 1 )
{
$error .= "<li>Page does not exist witht that identification
number</li>";
$do = "list";
}
else
{
$row = $db->fetcharray( $query );
}
}
}
else if( $_GET["do"] == "delete" )
{
$bc = "&raquo; Deleting Page";
$do = "delete";

/**
* Check if the id was passed
*/
if( $_GET["id"] == "" )
{
$error .= "<li>What post do you expect to edit?</li>";
$do = "list";
}
else
{
$id = mysql_real_escape_string( htmlspecialchars( trim( $_GET["id"] )
) );
$sql = "SELECT * FROM `pages` WHERE `id` = '$id'";
$query = $db->query( $sql );
$num = $db->numrows( $query );

/**
* Check if the page exists
*/
if( $num != 1 )
{
$error .= "<li>Page does not exist witht that identification
number</li>";
$do = "list";
}
else
{
$row = $db->fetcharray( $query );
}
}
}
else
{
$do = "list";

/**
* Go ahead and do some sql to grab all pages
*/
$sql = "SELECT * FROM `pages`";
$query = $db->query( $sql );
$num = $db->numrows( $query );
}
?>
<p><a href="index3.php?page=main">Home</a&raquo; <a
href="index3.php?page=pagemanager">Page Manager</a<?php echo $bc;
?></p>
<div id="newpage">
<h2>Page Manager</h2>
<?php
if( $error != "" )
{
/**
* Show the errors if there are any
*/
?>
<div id="error">
<img src="images/emblem-important.png" alt=" " width="32" height="32"
/>
<h2>There were errors: </h2>
<ul><?php echo $error;?></ul>
</div>
<?php
}
if( $perfect != "" )
{
/**
* Show the success mesasages if any
*/
?>
<div id="perfect">
<img src="images/emblem-notice.png" alt=" " width="32" height="32" />
<ul><?php echo $perfect;?></ul>
</div>
<?php
}

/**
* Show the editing page
*/
if( $do == "edit" )
{

}

/**
* Show the delete confirmation
*/
else if( $do == "delete" )
{

}

/**
* Else, show the list of pages
*/
else
{
/**
* Check if the page exists
*/
if( $num <= 0 )
{
?>
<p>There are no pages to display here.<br />
To add pages, go to back and click on "Create Page".</p>
<?php
}
else
{
?>
<table id="page_table" border="0" cellspacing="0" cellpadding="5">
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
<th>Id</th>
<th>Title</th>
<th>Slug</th>
<th>Type</th>
</tr>
<?php
/**
* Loop through the resultset
*/
$int = 0;
while( $row = $db->fetcharray( $query ) )
{
if( $int == 0 )
{
$class = "page_table1";
$int++;
}
else
{
$class = "page_table2";
$int = 0;
}

if( $row["type"] == "error" )
{
$img = "emblem-important-small.png";
}
else
{
$img = "text-x-generic.png";
}
?>
<tr class="<?php echo $class; ?>">
<td><a
href="index3.php?page=pagemanager&amp;do=edit&amp; id=<?php echo
$row["id"]; ?>">
<img src="images/emblem-unreadable.png" width="16" height="16"
border="0" /></a></td>
<td><a
href="index3.php?page=pagemanager&amp;do=edit&amp; id=<?php echo
$row["id"]; ?>">
<img src="images/accessories-text-editor.png" alt="Edit" width="16"
height="16" /></a></td>
<td><?php echo $row["id"]; ?></td>
<td><?php echo $row["title"]; ?></td>
<td><?php echo $row["slug"]; ?></td>
<td><img src="images/<?php echo $img; ?>" title="<?php echo
$row["type"]; ?>" style="float:left;" />&nbsp;
<?php echo $row["type"]; ?></td>
</tr>

<?php
}
?>
</table>
<?php
}
}

/**
* Do some logging.
* Note: This was removed as for testing
*/
?>
</div>

Where is the <html></html>, <body></bodyetc.? I couldn't find it in this
code. You said that this was the complete code. Also, how do you know it
stops after the while loop?

Shelly
Jul 30 '06 #6

P: n/a
Shelly wrote:
"dawnerd" <da*****@gmail.comwrote in message
news:11**********************@m79g2000cwm.googlegr oups.com...
Here is the page in it's completeness. I removed the logging and other
stuff to see if it was the cause, and it wasn't. Also, the logging
script is not open source, well, yet.

<?php
if( !OJAICMS )
{
die("No");
}

require_once( "functions/newpage.function.php" );

/**
* update the page?
*/
if( $_GET["action"] == "update" )
{
///
/// Planned
///
}

/**
* Delete the page?
*/
if( $_GET["action"] == "delete" )
{
///
/// Planned
///
}
/**
* Show the correct breadcrumb and perform some other hacking checks
*/
if( $_GET["do"] == "edit" )
{
$bc = "&raquo; Editing Page";
$do = "edit";

/**
* Check if the id was passed
*/
if( $_GET["id"] == "" )
{
$error .= "<li>What post do you expect to edit?</li>";
$do = "list";
}
else
{
$id = mysql_real_escape_string( htmlspecialchars( trim( $_GET["id"] )
) );
$sql = "SELECT * FROM `pages` WHERE `id` = '$id'";
$query = $db->query( $sql );
$num = $db->numrows( $query );

/**
* Check if the page exists
*/
if( $num != 1 )
{
$error .= "<li>Page does not exist witht that identification
number</li>";
$do = "list";
}
else
{
$row = $db->fetcharray( $query );
}
}
}
else if( $_GET["do"] == "delete" )
{
$bc = "&raquo; Deleting Page";
$do = "delete";

/**
* Check if the id was passed
*/
if( $_GET["id"] == "" )
{
$error .= "<li>What post do you expect to edit?</li>";
$do = "list";
}
else
{
$id = mysql_real_escape_string( htmlspecialchars( trim( $_GET["id"] )
) );
$sql = "SELECT * FROM `pages` WHERE `id` = '$id'";
$query = $db->query( $sql );
$num = $db->numrows( $query );

/**
* Check if the page exists
*/
if( $num != 1 )
{
$error .= "<li>Page does not exist witht that identification
number</li>";
$do = "list";
}
else
{
$row = $db->fetcharray( $query );
}
}
}
else
{
$do = "list";

/**
* Go ahead and do some sql to grab all pages
*/
$sql = "SELECT * FROM `pages`";
$query = $db->query( $sql );
$num = $db->numrows( $query );
}
?>
<p><a href="index3.php?page=main">Home</a&raquo; <a
href="index3.php?page=pagemanager">Page Manager</a<?php echo $bc;
?></p>
<div id="newpage">
<h2>Page Manager</h2>
<?php
if( $error != "" )
{
/**
* Show the errors if there are any
*/
?>
<div id="error">
<img src="images/emblem-important.png" alt=" " width="32" height="32"
/>
<h2>There were errors: </h2>
<ul><?php echo $error;?></ul>
</div>
<?php
}
if( $perfect != "" )
{
/**
* Show the success mesasages if any
*/
?>
<div id="perfect">
<img src="images/emblem-notice.png" alt=" " width="32" height="32" />
<ul><?php echo $perfect;?></ul>
</div>
<?php
}

/**
* Show the editing page
*/
if( $do == "edit" )
{

}

/**
* Show the delete confirmation
*/
else if( $do == "delete" )
{

}

/**
* Else, show the list of pages
*/
else
{
/**
* Check if the page exists
*/
if( $num <= 0 )
{
?>
<p>There are no pages to display here.<br />
To add pages, go to back and click on "Create Page".</p>
<?php
}
else
{
?>
<table id="page_table" border="0" cellspacing="0" cellpadding="5">
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
<th>Id</th>
<th>Title</th>
<th>Slug</th>
<th>Type</th>
</tr>
<?php
/**
* Loop through the resultset
*/
$int = 0;
while( $row = $db->fetcharray( $query ) )
{
if( $int == 0 )
{
$class = "page_table1";
$int++;
}
else
{
$class = "page_table2";
$int = 0;
}

if( $row["type"] == "error" )
{
$img = "emblem-important-small.png";
}
else
{
$img = "text-x-generic.png";
}
?>
<tr class="<?php echo $class; ?>">
<td><a
href="index3.php?page=pagemanager&amp;do=edit&amp; id=<?php echo
$row["id"]; ?>">
<img src="images/emblem-unreadable.png" width="16" height="16"
border="0" /></a></td>
<td><a
href="index3.php?page=pagemanager&amp;do=edit&amp; id=<?php echo
$row["id"]; ?>">
<img src="images/accessories-text-editor.png" alt="Edit" width="16"
height="16" /></a></td>
<td><?php echo $row["id"]; ?></td>
<td><?php echo $row["title"]; ?></td>
<td><?php echo $row["slug"]; ?></td>
<td><img src="images/<?php echo $img; ?>" title="<?php echo
$row["type"]; ?>" style="float:left;" />&nbsp;
<?php echo $row["type"]; ?></td>
</tr>

<?php
}
?>
</table>
<?php
}
}

/**
* Do some logging.
* Note: This was removed as for testing
*/
?>
</div>


Where is the <html></html>, <body></bodyetc.? I couldn't find it in this
code. You said that this was the complete code. Also, how do you know it
stops after the while loop?

Shelly
The page I posted is included into a template.

And here is that template file.
-------------------------
<?php
/**
* OjaiCMS Copyright 2006 Troy Whiteley <tr***********@gmail.com>
* Code is licensed under the BSD License.
* Please see license.txt in the root folder for license.
*
* File: index3.php
* System File: Yes
* Creation Date: July 18, 2006
*
* Details: This is the administration template.
*/

/**
* Start the session
*/
session_start();

/**
* Start output buffering
*/
ob_start();

/**
* Load up the config file
*/
require_once("../core/config/main.config.php");

require_once("functions/user.function.php");

/**
* Check if the user is logged in
*/
if( !checkuser( $db ) )
{
header("Location: index.php");
}
?>
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"
/>
<title>Administration</title>
<style type="text/css">
<!--
@import url("global.css");
@import url("style.css");
-->
</style>

<script language="javascript" type="text/javascript"
src="js/yahoo/yahoo-min.js"></script>
<script language="javascript" type="text/javascript"
src="js/dom/dom-min.js"></script>
<script language="javascript" type="text/javascript"
src="js/event/event-min.js"></script>
<script language="javascript" type="text/javascript"
src="js/animation/animation-min.js"></script>
<script language="javascript" type="text/javascript"
src="js/jquery.js"></script>
<script language="javascript" type="text/javascript"
src="js/thickbox.js"></script>
<script language="javascript" type="text/javascript"
src="js/tiny_mce/tiny_mce_gzip.php"></script>
<script language="javascript" type="text/javascript"
src="js/tiny_mce/tiny_mce_config.js"></script>
<script language="javascript" type="text/javascript"
src="js/animation.js"></script>
</head>

<body onload="fadein('error',0,1); fadein('perfect',0,1);">
<div id="container2">
<div id="header"></div>
<div id="content">
<span id="head">Administration</span>
<p id="welcomeuser">welcome <?php echo htmlspecialchars(
$_COOKIE["user"] );?(<a
href="index.php?action=logout">logout</a>)</p>
<?php
//check if page in url exists
if( file_exists("pages/" . $_GET["page"] . ".php") )
{
include("pages/" . $_GET["page"] . ".php");
}
else
{
include("pages/main.php");
}
?>
</div>
</div>
<div id="footer"></div>
</body>
</html>
<?php
/**
* End output buffering
*/
ob_end_flush();
?>

---------

I will have the demo up in a bit, and have to fix my cluster. It has
decided to not work at all, but thats nothing to do with the problem at
hand.

Jul 30 '06 #7

P: n/a
dawnerd wrote:
Shelly wrote:
<long code snipped>

Well, it isn't the way I would do it, but it should work. Looking at
your code, I still don't see where you're putting out anything after the
loop. What do you expect to see?

Also, what do you have if you look at the page source? You should see,
amongst other things, the </bodyand </htmlstatements at the end.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Jul 30 '06 #8

P: n/a

Jerry Stuckle wrote:
dawnerd wrote:
Shelly wrote:
<long code snipped>

Well, it isn't the way I would do it, but it should work. Looking at
your code, I still don't see where you're putting out anything after the
loop. What do you expect to see?

Also, what do you have if you look at the page source? You should see,
amongst other things, the </bodyand </htmlstatements at the end.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Right after the loop it doesn't output anything, the table isn't even
closed off.

Jul 30 '06 #9

P: n/a
dawnerd wrote:
Jerry Stuckle wrote:
>>dawnerd wrote:
>>>Shelly wrote:

<long code snipped>

Well, it isn't the way I would do it, but it should work. Looking at
your code, I still don't see where you're putting out anything after the
loop. What do you expect to see?

Also, what do you have if you look at the page source? You should see,
amongst other things, the </bodyand </htmlstatements at the end.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================


Right after the loop it doesn't output anything, the table isn't even
closed off.
Well, I don't see anything obvious here - at least nothing which could
cause the symptoms you describe.

Do you have errors set to E_ALL and display errors on? I suspect you're
getting some runtime error - but can't see what it might be.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Jul 31 '06 #10

P: n/a

Jerry Stuckle wrote:
dawnerd wrote:
Jerry Stuckle wrote:
>dawnerd wrote:

Shelly wrote:
<long code snipped>

Well, it isn't the way I would do it, but it should work. Looking at
your code, I still don't see where you're putting out anything after the
loop. What do you expect to see?

Also, what do you have if you look at the page source? You should see,
amongst other things, the </bodyand </htmlstatements at the end.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================

Right after the loop it doesn't output anything, the table isn't even
closed off.

Well, I don't see anything obvious here - at least nothing which could
cause the symptoms you describe.

Do you have errors set to E_ALL and display errors on? I suspect you're
getting some runtime error - but can't see what it might be.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Yea, I have it set to log every error, but thats why I came here, is
because no error is thrown, at all. I am re-installing windows 2003 in
hopes that something was wrong there.

Jul 31 '06 #11

P: n/a
dawnerd wrote:
Jerry Stuckle wrote:
>>dawnerd wrote:
>>>Jerry Stuckle wrote:
dawnerd wrote:
>Shelly wrote:
>

<long code snipped>

Well, it isn't the way I would do it, but it should work. Looking at
your code, I still don't see where you're putting out anything after the
loop. What do you expect to see?

Also, what do you have if you look at the page source? You should see,
amongst other things, the </bodyand </htmlstatements at the end.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Right after the loop it doesn't output anything, the table isn't even
closed off.

Well, I don't see anything obvious here - at least nothing which could
cause the symptoms you describe.

Do you have errors set to E_ALL and display errors on? I suspect you're
getting some runtime error - but can't see what it might be.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================


Yea, I have it set to log every error, but thats why I came here, is
because no error is thrown, at all. I am re-installing windows 2003 in
hopes that something was wrong there.
I don't know that that will help. I hope so, but I suspect not.

I've tried executing your code to see what I can find, but without all
of your include files, database, etc., it's very difficult. And when I
get enough commented out to get it to run there isn't a problem.

Wish I could be of more assistance. Do you have this anyplace were we
can see it in action yet?
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Jul 31 '06 #12

P: n/a

Jerry Stuckle wrote:
dawnerd wrote:
Jerry Stuckle wrote:
>dawnerd wrote:

Jerry Stuckle wrote:
dawnerd wrote:
Shelly wrote:
<long code snipped>

Well, it isn't the way I would do it, but it should work. Looking at
your code, I still don't see where you're putting out anything after the
loop. What do you expect to see?

Also, what do you have if you look at the page source? You should see,
amongst other things, the </bodyand </htmlstatements at the end.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Right after the loop it doesn't output anything, the table isn't even
closed off.
Well, I don't see anything obvious here - at least nothing which could
cause the symptoms you describe.

Do you have errors set to E_ALL and display errors on? I suspect you're
getting some runtime error - but can't see what it might be.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================

Yea, I have it set to log every error, but thats why I came here, is
because no error is thrown, at all. I am re-installing windows 2003 in
hopes that something was wrong there.

I don't know that that will help. I hope so, but I suspect not.

I've tried executing your code to see what I can find, but without all
of your include files, database, etc., it's very difficult. And when I
get enough commented out to get it to run there isn't a problem.

Wish I could be of more assistance. Do you have this anyplace were we
can see it in action yet?
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
I will put up a demo on sf.net as soon as a get a few more things done
with it. Maybe later tonight.

Jul 31 '06 #13

P: n/a

Jerry Stuckle wrote:
dawnerd wrote:
Jerry Stuckle wrote:
>dawnerd wrote:

Jerry Stuckle wrote:
dawnerd wrote:
Shelly wrote:
<long code snipped>

Well, it isn't the way I would do it, but it should work. Looking at
your code, I still don't see where you're putting out anything after the
loop. What do you expect to see?

Also, what do you have if you look at the page source? You should see,
amongst other things, the </bodyand </htmlstatements at the end.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Right after the loop it doesn't output anything, the table isn't even
closed off.
Well, I don't see anything obvious here - at least nothing which could
cause the symptoms you describe.

Do you have errors set to E_ALL and display errors on? I suspect you're
getting some runtime error - but can't see what it might be.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================

Yea, I have it set to log every error, but thats why I came here, is
because no error is thrown, at all. I am re-installing windows 2003 in
hopes that something was wrong there.

I don't know that that will help. I hope so, but I suspect not.

I've tried executing your code to see what I can find, but without all
of your include files, database, etc., it's very difficult. And when I
get enough commented out to get it to run there isn't a problem.

Wish I could be of more assistance. Do you have this anyplace were we
can see it in action yet?
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
I have uploaded a demo to my server.
http://ojaisoft.com/projects/ojaicms/admin/
username: Test
password: test

NOTE: This account will only be active for a few days.

Aug 2 '06 #14

P: n/a
dawnerd wrote:
Jerry Stuckle wrote:
>>dawnerd wrote:
>>>Jerry Stuckle wrote:
dawnerd wrote:
>Jerry Stuckle wrote:
>
>
>
>>dawnerd wrote:
>>
>>
>>
>>>Shelly wrote:
>>>
>>
>><long code snipped>
>>
>>Well, it isn't the way I would do it, but it should work. Looking at
>>your code, I still don't see where you're putting out anything after the
>>loop. What do you expect to see?
>>
>>Also, what do you have if you look at the page source? You should see,
>>amongst other things, the </bodyand </htmlstatements at the end.
>>
>>--
>>==================
>>Remove the "x" from my email address
>>Jerry Stuckle
>>JDS Computer Training Corp.
>>js*******@attglobal.net
>>==================
>
>
>Right after the loop it doesn't output anything, the table isn't even
>closed off.
>

Well, I don't see anything obvious here - at least nothing which could
cause the symptoms you describe.

Do you have errors set to E_ALL and display errors on? I suspect you're
getting some runtime error - but can't see what it might be.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Yea, I have it set to log every error, but thats why I came here, is
because no error is thrown, at all. I am re-installing windows 2003 in
hopes that something was wrong there.

I don't know that that will help. I hope so, but I suspect not.

I've tried executing your code to see what I can find, but without all
of your include files, database, etc., it's very difficult. And when I
get enough commented out to get it to run there isn't a problem.

Wish I could be of more assistance. Do you have this anyplace were we
can see it in action yet?
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================


I have uploaded a demo to my server.
http://ojaisoft.com/projects/ojaicms/admin/
username: Test
password: test

NOTE: This account will only be active for a few days.
I don't see what the problem is here, but then I'm not sure what to look
for. Looking at all the pages I see complete html being output, but no
real content.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Aug 2 '06 #15

This discussion thread is closed

Replies have been disabled for this discussion.