[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [PROGRAMMERING] Re: php variablen printer ikke



On 2010-08-28 14:36, Mikkel Meinike wrote:
> Adam Sjøgren skrev:
>> Hvordan ser din kode ud nu?
> Altså jeg har forsøgt at indsætte den der fejlmeldingsting den er der og  
> så har jeg rette variabelnanvet i definitionen til text3 så nu ser det  
> sådan ud
> Den giver ingen fejlmeldinger når jeg besøger siden med browseren

Ah.. Hade varit lättare att hitta felet om du hade indenterat, men du
har initierat $text3 inne i ett block, så att den har ett scope som
bara gäller inom det blocket (dvs if-satsen). När du försöker använda
den utanför det blocket finns den inte längre.

Du kan lösa det genom att helt enkelt flytta ut initialiseringen av
$text3 till utanför if-satsen.

-- 
Olof Johansson
    irc: zibri on Freenode/OFTC
    jabber: sslug@sslug


 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2010-09-01, 02:01 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *