![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
#3
| |||
| |||
|
|
Do you really need 17 authors fields? Would it be easier to have another author table then that would hold the author field and link back to your articles table? It might look like autID, articleID, authorID. Then if article1 had 12 authors, you would have twelve records. Just a thought. Let me know if you want some more examples. Thanks. Chris |
#4
| |||
| |||
|
|
I have spent the day developing a search/results/detail page set and am quite happy! The search page has three entry elements: Author, Title and Publication. Here is my SELECT statement from the results page: $query_rsResults = sprintf("SELECT * FROM articles WHERE ((articles.title LIKE '%%%s%%') AND (articles.author01 LIKE '%%%s%%' OR articles.author02 LIKE '%%%s%%' OR articles.author03 LIKE '%%%s%%' OR articles.author04 LIKE '%%%s%%' OR articles.author05 LIKE '%%%s%%' OR articles.author06 LIKE [...] |
|
One obvious problem.....I need the search to go through all 17 author columns and cannot figure out a wildcard code solution to eliminate all the repetitive text. |
#5
| |||
| |||
|
#6
| |||
| |||
|
#7
| |||
| |||
|
|
What Database and scripting language are you using? Thanks. Chris |
#8
| |||
| |||
|
|
any ideas for the second issue....still have it, even with new db structure.... |
![]() |
| Thread Tools | |
| Display Modes | |
| |