Jump to content

Query using Explode Function


tor_gg

Recommended Posts

Hiya

I have been given a table with 6 fields.

 

ID (index)

gRef (string of ID numbers  1, 14, 287    etc)

bRef (single ID number)

gName (Name relating to gRef)

bName (Name relating to bRef)

pages

 

I have to produce 2 views

1. (done) pass the ID variable to the page and return results where bRef = ID

 

2. pass the ID variable to the page and return results where each gRef = ID

 

I have seen examples on how to split up a string based on the comma's etc but none on how to apply this to the query. 

 

Cheers.

 

 

Link to comment
https://forums.phpfreaks.com/topic/37526-query-using-explode-function/
Share on other sites

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.