|
Posted by ward on 05/11/06 00:44
OK, obviously (yes, very obvious) I'm missing something here.
It appears as though I'm missing some components here such as
mdb.class.php. Is this from the PEAR???
The only other thing I see that I'm not that familar with is
db_dbArray. I can't find much when googled.
So perhaps I should start from scratch in hopes of solving this thing
without PEAR. Though from what I'm reading, using the PEAR is suppose
to make things "easier." I'm not sure if PEAR is installed on the
hosting company's server; I am trying to find out.
So...
If I'm not mistaken, the following portion of my script creates two
arrays: sel_groups and sel_cols.
Is this a true statement?
echo '<fieldset><legend>Generate Report</legend>
<form action="generate_report.php" method="post">
<CENTER>
<TABLE BORDER="1" cellpadding="5" cellspacing="5">
<TR>
<TD rowspan="2" valign="bottom"><strong>Select
Group(s)</strong></TD>
<TD colspan="2"><strong>Select Columns</strong></TD>
</TR>
<TR>
<TD><strong>ICAO Work Programme</strong></TD><TD><strong>SME
Input</strong></TD>
</TR>
<TR>
<TD align="left" valign="top">';
require_once ('includes/mysql_connect.php'); // Connect to the
db.
$query = "SELECT * FROM groups ORDER BY groups_id ASC";
$result = @mysql_query ($query);
while($rows = mysql_fetch_array($result))
{
$id = $rows['groups_id'] ;
$name = $rows['groups_name'];
echo "<input name=\"sel_groups[]\" type=\"checkbox\"
value=\"$id\">$name<BR>\n";
}
echo '
</TD>
<TD align="left" valign="top">
<input name="sel_cols[]" type="checkbox" value="groups_name">
Group Name<BR>
<input name="sel_cols[]" type="checkbox" value="task_desc">
Description of Task<BR>
<input name="sel_cols[]" type="checkbox" value="task_id"> Task
No.<BR>
<input name="sel_cols[]" type="checkbox"
value="task_compdate">Estimated Completion Date<BR>
<input name="sel_cols[]" type="checkbox"
value="task_source">Source & References<BR>
<input name="sel_cols[]" type="checkbox"
value="task_icaonote">Note on Progress<BR>
</TD>
<TD align="left" valign="top">
<input name="sel_cols[]" type="checkbox"
value="task_usposition">U.S. Position<BR>
<input name="sel_cols[]" type="checkbox"
value="task_exp_outcome">Expected Outcome<BR>
<input name="sel_cols[]" type="checkbox"
value="task_outcome">Outcome<BR>
<input name="sel_cols[]" type="checkbox"
value="task_usaction">U.S. Action<BR>
<input name="sel_cols[]" type="checkbox"
value="task_probs_issues">Problems & Issues<BR>
<input name="sel_cols[]" type="checkbox"
value="task_smecomments">Notes/Comments<BR>
</TD>
</TR>
</TABLE></CENTER>
<input name="submit" type="submit" value="Generate">
</form>
Ward
On Wed, 10 May 2006 14:56:30 -0500, "robert"
<ab@no.spam-alama-ding-dong> wrote:
>| Fatal error: Cannot instantiate non-existent class: mdb in
>| /generate_report.php on line 7
>
>add an include/require statement to the mdb class script:
>
>require_once "/classes/mdb.class.php";
>
>and that will take care of it...the above path and file name are wholly
>incorrect, which i'm sure you understand.
>
Navigation:
[Reply to this message]
|