100
This isn't a big problem or anything, and its not related to xoops.....but I've taking a great intrest in php and databases since I became aware of xoops. Im hooked!
Anyhow, what I've done is created an include() that will display some links on my page. The page, view_groups.php has a form that is displaying dynamic text in its tables.
Everything is fine until I add the
include("control_panel.php"); line. (you can see it at the bottom.) After I add this line, my "form1" disappears disappears in Dreamweaver, however I do see the data that was called out in the include(). And the "form1" is visible when I few the compiled page.
This is only happening on this page, and I don't know why...ya'll have any ideas?
<?php require_once('Connections/servicetest.php'); ?>
<?php
mysql_select_db($database_servicetest, $servicetest);
$query_view_grops = "SELECT * FROM groups";
$view_grops = mysql_query($query_view_grops, $servicetest) or die(mysql_error());
$row_view_grops = mysql_fetch_assoc($view_grops);
$totalRows_view_grops = mysql_num_rows($view_grops);
?>
<form name="form1" method="post" action="">
<table width="50%" border="1" cellspacing="5" cellpadding="0">
<tr>
<td>Group ID</td>
<td>Group Name</td>
</tr>
<?php do { ?>
<tr>
<td><?php echo $row_view_grops['group_id']; ?></td>
<td><?php echo $row_view_grops['group_name']; ?></td>
</tr>
<?php } while ($row_view_grops = mysql_fetch_assoc($view_grops)); ?>
</table>
</form>
<?php
mysql_free_result($view_grops);
?>
<p><?php include("control_panel.php"); ?>