=?iso-8859-1?Q?Chuck_=ABBeyondFusion=BB?=
Guest
Re: Links into php script doesn't work
Doesn't look anything like the way I would do it.
Are you pasting code into HTML Source View?
Take a look at my PHP/MySQL tutorials. You'll find a link to them on the
BeyondFusion resources page.
--
Chuck Joslin
BeyondFusion.com - Your Fusion Community
www.beyondfusion.com
Register domain names at www.awavedomains.com
"Olivier Daumas" <od.dev@morvandelle.com> wrote in message
news:ft878r$ldm4@flsun90netnews01.netobjects.com.. .
>" It's probably a combination of using fixed layout (not good.... try
>dynamic
> instead) and placing the code just before the end of body tag. "
>
> Current site options -> Site generation is already on "Dynamic Page
> Layout - All browsers",
> and the code is placed just before the end of body tag.
>
> Please have a look on the page code below :
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
> <HTML>
> <HEAD>
> <TITLE> Title of Page will be generated by NetObjects Fusion. </TITLE>
> <!-- NetObjects Fusion Generated HEAD HTML-->
> </HEAD>
> <BODY NetObjects Fusion Generated BODY Parameters >
> <!-- NetObjects Fusion Generated BODY -->
> <?php
> require_once("Connect.php");
>
> $requete = "SELECT * FROM TabArt ";
>
> $connexion = mysql_pconnect("sql1.easy-hebergement.net", "emorvan",
> "rlmdx4gs");
> mysql_select_db(emorvan, $connexion);
>
> $resultat = mysql_query($requete, $connexion);
>
> echo '<table style="LEFT: 200px; POSITION: absolute; TOP: 200px"
> cellspacing="1"
> cellpadding="1" border="1">';
>
> while ($result = mysql_fetch_object($resultat))
> {
> echo "<tr>"
> . "<td><a href='www.e-morvan/index.php?id=".
> $result->NumArt ."'>". $result->NumArt ."</a></td>"
> . "<td> $result->NomArt </td>"
> . "</tr>\n";
> }
> echo "</table>\n";
> ?>
> </BODY>
> </HTML>
>
> Than you.
>
> "Chuck «BeyondFusion»" <supportno@spambeyondfusion.com> a écrit dans le
> message de news: ft843k$ldm3@flsun90netnews01.netobjects.com...
>> It's probably a combination of using fixed layout (not good.... try
>> dynamic instead) and placing the code just before the end of body tag.
>>
>> For positioning, you should place a text box on the page where you want
>> the table with links to appear and use Ctrl+T to insert the html code.
>>
>> Right now, you have the code outside the div that makes up the content of
>> the body.
>>
>> That's probably breaking the link in a browser.
>>
>> --
>> Chuck Joslin
>> BeyondFusion.com - Your Fusion Community
>> www.beyondfusion.com
>>
>> Register domain names at www.awavedomains.com
>>
>> "Olivier Daumas" <od.dev@morvandelle.com> wrote in message
>> news:ft82gk$ls41@flsun90netnews01.netobjects.com.. .
>>> Thank you for your help :
>>>
>>> 1) Be sure that your page extension (in NOF) is set to .php (that is
>>> required for the php command to execute)
>>>
>>> 2) A local preview will not execute the command
>>>
>>> 3) A local publish will execute it - IF you have WAMP or one of the
>>> desktop
>>> PHP environments running. However even there you usually have to access
>>> it
>>> with http://127.0.0.1 or http://localhost
>>>
>>> 4) If your publishing to the web and it is still not working, be sure
>>> that
>>> your hosting center supports and allows PHP. Most do, but some still do
>>> not.
>>>
>>> -----------------------------------------
>>>
>>> 1) Of course it is.
>>>
>>> 2) and 3) I published "Entire site" on remote server.
>>>
>>> 4) of course it does. The links work properly in a standard page.
>>>
>>> -----------------------------------------
>>>
>>> Please, you can have a look at
>>> http://www.e-morvan.com/html/produits.php for NOF version
>>>
>>> and at
>>> http://www.e-morvan.com/html/coucou.php for not NOF version
>>>
>>> Thanks.
>>>
>>> "Charles Edmonds" <cje_ByteMeSpammers_@lansrad.com> a écrit dans le
>>> message de news: 14cdzz5yil0s8$.ybv5e4tk36y3$.dlg@40tude.net...
>>>> On Sat, 5 Apr 2008 13:05:10 +0200, Olivier Daumas wrote:
>>>>
>>>>> In my code there are no html or php suntax error.
>>>>> It works properly into an html file, but not in NOF.
>>>>
>>>> Oliver,
>>>>
>>>> A few things to look for:
>>>>
>>>> 1) Be sure that your page extension (in NOF) is set to .php (that is
>>>> required for the php command to execute)
>>>>
>>>> 2) A local preview will not execute the command
>>>>
>>>> 3) A local publish will execute it - IF you have WAMP or one of the
>>>> desktop
>>>> PHP environments running. However even there you usually have to
>>>> access it
>>>> with http://127.0.0.1 or http://localhost
>>>>
>>>> 4) If your publishing to the web and it is still not working, be sure
>>>> that
>>>> your hosting center supports and allows PHP. Most do, but some still
>>>> do
>>>> not.
>>>>
>>>> Good luck!
>>>>
>>>>
>>>> Charles
>>>>
>>>>
>>>> --
>>>> -------------------------------------------------------------------------------------------------------
>>>> Charles Edmonds
>>>> cje_ByteMeSpammers_@lansrad.com (remove the _ByteMeSpammers_ to email
>>>> me)
>>>> www.pagesnip.com - "Print and Save the Web, just the way you want it!"
>>>> www.clarionproseries.com - "Serious imaging tools for Clarion
>>>> Developers"
>>>> www.ezround.com - "Round Corner HTML tables with matching Banners,
>>>> Buttons
>>>> and Forms!"
>>>> www.lansrad.com - "Intelligent Solutions for Universal Problems"
>>>> www.fotokiss.com - "World's Best Auction Photo Editor"
>>>> -------------------------------------------------------------------------------------------------------
>>>
>>
>
>