Not Solved Database queries.
#9
Not Solved
$query = $db->query("SELECT username from housing");
	while($result = $db->fetch_array($query))
		{
        $housingvar .= "Adress: " . $result["Adress"]. ;
        
    	}
		
		return $housingvar;


}

I'm using the variable $housingvar in the template but no return value. However this does seem to work if I use echo.
Reply


Messages In This Thread
Database queries. - by Freakout14 - 2017-05-01, 10:52 AM
RE: Database queries. - by .m. - 2017-05-01, 11:06 AM
RE: Database queries. - by Freakout14 - 2017-05-01, 11:12 AM
RE: Database queries. - by .m. - 2017-05-01, 11:31 AM
RE: Database queries. - by Freakout14 - 2017-05-01, 11:34 AM
RE: Database queries. - by .m. - 2017-05-01, 11:53 AM
RE: Database queries. - by Freakout14 - 2017-05-01, 12:02 PM
RE: Database queries. - by .m. - 2017-05-01, 12:41 PM
RE: Database queries. - by Freakout14 - 2017-05-01, 03:41 PM
RE: Database queries. - by broatcast - 2017-05-01, 04:13 PM
RE: Database queries. - by Freakout14 - 2017-05-01, 04:14 PM
RE: Database queries. - by broatcast - 2017-05-01, 06:08 PM
RE: Database queries. - by Freakout14 - 2017-05-01, 09:54 PM
RE: Database queries. - by .m. - 2017-05-02, 12:15 AM
RE: Database queries. - by Freakout14 - 2017-05-02, 12:27 AM
RE: Database queries. - by .m. - 2017-05-02, 01:03 AM
RE: Database queries. - by Freakout14 - 2017-05-02, 01:08 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)