Jump to content

Cannot execute double queries...


aasmith26

Recommended Posts

Hello folks, trying to figure this out, it is not working.  I am trying to display data in two tables, sorted by status.

 

I am running two queries, and my results continue ($i++) til there are no more results for each query.  I am making sure to do mysql_close(); at the end of each query, however, it does not display data in the 2nd table.  Only the first, it seems like the server is only sending results for the first query.  It's really aggrivating, hahaha.

 

 

 

$query="SELECT * FROM help WHERE Status='Done.  See notes.'";  // Notice $queryA

$querya="SELECT * FROM help WHERE Status='PreDiagnosis' OR Status='Acknowledged'";  //Notice $queryB

 

What is the problem???

 

Thanks guys for your input.

Link to comment
Share on other sites

On top of what fenway said, having the status as actual text will slow things down.  If they are canned responses, why not use a numerical value stored in another table?  (create a "status" table with things like id:1 text: done. see notes ... id:2  text: prediagnosis.. etc)

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

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.   Restore formatting

  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.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.