Article View: nl.comp.programmeren
Article #120Re: Netobjects en MySql
From: Ludo
Date: Tue, 29 Nov 2005 10:14
Date: Tue, 29 Nov 2005 10:14
112 lines
6286 bytes
6286 bytes
> Indien het html/php files genereerd, kan je daar dan eens een voorbeeld
> van posten hier, want uit het voorgaande lijkt me dat het een foutje is
> met de "?>", maar je hebt natuurlijk enkel de output op het scherm
> gegeven ;-)
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Home</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<meta name="Generator" content="NetObjects Fusion 8 for Windows">
<SCRIPT SRC="./assets/lib/php/nof_db_misc.js"></SCRIPT><?php
include("./assets/lib/php/nof_db_misc.inc.php");
include("./assets/lib/php/adodb.inc.php");
include("./assets/lib/php/drivers/adodb-mysql.inc.php");$NOF_DB_CONN =
NewADOConnection("mysql");$NOF_DB_CONN->SetFetchMode(ADODB_FETCH_ASSOC);$NOF_DB_CONN->Connect("localhost",
"root", "mijn_paswoord", "mijn_database") or die("Unable to connect!");
?><?php $test = $NOF_DB_CONN->Execute("SELECT Keuze FROM enquete") or
die("Query failed: " . $NOF_DB_CONN->ErrorMsg()) ?>
</head>
<body NOF="(MB=(DefaultMasterBorder, 65, 66, 150, 10), L=(HomeLayout,
570, 430))" bgcolor="#FFFFFF"
background="./assets/images/background.gif" TEXT="#000000"
LINK="#0033CC" VLINK="#990099" ALINK="#FF0000" topmargin=0 leftmargin=0
marginwidth=0 marginheight=0>
<?php $NOF_StartRow_jan = "" .
$NOF_REQUEST->QueryString("NOF_StartRow_jan"); if (empty
($NOF_StartRow_jan)) { $NOF_StartRow_jan = 1; }$NOF_MaxVisibleRows_jan =
10; ?><script>window.NOF_RSN_ARRAY['jan']=new RSNavigator('jan', <?php
echo $NOF_StartRow_jan; ?>, <?php echo $NOF_MaxVisibleRows_jan; ?>,<?php
echo $test->RecordCount(); ?>);</script>
<table border=0 cellspacing=0 cellpadding=0 width=531 nof=ly>
<tr valign=top align=left>
<td width=177 height=100><img
src="./assets/images/autogen/clearpixel.gif" width=177 height=1 border=0
alt=""></td>
<td width=68><img src="./assets/images/autogen/clearpixel.gif"
width=68 height=1 border=0 alt=""></td>
<td></td>
<td width=19><img src="./assets/images/autogen/clearpixel.gif"
width=19 height=1 border=0 alt=""></td>
<td></td>
<td width=22><img src="./assets/images/autogen/clearpixel.gif"
width=22 height=1 border=0 alt=""></td>
<td></td>
<td width=191><img src="./assets/images/autogen/clearpixel.gif"
width=191 height=1 border=0 alt=""></td>
</tr>
<tr valign=top align=left>
<td colspan=2 height=2></td>
<td rowspan=2 width=18><!-- <img id="Connector1" height=18 width=18
src="./assets/images/Connector.gif" border=0 alt=" " title=" "> --></td>
<td colspan=3></td>
<td rowspan=2 width=18><!-- <img id="Navigator1" height=18 width=18
src="./assets/images/RecordSetNavigator.gif" border=0 alt=" " title=" ">
--><table border="0" cellpadding="0" cellspacing="10"><tr><td nowrap><a
href="javascript: GetRSN('jan').First();" target="_self"><font
face="Arial" size="-1">|<</font></a></td><td nowrap><a href="javascript:
GetRSN('jan').Previous();" target="_self"><font face="Arial"
size="-1"><</font></a></td><td nowrap><a href="javascript:
GetRSN('jan').Next();" target="_self"><font face="Arial"
size="-1">></font></a></td><td nowrap><a href="javascript:
GetRSN('jan').Last();" target="_self"><font face="Arial"
size="-1">>|</font></a></td></tr></table></td>
<td></td>
</tr>
<tr valign=top align=left>
<td colspan=2 height=16></td>
<td></td>
<td rowspan=2 width=18><!-- <img id="Iterator1" height=18 width=18
src="./assets/images/RecordSetIterator.gif" border=0 alt=" " title=" ">
--><?php $currentIterator = &$test; $test->Move($NOF_StartRow_jan -
1);$NOF_IterCounter_jan = 0; while (!$test->EOF &&
$NOF_IterCounter_jan++ < $NOF_MaxVisibleRows_jan) { ?></td>
<td></td>
<td></td>
</tr>
<tr valign=top align=left>
<td colspan=4 height=2></td>
<td colspan=3></td>
</tr>
<tr valign=top align=left>
<td colspan=8 height=18></td>
</tr>
<tr valign=top align=left>
<td height=230></td>
<td colspan=7 width=354>
<form name="LayoutRegion1FORM" action="" METHOD=POST>
<table border=0 cellspacing=0 cellpadding=0 width=341
nof="LayoutRegion1">
<tr valign=top align=left>
<td width=12 height=34><img
src="./assets/images/autogen/clearpixel.gif" width=12 height=1 border=0
alt=""></td>
<td></td>
</tr>
<tr valign=top align=left>
<td height=166></td>
<td width=329><!-- <textarea WRAP=PHYSICAL id="TextArea1"
name="TextArea1" rows=10 cols=39></textarea> --><textarea rows="10"
cols="39" id="hallo" name="hallo"><?php echo $test->fields["Keuze"];
?></textarea></td>
</tr>
</table>
</form>
</td>
</tr>
</table>
</body>
</html>
Technical Details
Message-ID:
<dSVif.59835$2u4.3818552@phobos.telenet-ops.be>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!news.tele.dk!news.tele.dk!small.news.tele.dk!news.astraweb.com!newsrouter-eu.astraweb.com!hwmnpeer01.ams!nntp.telenet.be!kwabbernoot.telenet-ops.be!phobos.telenet-ops.be.POSTED!not-for-mailReferences:
<g8Kif.59573$IB5.3734672@phobos.telenet-ops.be> <9VUif.59806$Bx5.3675258@phobos.telenet-ops.be> <uqVif.59824$Mx5.3682376@phobos.telenet-ops.be> <4PVif.59834$Bx5.3675258@phobos.telenet-ops.be>Show Full Headers
Complete Article Headers
X-Google-Thread: 107324,96600a585b595d5c X-Google-Thread: fcea4,96600a585b595d5c X-Google-Attributes: gid107324,gidfcea4,public X-Google-Language: DUTCH,ASCII-7-bit Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!news.tele.dk!news.tele.dk!small.news.tele.dk!news.astraweb.com!newsrouter-eu.astraweb.com!hwmnpeer01.ams!nntp.telenet.be!kwabbernoot.telenet-ops.be!phobos.telenet-ops.be.POSTED!not-for-mail From: Ludo <jvbsoft.verwijder@telenet.be> User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: nl-NL, nl, en MIME-Version: 1.0 Newsgroups: nl.comp.programmeren,be.comp.programming Subject: Re: Netobjects en MySql References: <g8Kif.59573$IB5.3734672@phobos.telenet-ops.be> <9VUif.59806$Bx5.3675258@phobos.telenet-ops.be> <uqVif.59824$Mx5.3682376@phobos.telenet-ops.be> <4PVif.59834$Bx5.3675258@phobos.telenet-ops.be> In-Reply-To: <4PVif.59834$Bx5.3675258@phobos.telenet-ops.be> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Lines: 113 Message-ID: <dSVif.59835$2u4.3818552@phobos.telenet-ops.be> Date: Tue, 29 Nov 2005 10:14:33 GMT NNTP-Posting-Host: 81.83.185.71 X-Complaints-To: abuse@telenet.be X-Trace: phobos.telenet-ops.be 1133259273 81.83.185.71 (Tue, 29 Nov 2005 11:14:33 MET) NNTP-Posting-Date: Tue, 29 Nov 2005 11:14:33 MET Organization: Telenet Internet