473,387 Members | 1,573 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Output stops after while loop

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
14 2639
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

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
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
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

"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
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
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

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
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

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
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

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

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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

16
by: jagg | last post by:
Hi, how do I have to change/edit my code that the output is sort by the file name (from a-z)? <?php $nr= 0; $handle=opendir ($path);
4
by: Damien Renwick | last post by:
I have a php script which simply stops midway through a while loop that processes records returned by a MySQL query. The HTML page continues trying to load the page but the php has stopped running...
0
by: Matt Rapoport | last post by:
I'm running an NT service with a thread. The thread performs a calculation every so often and appends the number to a text file. Every so often the thread just stops - or so it seems. The text...
3
by: Blankdraw | last post by:
I'm getting NO errors and 2 warnings with this code. I thought I was ready to write the output-formatting segment, but may be way off the mark now. The warnings say that "OPEN() and READ() are...
9
by: mareal | last post by:
I have noticed how the thread I created just stops running. I have added several exceptions to the thread System.Threading.SynchronizationLockException System.Threading.ThreadAbortException...
5
by: Markus S. | last post by:
Hello, I have a problem with a DOS EXE that is called by a .Net Winforms application. I need to redirect the console output into a textbox, but this should happen in real time, so when new...
0
by: mfilpot | last post by:
I am working on a prime number generator for sschool, but I jsut can't seem to figure out how to write the contents of the variable MeSSage into a new text file, Can someone help me? the script...
21
by: Umesh | last post by:
/*program to search a* in a text file & write output in a file.* indicated any character*/ #include<stdio.h> #include<stdlib.h> int main(void) { FILE *f,*fp; f=fopen("c:/1.txt","r");...
5
by: AB3004 | last post by:
Hey there, Just wanted to say Hi. - I'm new on here & have drifted here as I'm having a minor problem I was hoping someone could assist ...? (for some reason I couldn't post this directly into the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.