you shouldn't use include unless having your include path straight!
In this case a simple change from "include("conn.php3");" to
"include("./conn.php3");" should do the trick, but you MUST think about your
include_path, and set it to what you want, or just always include the full
path.
regards,
Steinn
"Martin" <martini@mailme.dk> wrote in message
news:10pcctsa8pudrnnean2ed6kvqoq8thlnnl@4ax.com...
> <?
> include("conn.php3");
> $query = mysql_query("SELECT * FROM navne ORDER BY $order");
>
> echo "<center>";
> echo "<table cellspacing=10 cellpading=10>";
> osv...
>
> Hvis jeg prøver dette... får jeg en fejl
> Det er oppe i include linjen der sker noget...!!
>
> Warning: Failed opening '
http://localhost/conn.php3' for inclusion
> (include_path='') in c:\apache\htdocs\dagbladet -
> localhost\index-names.php3 on line 38
>
> Warning: Supplied argument is not a valid MySQL result resource in
> c:\apache\htdocs\dagbladet - localhost\index-names.php3 on line 40
>
> Hvordan skal jeg ellers gøre det ?
>
> ------ INCLUDE FIL (conn.php3) ----------
> $conn = mysql_connect("localhost","root");
> mysql_select_db("db_names");
> --
>
> \ Bye for now Martin /
> /\
http://www.geocities.com/lsvdk/ /\
> >=)'> Email: martini@mailme.dk <'(=<
> \/ ICQ: 58847459 \/
> / \