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
https://forums.phpfreaks.com/topic/152489-cannot-execute-double-queries/
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)

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.