Article View: nl.comp.programmeren
Article #124Re: Netobjects en MySql
From: Garfield
Date: Tue, 29 Nov 2005 17:58
Date: Tue, 29 Nov 2005 17:58
31 lines
3764 bytes
3764 bytes
Ludo schreef op 29-11-2005 11:14 het volgende bericht:
>
>> 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()) ?>
De extensie van dit bestand; is dat .php of iets anders. Apache zal
waarschijnlijk alleen .php bestanden verwerken met php.exe (Staat in
httpd.conf voor apache 2). Als de extensie .htm oid is, zal hij html
proberen te parsen, en is je resultaat naar verwachting.....
--
Garf
Technical Details
Message-ID:
<dmi4s3$m75$1@news2.zwoll1.ov.home.nl>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!newsfeeder.concepts.nl!213.51.141.6.MISMATCH!newshub3.home.nl!newshub1.home.nl!home.nl!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> <dSVif.59835$2u4.3818552@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!news4.google.com!news.glorb.com!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!newsfeeder.concepts.nl!213.51.141.6.MISMATCH!newshub3.home.nl!newshub1.home.nl!home.nl!not-for-mail From: Garfield <Not@my.mailbox> Newsgroups: nl.comp.programmeren,be.comp.programming Subject: Re: Netobjects en MySql Date: Tue, 29 Nov 2005 18:58:27 +0100 Organization: @Home Benelux Lines: 31 Message-ID: <dmi4s3$m75$1@news2.zwoll1.ov.home.nl> 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> <dSVif.59835$2u4.3818552@phobos.telenet-ops.be> NNTP-Posting-Host: cc315820-a.joure1.fr.home.nl Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: news2.zwoll1.ov.home.nl 1133287107 22757 217.121.130.107 (29 Nov 2005 17:58:27 GMT) X-Complaints-To: usenet@corp.home.nl NNTP-Posting-Date: Tue, 29 Nov 2005 17:58:27 +0000 (UTC) User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en In-Reply-To: <dSVif.59835$2u4.3818552@phobos.telenet-ops.be> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAMAAABg3Am1AAAAB3RJTUUH1QMOCCsKse5vEAAA AAlwSFlzAAALEgAACxIB0t1+/AAAAARnQU1BAACxjwv8YQUAAAAtUExURf///2VGFycUAN2jMY5j JDwrGLGOOMywbPzNYvvsZPzggvvnpv////r37tPKrxWl5TAAAAABdFJOUwBA5thmAAACCElEQVR4 2u1VW5KjQAxDblsOgeX+x125e3YyvJKf/RwnRREitfxmmn6tjHB31p07zOITHsEwM5+mQL/7gA+n ji1cMGPcvTNjdnxYpPD1eUsQyi0C5mZiwhHxhrCATW67EZSCBeDh94SHe2sSIFIwM8FB4I0Ckg0F a5VQ0PWTUF6XO0J5pCpQX5ZD9cAwTenIa0LqeIUt18MyUw5lbJue3ig0Oe9uq4xR11VkHZOr41yB id7q/IFc1y9G5ThPColUxkUw2LruGFDprlxSQ4RY8BfB+3UzUc4KzGo4r6jXg4Rju6pFCagALV74 FUMiSv3kkfwsX3cEZaesH3XMkkdSk9OarScJ93meeQhDAbAY/lPhKwgW4QnuCdWYlY8LhUQR9rUQ FlHP846QPBAU1lyGb7TEUJdVrsbRpQg1cicwTgTNHhbanpAtOoFbbEeXYtFIgTuCSUG5cMaSPxhd LXJmb/xDDMopF0oH32FEDXXFVv/ZKWiF1v9e1M8Dn3+2zTg/Z9QKPNRB9ddYapZ7qiKiTyjRixZU kfJA0NBrglvML6tNWQQNap6ayQQvG8n6R6ipflDrk4fOUHur8di8pY0CPhWptmuO/YeLmdOi0Bet Yh/mXVLH5PV+rWWnsZZnXi8IDnBts5slU68GOfFoL2PWIsN0a33ousmvIRGf30A2DF3D8Qn/a//D /gIq2hi0cGFKOgAAAABJRU5ErkJggg==