Jump to content

trying to consolidate several queries...


glennn.php

Recommended Posts

 

i'm going to end up running about 10 queries according to some previous queries; i knew better than to think what i tried below would work, but i'm hoping at least someone can see what i'm trying to accomplish (running a single query instead of running 10 seperate queries when the page is called)...

 

could someone see what i'm attempting and describe how and if this can even be done?

 


$query = mysql_query("SELECT * FROM rel_offering, rel_carnegie WHERE rel_offering.offering IN ($offerings), rel_carnegie.cc2001 IN ($carn_code_sql)");



while($row = mysql_fetch_array( $query )) {
echo $row['offering_text']."<br>";
echo $row['cc_description']."<br>";
}

... and the tables...


accreditations
administrators
characteristics
rel_affiliation
rel_calendar
rel_carnegie
rel_emphasis
rel_inst_type
rel_irs_status
rel_mpc
rel_offering
rel_sex
rel_states


 

thanks so much,

GN

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.