php.de

Zurück   php.de > Webentwicklung > PHP Einsteiger > PHP Tipps 2006

 
 
LinkBack Themen-Optionen Thema bewerten
Alt 24.01.2006, 09:37  
Benutzer
 
Registriert seit: 21.09.2005
Beiträge: 30
Bruce
Bruce eine Nachricht über MSN schicken
Standard Hilfe! global variable nicht im funktion erkannt

Ich bin vollig ratlös

ich habe einige globale variablen die in eine Funktion nicht erkannt wird.
Code:
include_once($Path."/Global/Portal_Functions.inc.php");
include_once($Path."/Global/MailFunctions.inc.php");
include_once($Path."/Global/sql_ServerIMPortal.inc.php");


function PV1Reminder(){

  
  // Datenbank
  $db="Urlaub";
  $connDB = @mssql_select_db($db, $conServer); 


  // Startwerte
  //
  $ProzessNr='2502';
  $ProzessName='PV1Reminder';
  $ts_Start = mktime();


  // DB Abfrage
  $sql= "SELECT PV1_MAN, PV1_PNR, EMAIA ";
  $sql=$sql." FROM ".$db.".dbo.v_Reminder_Urlaub ";
  $sql=$sql." GROUP BY PV1_MAN, PV1_PNR, EMAIA ";
  $query=mssql_query($sql);

 

  $counter=0;
  while($daten=mssql_fetch_array($query)){
    //$Mail["Address"]=$daten["EMAIA"];
    //$Mail["Address"]="rainer.moenig@ingrammicro.de";
    //bruce mailadress for testing
    $Mail["Address"]="Bruce.Myklebust@ingrammicro.de";
    $Mail["Subject"]="Offene Anträge";
    $Mail["Header"]= $g_H_HTML.$g_H_HR;
        
    echo "

-test-".$g_H_HTML.$g_H_HR."

";

$g_H_HTML.$g_H_HR sind die variablen (global)

hat jemend eine idea wie das geht? bitte
__________________
Programmers are just tools that convert caffiene into code
Bruce ist offline  
Sponsor Mitteilung
PHP Code Flüsterer

Registriert seit: 21.08.2005
Beiträge: 4682
PHP-Kenntnisse:
Fortgeschritten

Alt 24.01.2006, 09:43  
Erfahrener Benutzer
 
Registriert seit: 13.11.2005
Beiträge: 2.583
xabbuh
Standard

Warum sollten diese Variablen innerhalb der Funktion bekannt sein (http://www.php.net/manual/en/languag...bles.scope.php).
xabbuh ist offline  
Alt 24.01.2006, 09:45  
Erfahrener Benutzer
 
Registriert seit: 21.05.2008
Beiträge: 9.937
Zergling-new wird schon bald berühmt werden
Standard

Wie definierst du sie denn global?
http://de.php.net/static
Zergling-new ist offline  
Alt 24.01.2006, 09:46  
Benutzer
 
Registriert seit: 21.09.2005
Beiträge: 30
Bruce
Bruce eine Nachricht über MSN schicken
Standard

Ich danke dir hoffentlich komme ich jezt weiter

edit: ok problem solved *grins*
__________________
Programmers are just tools that convert caffiene into code
Bruce ist offline  
 


Themen-Optionen
Thema bewerten
Thema bewerten:

Forumregeln
Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are an
Gehe zu

Ähnliche Themen
Thema Autor Forum Antworten Letzter Beitrag
Externe Variable über eine Funktion ausgeben errox PHP Tipps 2008 3 14.04.2008 11:26
Variable aus Klasse herausbekommen GSJLink PHP Tipps 2008 7 16.02.2008 22:25
ergi_replace & funktion Hilfe zapate PHP Tipps 2006 6 04.01.2006 13:31
mit link variable setzen und funktion ausfürhen PHP Tipps 2005-2 4 07.09.2005 16:36
Hilfe bei kleiner Funktion PHP Tipps 2005-2 1 24.08.2005 09:35
variable in funktion..euhmm? imported_kontur PHP Tipps 2005-2 1 19.08.2005 16:41
Globale Variable aus Funktion?? PHP Tipps 2005-2 0 05.08.2005 18:57
variable von seite zu seite benutzen hilfe PHP Tipps 2005-2 8 21.06.2005 01:30
[Erledigt] Brauche Hilfe bei Funktion "Suche" PHP Tipps 2005 4 03.05.2005 16:20
Benötige Hilfe zu einer Funktion PHP Tipps 2005 14 22.04.2005 21:27
Hilfe - Rekursive Funktion PHP Tipps 2005 5 10.01.2005 22:19
Funktion() anwendung -bitte um Hilfe PHP Tipps 2004-2 17 08.12.2004 11:58
Anfänger braucht hilfe bei blättern funktion PHP Tipps 2004 3 04.11.2004 12:46
Brauche dringend Hilfe ! Array als Variable versenden Sachse PHP Tipps 2004 12 18.10.2004 20:31
Hilfe bei einer if/else funktion PHP Tipps 2004 6 12.07.2004 13:00

Besucher kamen über folgende Suchanfragen bei Google auf diese Seite
php globale variablen in funktionen, php globale variable in funktion, php variable global funktion, php function global variable, php funktionen globale variablen, php class function global, php use global variable in function, globale variable in funktion php, php funktion globale variable, php globale variablen funktionen, php global variable in function, php globale variablen funktion, php globale variable function, php global variable function, php globale variablen in funktion, http://www.php.de/php-tipps-2006/36210-hilfe-global-variable-nicht-im-funktion-erkannt.html, php function globale variable, php variable global function, php function global var, php function globale variablen

Alle Zeitangaben in WEZ +2. Es ist jetzt 14:33 Uhr.




Powered by vBulletin® Version 3.7.2 (Deutsch)
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
Aprilia-Forum, Aquaristik-Forum, Liebeskummer-Forum, Zierfisch-Forum, Geizkragen-Forum

Creative Commons License
Dieser Inhalt ist unter einer Creative Commons-Lizenz lizenziert.