mikelmao Posted June 24, 2008 Share Posted June 24, 2008 Hello, This is a easy to fix problem i guess, but i dono how to fix it.. i made a function page called func.php . i uncluded to index.php and Wana echo somthing in the titel.. but it wont work this is the script: <title><? include "func.php"; echo $i['titel']; ?></title> Its in <head> And this is the Function page script include "connect.php"; $i = mysql_query("SELECT * FROM rsconfig"); So i wana get the titel from rsconfig in my DB.. But instead it shows the query in my titel.. How do i get the titel out the db and not the query: include "connect.php"; $i = mysql_query("SELECT * FROM rsconfig"); Quote Link to comment Share on other sites More sharing options...
mikelmao Posted June 24, 2008 Author Share Posted June 24, 2008 anyone? Quote Link to comment Share on other sites More sharing options...
mikelmao Posted June 24, 2008 Author Share Posted June 24, 2008 ??????????? Â Quote Link to comment Share on other sites More sharing options...
fenway Posted June 24, 2008 Share Posted June 24, 2008 First, don't bump unless 24 hours have passed. Â Second, you're not ever retreiving any of the rows. Quote Link to comment Share on other sites More sharing options...
mikelmao Posted June 25, 2008 Author Share Posted June 25, 2008 what do meen? Â Quote Link to comment Share on other sites More sharing options...
blueman378 Posted June 25, 2008 Share Posted June 25, 2008 why is your include inside the title tag? Quote Link to comment Share on other sites More sharing options...
mikelmao Posted June 25, 2008 Author Share Posted June 25, 2008 Is it not allowed to be ther? Where should it be then Quote Link to comment Share on other sites More sharing options...
blueman378 Posted June 25, 2008 Share Posted June 25, 2008 na it jsut looks a bit funky thats all, but you need to assign the value to $i, not the query, try this  <title><? include "func.php"; while ($title = mysql_fetch_array($i)) { { echo $title['titel']; } ?></title> Quote Link to comment Share on other sites More sharing options...
blueman378 Posted June 25, 2008 Share Posted June 25, 2008 oh yeah i jsut noticed you are using short open tags, bad practise i suggest you start using <?php instead as it is more widely accepted Quote Link to comment Share on other sites More sharing options...
mikelmao Posted June 25, 2008 Author Share Posted June 25, 2008 still dont work Quote Link to comment Share on other sites More sharing options...
mikelmao Posted June 25, 2008 Author Share Posted June 25, 2008 omg i made a bigger problem.. Now The query is everywhere..! Quote Link to comment Share on other sites More sharing options...
mikelmao Posted June 25, 2008 Author Share Posted June 25, 2008 nevermind.. But i still have the titel problem does anyone know? how to fix Quote Link to comment Share on other sites More sharing options...
fenway Posted June 25, 2008 Share Posted June 25, 2008 nevermind.. But i still have the titel problem does anyone know? how to fix I don't see you ever retrieving the columns from the result set your obtained. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.