Jump to content
MakeWebGames

Query Help


Mark F
 Share

Recommended Posts

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!

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...