|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
Multiple variables in "search engine"
Well, I'm trying to create a page that would have non-mysql database. It works somehow when there is only single variable, but when I want to use multiple variables, it goes badaboom. I have no idea what is proper way to create such thing.
For example, I have url items.php?foo=x. I can make it now display items where foo is x, but when I put items.php?foo=x&bar=y, it displays all items with foo as x and bar as y, when I want it to display only items with foo as x and bar as y. I know I could do it with using if-elseif-else, but there are multiple variables (11) so it would be preeeetty hard code to follow. :/ If it's of anyhelp, the database is located in a file with ; as separator. An item in it could be: Foo;Bar;1;0;3;0;0;0;1;0;0 Hopefully someone even has an idea what I'm talking about... |
|
#2
|
|||||
|
|||||
|
RE: Multiple variables in
Try this:
php Code:
If you have questions (Or if it doesn't work or whatever) ask me |
|
#3
|
|||
|
|||
|
RE: RE: Multiple variables in
|
|
#4
|
|||
|
|||
|
RE: Multiple variables in
've edit it so there is no more :p
|
![]() |
| Viewing: Codewalkers Forums > PHP Related > PHP Coding > Multiple variables in "search engine" |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|