php.de

Zurück   php.de > Webentwicklung > PHP Einsteiger > PHP Tipps 2004-2

 
 
LinkBack Themen-Optionen Thema bewerten
Alt 14.12.2004, 12:20  
Gast
 
Beiträge: n/a
Standard von PHP 4 auf PHP5 geswitch nun non-object fehler

So ich hab meinen xampp mit php4.3 auf php5 umgestellt jetzt kriege ich auch einer seite folgenden fehler:
PHP-Code:
Notice: Trying to get property of non-object in C:\apachefriends\xampp\htdocs\web\navi.php on line 101
<?php ?>

die code zeilen +/-10:

PHP-Code:
<?php
               $sqlback 
"SELECT
                  *
                FROM
                   dlo_navi_kat
                WHERE
                   id ='"
.$show_kat."'";
        
$hauptmenuelinksback mysql_query($sqlback) OR die(mysql_error());
        
$rowback mysql_fetch_object($hauptmenuelinksback);
                        
$sqlback2 "SELECT
                  *
                FROM
                   dlo_navi_kat
                WHERE
                   id ='"
.$rowback->parent_id."'";
        
$hauptmenuelinksback2 mysql_query($sqlback2) OR die(mysql_error());
        
$rowback2 mysql_fetch_object($hauptmenuelinksback2);
        echo 
"<tr>";
        echo 
"<td width=\"150\" align=\"center\">";
        if(
$rowback->link_artikel=='link_artikel')
        {
        echo 
"<a href=\"javascript:ZweiFrames('navi.php?show_kat=$rowback->parent_id','Links','main.php?action=artikel&showartikel=$rowback2->artikel_id','Hauptframe')\">[b]Zurück[/b]</a>";
        }
        else
        {
        echo 
"[url='navi.php?show_kat=$rowback->parent_id'][b]Zurück[/b][/url]";
        }
        echo 
"</td>";
        echo 
"</tr>";
                
$sql "SELECT
                  *
                FROM
                   dlo_navi_kat
                WHERE
                   parent_id ='"
.$show_kat."'
                   ORDER BY Name ASC
                   "
;
        
$hauptmenuelinks mysql_query($sql) OR die(mysql_error());

?>
die entscheidene zeile ist diese hier:

PHP-Code:
<?php
echo "<a href=\"javascript:ZweiFrames('navi.php?show_kat=$rowback->parent_id','Links','main.php?action=artikel&showartikel=$rowback2->artikel_id','Hauptframe')\">[b]Zurück[/b]</a>";
?>
 
Sponsor Mitteilung
PHP Code Flüsterer

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

Alt 14.12.2004, 12:34  
Erfahrener Benutzer
 
Registriert seit: 21.05.2008
Beiträge: 2.150
Guradia befindet sich auf einem aufstrebenden Ast
Standard

Einfachste Debugausgabe bitte ^^:

PHP-Code:
<?php
print '<pre>';
print_r($rowback);
print_r($rowback2);
print 
'</pre>';
?>
Guradia ist offline  
Alt 14.12.2004, 12:56  
Gast
 
Beiträge: n/a
Standard

stdClass Object
(
[Id] => 2
[Name] => Abteilungen
[parent_id] => 1
[level] =>
[link_artikel] => link_artikel
[artikel_id] => 44
[target] =>
)
 
Alt 14.12.2004, 12:59  
Erfahrener Benutzer
 
Registriert seit: 21.05.2008
Beiträge: 2.150
Guradia befindet sich auf einem aufstrebenden Ast
Standard

Daraus sehe ich, dass $rowback oder $rowback2 kein Objekt ist ...
Guradia 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
php5 braucht 4 mal so lange wie php4? CC84 PHP Tipps 2006 4 12.04.2006 09:55
PHP5 erkennt kein PHP5!? DaOnkel PHP Tipps 2006 4 14.03.2006 11:56
[Erledigt] IIS6 mit PHP5 / CGI-Timeout PHP Tipps 2006 3 01.02.2006 14:00
[Erledigt] PHP5 mit Apache zum Laufen bringen... PHP Tipps 2005-2 11 22.10.2005 17:52
Gibt keine Ausgabe aus socke PHP Tipps 2005-2 9 31.08.2005 15:39
php4 und php5 gleichzeitig test022 Server, Hosting und Workstations 13 24.08.2005 10:25
php4 und php5 auf einem indianer Server, Hosting und Workstations 2 22.05.2005 18:06
PHP4 auf PHP5 Fehler PHP Tipps 2005 3 08.05.2005 20:18
update auf php 5.0.4 robo47 Server, Hosting und Workstations 6 10.04.2005 19:00
Fehlermeldung - aber kein fehler... Tschuu HTML, Usability und Barrierefreiheit 16 14.03.2005 15:56
suche gut erklärtes Tutorila zu php5 und oop Beitragsarchiv 24 03.03.2005 12:38
[Erledigt] mysql fehler PHP Tipps 2004 2 03.11.2004 00:32
array_push nur in begrenzter Anzahl ausführen ? PHP Tipps 2004 2 07.09.2004 09:05
[Erledigt] Probleme beim PHP5 kompilieren / zlib fehler? Server, Hosting und Workstations 4 03.09.2004 15:39
mysql_real_escape_string - Fehler Schaelle Datenbanken 0 03.07.2004 23:32

Besucher kamen über folgende Suchanfragen bei Google auf diese Seite
geswitch, mysql_fetch_object php5, trying to get property of non-object php, php trying to get property of non-object, notice: trying to get property of non-object in, geswisch 2, php5 non-object, sql trying to get property of non-object, notice: trying to get property of non-object, php5 fehler, non-object fehlermelung php, php5 mysql_fetch_object, php5 link to frame target error, php5 php notice: trying to get property of non-object in, php notice: trying to get property of non-object, notice: trying to get property of non-object mysql_query, notice: trying to get property of non-object mysql_fetch_object or die, notice: trying to get property of non-object in \php5\, mysql_fetch_object none object, php4 to php5 trying to get property of non-object

Alle Zeitangaben in WEZ +2. Es ist jetzt 23:50 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.