- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
4 Posted Topics
I think you have a few other problems and the query isn't going to scale well, however the code below should fix your array() problems. [CODE=php]<?php $terms = array(); for ($x = 1; $x < 9; $x++) { $searchTerm = "lf" . $x; if (isset($_GET[$searchTerm]) && $_GET[$searchTerm] != '') { …
Really you should use something like[CODE=php]if (isset($_SESSION['variable']))[/CODE] instead as that function will not be available in PHP 6. For now, you can go change your php.ini file. Look for error_reporting = E_ALL & E_STRICT or something like that. Remove the E_STRICT and you will not see those warnings anymore.
I think there is a much easier way. Before I go on, I'll read back to you what I think you want. You have a two column list. You have a new two column list. You'd like the first lists' price column to be updated if there is a matching …
Why not normalize the database so there are no http:// or https:// in your search field? Once that is done, do a [CODE=php]str_replace("http://","",$searchTerm) && str_replace("https://","",$searchTerm)[/CODE] on the user input. The above would then match. You could take it a step further and check for the existance of www. in front …
The End.
fwdean