Mark F Posted June 5, 2008 Posted June 5, 2008 Hello Everyone The problem I am having is that I wish to display both my users house and job on index.php Though when I put the users job query on the page, the users house stops showing. I have a feeling that is has something to do with the following, though I am unsure. <?php $housequery=1; $jobquery=1; include "globals.php"; $exp=(int)($ir['exp']/$ir['exp_needed']*100); I would highly appreciate it if somebody could help me with this! Quote
Tonka Posted June 6, 2008 Posted June 6, 2008 Re: Query Help for the house query just use, {$ir['hNAME']} you won't need $housequery=1; Quote
Mark F Posted June 6, 2008 Author Posted June 6, 2008 Re: Query Help It doesn't work without it though, or at least not for me. Quote
Floydian Posted June 7, 2008 Posted June 7, 2008 Re: Query Help If I remember correctly, the diff queries are in an if else block. That means using the two variables you have up there conflict with each other. You can only use one at a time. My suggestion: Use one, and write a query to get the data for the other. Quote
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.