Jump to content

[SOLVED] Undefined property: stdClass :: $titel


patrickm

Recommended Posts

I've build an admin section to a website where products are presented.

The admin page allows the logged in user to change/adapt certain values of a selected product.

 

Although the website/admin page is working without any problem, I come across error messages in the Apache/httpd logfiles:

 

[Wed Jan 23 16:14:45 2008] [error] [client 83.247.125.49] PHP Notice:  Undefined property:  stdClass::$titel in /home/web/######/admin/admin-artikel-gegevens.php on line 83, referer: http://www.######.com/admin/admin.php

 

The code the error message is referring to:

 

			if ($actie == ""){

				include("../source/config.php");
				$sql = "SELECT * FROM artikel_gegevens ORDER BY id";
				$resultaat = mysql_query($sql) or die (mysql_error());

				echo "<form action=\"admin-artikel-gegevens.php?actie=aanpassen\" method=\"post\">\n";
				echo "<select name=\"code\" id=\"code\" class=\"snelstart\">\n";
				echo "<option value=\"\">Maak een keuze ...</option>\n";

				while ($dump_gegevens = mysql_fetch_object($resultaat)) {
	==>			if ($dump_gegevens->titel <> "*"){
						echo "<option value=\"$dump_gegevens->id\">$dump_gegevens->uitvoering</option>\n";
					}
				}

				echo "</select>";
				echo "    ";
				echo "<input type=\"submit\" name=\"submit\" value=\" Go! \" class=\"button\">\n";
				echo "</form>\n";

				mysql_close();
			}

 

I've gone through various resources but can't seem find draw this one out.. ???

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.