Jump to content

Indexing a recordset


Recommended Posts

I know this is a simple answer, and maybe because i have been glued to the computer is the reason why i can't see it, so here is the problem:

$query_ldevices = "SELECT * FROM literary_devices_hold WHERE MAXIMID = ID";

-- I want to change 'ID' to $row_Recordset1['ID'] from a table called 'wisdom';

The purpose is that for the MAXIMID's in the literary_devices_hold table to only show information for each recordset in table ID, as long as the MAXIMID'S and ID's are identical.

Can anyone help?
Link to comment
Share on other sites

I'm not sure I understand exactly, but if I do, then try this bit of code.

If it doesn't give the result you're expecting, we may need some additional clarification as to what you're after.

$sql = "SELECT * FROM literary_devices_hold WHERE maximid = (SELECT max(id) FROM wisdom)";

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.

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.