1
rcjohnson
maybe one of you smart people can help me...?
  • 2004/9/29 14:42

  • rcjohnson

  • Not too shy to talk

  • Posts: 187

  • Since: 2004/7/23


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"); ?>

2
rcjohnson
Re: maybe one of you smart people can help me...?
  • 2004/9/29 14:43

  • rcjohnson

  • Not too shy to talk

  • Posts: 187

  • Since: 2004/7/23


ok, nevermind...
It appears the php tags need to nested in <body> tags.....


Login

Who's Online

164 user(s) are online (109 user(s) are browsing Support Forums)


Members: 0


Guests: 164


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits