Hi,

>  <?php
>  global $titel;
>  $titel='html'

missing colon;

>  $db = mysql_connect("localhost", "root") or die ("Kan geen connectie
> maken met het database programma. De Database server kan uit staan.");;
>  mysql_select_db("setf",$db) or die ("Kan geen connectie maken met de
> database");
>
>  $result = mysql_query("SELECT titel FROM onderwerpen where
> titel=$titel")

missing colon; no quotes around the $title.

>  or die ("kan niks uit de database lezen. Reload en probeer het nog een
> keer.");
>
>  // the other select i used:
>  $result = mysql_query("SELECT titel FROM onderwerpen where
> titel='$titel'")

missing colon;

>
>  file://The working select without a variable
> $result = mysql_query("SELECT titel FROM onderwerpen where
> titel='html'")

colon;

Take the third statement, the one with quotes around '$titel'. Exept from
the missing
colons it looks alright and should work.

hope it helps
Johannes





-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to