Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    PHP






SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





Advanced Search Template -- About Programming.


I know nothing about programming but I am building a website (written
with php) that allow people post some info.

Is there a site I can get some templates or php scripts for an advanced
search function?

The Advanced Search function shall able to search any posted info by a
postal code/zip code within certain kms and be able to search by map by
clicking to US/Canada map to get to state, then to cities than to
towns....




View Complete Forum Thread with Replies
Sponsored Links:

Related Messages:
Advanced Search
Im looking to do one of the more advanced searches where you have a form you can narrow the search by username, user type, date entered, etc. Everywhere I've looked all I can find is the basic searches. Can someone point me in the right direction or show me some code.

View Replies !   View Related
Programming A Search Engine
Is there a way to program a full-scale search engine completely in PHP/MySQL? I mean check out IceRocket.com. Do you guys think that engine is done in PHP and MySQL? How does the crawling work? The reason I chose that site is because it provides a decent set of results, but not as much as Google.

View Replies !   View Related
Advanced Search Replace
im developing a script which grabs remote html files and shows them on the local server, ive written some code which changes the path of image files to point to the files on the remote server, this code can be seen below: Code:

View Replies !   View Related
Advanced Search Function
I'm trying to write an advanced filter function. Sofar I have 5 parameters which could lead to 25 possible queries. Instead of having to write them all, how do people normally tackle this problem?

View Replies !   View Related
Search In A File (advanced)
1. What do I want to do? I wish to create a search <FORM> to search in the contents of a text file located somewhere on the server. I wish to be able to:

a) set a search criteria which is different from exact phrase
Example: Searching Blue monkey happy should find Happy blue monkey

b) set a search criteria with case INsensitive
Example: Searching HAPPY BlUe MonKeY should find Happy blue monkey

c) as the text file contains lines with a unique record on each; and on each line there are words separated by a TAB delimiter, I would like:

- if a part of the line in the file matches the search criteria, the WHOLE line has to be printed;

- results have to be printed in a <TABLE> with <TR> for every line match and <TD> for every word between the TAB delimiters in the file. Code:

View Replies !   View Related
Advanced Search Engine
I have a couple of sites built with different databases because all these sites are under different subject. And the databases have been built for a long time already. I want to make a global search engine so if you search for ie. "berry", it would display results from all databases that have the search word.

Right now, if people want to search for "berry", they would have to go to my A database to search for it. Then if they want to search for "berry" from my B database, they would have to go there to search. So it's very inconvenient. I know I could just incorporate all the databases together into one big database, but I don't want to do that.

View Replies !   View Related
Advanced Search With Relevance Using Php And Mysql
I am working on a classifieds site that allows users to search for ads using many options. For example in the rentals area the user can select how many bedrooms, bathrooms, if pets are allowed, etc. There are currently 9 fields that i am allowing
them to search on.

I already found a great class on this forum that will make the dynamic mysql select statment, but i was unable to find much info on relevance displaying the best matching result first and the second best second and so on. I found a couple of tutorials but they were talking about matching a single word and the only relevance was that they were listing results higher depending on which result has the search string the most times.

What i am trying to do is order relevance by having the top match be the one that matches closest to the 9 selections the user entered. So i would want any exact matches of all 9 fields at the top and then the list of matches would get less and less exact as you go farther down into the results.

My initial thought was to make more than one mysql select, having the first select match all the searched fields exactly, and then the next select would do the same thing except one of the fields would be changed to find all of that one field that are not equal to what the user entered. example: PHP Code:

View Replies !   View Related
Advanced Search - Listing Multiple Results
I created a seach function to search a database and retrieve the information based on the input. However only the first matching result is shown.

The code is working fine but i want to show every matching result, one after another. Therefore, for example, if the user types into "country" the word "USA" every event will be shown. I have included the code i have used so far. Code:

View Replies !   View Related
Advanced Search W/ Multi-Select Array
I'm working on a site that deals with a MySQL database of stores across the country. I'm implementing an 'advanced search' section, and I can't for the life of me figure out how to handle queries that are derived of variables coming from multi-select lists.

It seems like it would be an obvious thing, just going off the sheer ubiquity of similar search pages out there, but I just can't seem to come up with the logic behind it. Code:

View Replies !   View Related
Search Script - More Advanced To Account For Multiple Criteria Strings
I am wanting to search one of my databases, which I have sucessfully achieved using the code: PHP Code:

SELECT DISTINCT Plus.Desc, Cstr(Price) AS string_price FROM Plus WHERE Plus.Desc LIKE '%".$criteria."%'"

I need to make this script more advanced to account for multiple criteria strings. I.e. If the criteria is "Gloss Paint" I want the results to bring up all the products described with either of the two words in the criteria, so it may bring up the products "gloss 5L white" and also "matt paint 5L", whereas, at the moment with the script, only the products with both the two words will appear, i.e. "gloss paint 5L". which obviously limits the results to very few and is very ineficient.

View Replies !   View Related
Php Template System And Search Engines
I've been working on a new design for our website, and we came up with a php template system, which reads a content page from a folder "conent"(html files). as such: index.php?content=pagex

Now I was wondering if a searchengine would pick up a page from the pages folder, the viewer would only see the text because the design, menus etc are all being created by the index.php.

The above we do not want to happen! is there ny way to avoid such an incident?

View Replies !   View Related
Rolling CSS Table, As A Search Results Template.
I have the code below which i've managed to put together, only i would prefer Layers (CSS) within the rolling table...

This is so i can move the values around to different sections within the table (The idea is that the table would be rolling but the layers would remain in there relative position within the rolling results table). Code:

View Replies !   View Related
Call The Template And Replace The Fields In The Template With Some Sizzling Content.
Im looking to develop a Template System that i can use in websites for my clients.I have had a look at FastTemplate, PHPLIB, and PEAR. I have also written a Template System that is sort of a hybrid of all three but, i was wondering what everyone else's views or opinions are on what features should be included in a good Template System.

Obviously the templates will reside in another file and some PHP code will call the template and replace the fields in the template with some sizzling content.

View Replies !   View Related
Create A Template Where Two Php Pages Will Access The Same Template
i am new to templating system i want to create a template where two php pages will access the same template problem is the two php pages has different fields and putting them in one template is not comming.

View Replies !   View Related
Inserting A Template In A Template
I have a php page that loads a header like this PHP Code:

View Replies !   View Related
New To OO Programming
Ive been using PHP 4 for about 3.5 years now, and havnt messed with
objects and classes for whatever reason, however I know I need to start
using them. With someone who has no class/object programming
experience, php's manual is quite dull and leaves me scratching my
head. Is there a more indepth manual or tutortial somewhere that can
explain everything, and more importantly... I cant figure out why and
when an object/class would be used? Im also switching to PHP 5.

View Replies !   View Related
Programming
The site is currently not
running due to us emigrating, but during its last year we got traffic of
between 2000 - 2500 unique visitors per day. We are now about to re-launch
the site from Sweden and we need to purchase a script to run it.

Having looked at what is available on the net I have realised that we need a
custom built - or modified - script and I am now turning to you to ask what
it would cost to buy the script I need. It's just such a jungle out there
and most of the scripts have *something* I need but not all of it.

I estimate that the development time for programming will be around 10
man-hours and I simply can't afford the going rate for an established
programmer to do this.

What we need:

-A script that can handle multiple connections open simultaneously
- Multiple categories with independent subcategories.
- Fast and reliable search function with cross-referencing between the
categories.
- Preferably the script should be able to handle multiple languages
- Coded in PHP for a MySQL, but need to be adaptable for migration over to
SQL
- Adapted to the design of our site, I have knowledge of PHP in order to do
more simple adaptations myself but need it to be as clean as possible to
start with

We do not - and do not wish to -
charge for membership since we firmly believe that you should not have to
pay to get a chance to be happy. The site is completely run by private
means. Therefore we can not afford to pay a large amount of money for a
script. We can, in exchange for a moderately priced script, offer
advertising space on the site, and/or for a programmer about to establish
themselves, references.

View Replies !   View Related
Web Programming
I need professional advices on the code I wrote for a small website. I dont know much about web programming when I start so now it's quite a mess. There r many PHP professional here, if some one have time plz help.I want to work on PHP after graduation so i need some experience.

View Replies !   View Related
PHP Programming
Well PHP being almost my first language before English, i find it only natural that my latest purchase a HP IPAQ should be converted to working with PHP. Has anyone got an experiance of a Webserver and PHP installed on an IPAQ to allow PHP programming on the road, maybe even a nice text editor that does highlighting? i've looked around but haven't come up with anything "seriously" usable as yet.

View Replies !   View Related
Modular Programming?
I still have a difficult time seperating design from logic... I have tried to "move" code (that can be "moved") into functions; which I've heard are *much* faster than classes (can anyone confirm this?)

But, especially when querying a data, I find it hard to return result w/o including any design (html) aspect into php or the functions.

i.e.
function site_sidebar_show_cats() {

$sql="SELECT ...";
$result=mysql_db_query($db_name,$sql);
if (!$result || mysql_num_rows($result) < 1) {
$display_cats = ' <FONT COLOR="red">Error: no categories</FONT> '
return $display_cats;
} else {
while ($row = mysql_fetch_array($result)) {
$display_cats .= '<FONT COLOR="blue"><A HREF="page.php?". $row['categories_id'] .'/">'. $row['categories_name'] .'</A></FONT> '
}
return $display_cats;
}
}

This was just a quick scribble for demonstration. If I wanted to use this function (retrieve categories) from xml or even flash, I'd be in trouble. How can I truly seperate logic from design?

Also, I've heard of script where people have programmed them (modularly) where they could "plug-in" new features / components without any changes (or very few) to the original script. Where can one learn this kind of programming?

View Replies !   View Related
PHP And Network Programming...
I'm sort of like stucked here with some architecture that I need to come out with. Currently I'm planning to develop a system that will enable the manager to be notified and take action on a certain kind of transactions that I want to do.

First of all, I'm trying to connect the PHP socket to a server which is running at a manager's office. Well, let's consider that the IP for that office is a fixed ip.

My problem will be if the particular manager's computer is within a LAN itself, they would have their own ip by themself. I can't develop the program that will connect to the PC within the LAN because the program will not be able to find the server that is within the LAN itself.

anyone with any ideas on how to do this? it had been torturing me for the past few weeks, just hope that I can just walk out of this torture chamber in one piece.

View Replies !   View Related
Programming Utility?
I'm curious what program you guys use to write PHP in?

Im a windows user (I know, I know, but I really like to play games) and haven't really found a program that I like yet. The closest I've come to being happy was with CONtext, but that has poor indenting and wordwrap support.

View Replies !   View Related
PHP Socket Programming With SSL
Is there any good source that show how to do socket programming with setting up secure sockets in PHP? Most of the source (books, web sites) I found only talks about basic socket functionality.

View Replies !   View Related
Socket Programming
Can anyone direct me to good resources for PHP socket programming. I have found some examples, but have been unable to get them to work.

View Replies !   View Related
PHP Visual Programming Example
I have just put together a small visual programming example
that generate PHP code for our Designer. Feel free to try.

View Replies !   View Related
Programming For Bank
I've had a few years experience in web site design and server-side
programming and am fairly confident in my skills.
There is a local Credit Union wanting to add a few features to their
site (bill pay, transfer money between banks) and I am interested in
the job.

However, I've never worked for a bank before. Any suggestions about
how to win the job, and how to ensure my work is secure enough for this
application would be greatly appreciated. Also, will I have a
liability issue if something goes horribly wrong?

View Replies !   View Related
Programming And Classes
I want to automate my site, providing sports news and info. I cover pro, and high school sports, but need to allow for college, rec and youth sports as well.

I want to set this up as a database, or series of databases, with me also learning some PHP to tweak things as they go.

View Replies !   View Related
PHP4 Vs 5 Programming
Since PHP5 classes use the __constructor() method, and PHP4 still
requires the classname as constructor, is there an easy way to
incorporate both in my class definitions so the class is usable in both
versions?

I know php5 will look for an old style constructor if there is no
__constructor definition, but I am convinced this will be deprecated in
future versions...

View Replies !   View Related
Excel And PHP COM Programming.
I'm looking for info on Excel's COM interface so as to control it through
PHP5. I've been to the microsoft site and have been googling like crazy but
can't seem to come up with much. I did find a simple class on
phpclasses.org but was hoping to find a more complete function set. I have
used 'com_print_typeinfo()' but i'm not sure what i'm looking at in the
output.

View Replies !   View Related
Programming PHP 2/e == PHP5 Only?
I am trying to learn some codeignitor, which uses php4.

Programming PHP 2/e looks like a decent book, but I get the idea that
it focused on php5, and may not be very useful for PHP4.

Maybe I should see about buying an earlier edition of the book?

View Replies !   View Related
Programming Practices
Which are considered to be the best programming practices? for example i prefer to not store sessions into files (as done by default by php), but in a database as this gives me the possibility to use the same session on multiple servers, this is possible because of the session_set_save_handler() function! So which do you use (non-oop)?

To enlarge the topic a bit: which threads are all out there and how do you solve them (e.g.: cross site scripting)?

View Replies !   View Related
COM Programming For Peachtree
I am trying to code a module using COM objects from Peachtree Acccounting's SDK. I can get to other applications (Word, Excel, IE, etc.) using COM, but can't seem to instantiate Peachtree's objects, and all of Peachtree's examples are in VB and the like, and don't translate well (at least while I'm the translator). The following code blows up:

$modul = "PeachtreeAccounting.Application";
$peachy = new COM($modul);

with the following error:

Failed to create COM object `PeachtreeAccounting.Application': Invalid syntax

The following code does not blow up:

$modul = "PeachtreeAccounting.LoginSelector.1";
$peachy = new COM($modul);

although the object it instantiates does not seem to all there. The "PeachtreeAccounting.LoginSelector.1" was pulled from a registry search to see what my system knew about Peachtree objects.

View Replies !   View Related
Programming Languages
A versatile mongrel that absorbs everything around it. Messy but powerful. This is why you can safely predict that, good or bad, it will conquer the world as the the most popular choice for business (for high-level applications).

View Replies !   View Related
Programming Issue
Our webstore is about to launch. I am wanting to find a way for coupon codes to permanently attach to each customer who enters one, but we've been unsuccessful to this point. Not sure if it's something programming related or if it's a quirk w OS Commerce.

View Replies !   View Related
Programming With Modules
learning resources or simple examples on how to use modules while programming with php? Modules being different parts of the website, for example a module for news, polls, or whatever you might have. I'm trying to understand how to implement such methods, rather than just including files where you want it to be displayed. I guess the "proper" method would use OOP in some way or another.

View Replies !   View Related
Advanced Regex Help
having a few problems with a script im developing for www.cockneyizer.com

the script translates websites into cockney rhyming slang, ive got the translation bit working but grabbing images of the server isnt flawless, in addition, sometimes links dont get converted to link back to the cockneyizer translation url

heres the code, if you have any ideas of how to make it work better please

<?PHP
// remove cockneyizer translate url from $file
$file = str_replace("http://www.cockneyizer.com/translate/.php?file=", "",
$file);

if (!eregi("http://", $file)) {
echo "Please enter a valid URL (missing http://)";
}
else {
$fp = @fopen("$file","r");
if (!$fp) {
echo "Core Blimey, no such page mate";
}
else {

$input = implode("", file($file));

include('dictionary.inc.php');
while(list($text,$image) = each($replace)){
$input = str_replace(strtolower($text), strtolower($image),
strtolower($input));
}
$input = preg_replace("/name=movie
value=(["'])(([a-zA-Z0-9/.-\_^'^"])+)(["'])/", "name=movie
value=1$file/24", $input); //flash
$input =
preg_replace("/src=(["'])(([a-zA-Z0-9/.-\_^'^"])+)(["'])/",
"src=1$file/24", $input); //images
$input = str_replace("'//", "'/", $input);
$input =
preg_replace("/background=(["'])(([a-zA-Z0-9/.-\_^'^"])+)(["'])/",
"background=1$file/24", $input); // background images
$input = str_replace("'//", "'/", $input);
$input =
preg_replace("/([^w/])(www.[a-z0-9-]+.[a-z0-9-]+)/i","$1http://$2",
$input); //make sure there is an http:// on all URLs
$input =
preg_replace("/href=(["'])([w]+://[w-?&;#~=./@]+[w/])/i","href="
http://www.cockneyizer.com/translate.php?file=2", $input); //make all URLs
links
$input = str_replace("'//", "'/", $input);
echo $input;
}
}
?>

View Replies !   View Related
Advanced PHP Debugger
We 've installed ADP. But I have a problem. All generated trace file
are empty (only 1 byte). Any idea what the reason could be ?
Right/Permission issue ? I'm not sure cause the file is created without
any problems.

View Replies !   View Related
Advanced PHP Graphs
I have to create graphs which you can zoom into and have more
controls. I dont want to use a Java Applet and would love to use PHp
and any of its library. I guess such thing can be done with PHP and
Flash and/or Javascript etc. Please guide me.
A point to a tutorial or an example will be highly appreciated.

View Replies !   View Related
Advanced Php Counter
I am looking for a advanced php counter. I mean not to increase when I hit 'Refresh' button of the browser and NOT to use SQL database. All the PHP counters I found on the web use a text file that is modified (open, and increase value of the content) when the 'index.htm' is requested by browser (and of course if I request twice from the same browser, same machine it will increase).

View Replies !   View Related
Advanced OO Topic
I notice a strange behavior in PHP4 and wonder if anyone can explain it.

Essentially, when I extend a class from a built-in module, I can add and
access variables but can not access new functions I create within the
extended class.

This has only happened attempting to extend classes from ming, but I suspect
it may be a universal problem (?).

That is:

<?PHP
class foo {

}

class bar extends foo {
function bar() {
print "bar";
}
}

$bar = new bar();
$bar->bar(); //PRINTS "bar"
?>

Works as expected, however, in:

<?PHP

class foo extends SWFSprite {

var $x = 10;

function bar() {
print "bar";
}

}

?>

running:

<?PHP

$foo = new foo();
print $foo->x; //WORKS; PRINTS "10"
$foo->bar(); //RETURNS "Undefined Function" FATAL ERROR

?>

Can anyone explain this behavior? Will it be fixed in PHP5? Is it related to
the Zend engine? Any workarounds?

View Replies !   View Related
Advanced PHP Pagination
Is there anyone who could help me create an advanced pagination code? The basic:

1. Data to paginate will be coming from msyql database.
2. 10 or 20 items per page.
etc, etc...

The problem: Limit the number of page numbers to 5 when pages reach more than 5 pages.

Example: Total pages: 10

sample page listing output:

start of pagination
1.) << 1 2 3 4 5  >>

displayed when last page number is clicked (5) on start of pagination
2.) << 3 4 5 6 7 >>

View Replies !   View Related
Advanced Form
I don't know how it's called, but I want to ask how to make a form which able us to make bold, quote, link or change font color by using [].. like in this forum.

View Replies !   View Related
Advanced SQL Query
I have built a script that checks if another server is up or down. If the server is down it stores the timestamp in a MySQL database – but if the server is running nothing is stored. The reason why I don’t store the uptime is because the scripts runs every minute, so the database would fill up really fast so Iamm trying to avoid string the uptime. The problem is when I want to select the last downtime I want to count how many minutes the server was down. The database looks something like this:

Id – Date
01 - 2005-11-17 12:00:00
02 - 2005-11-17 12:01:00
03 - 2005-11-17 12:02:00
04 - 2005-11-17 12:03:00
05 - 2005-11-17 15:00:00
06 - 2005-11-17 15:01:00
07 - 2005-11-17 15:02:00
08 - 2005-11-17 15:03:00

Okay, according to the table the last downtime was November 11 @ 15:03 and then the server was down for 4 minutes.

View Replies !   View Related
Advanced Captchas
I know there are tutorials for making really simple captchas, but I think that most spambots today can probally crack them easily.

How can I make an advanced one like the ones rapidshare uses?

View Replies !   View Related
Advanced 'include'
See, I read somewhere about only having one template file so layout design is easy to change, which I loved the idea. But right away I thought I might have a problem somewhere, so I tried it out, and of course, I did.

What I'm doing is (mind you these tables and pages are just for testing):

I have a php file that lists all the songs i have in a table and links each song title to $PHP_SELF?id={$row['id']} which displays different information which works just fine by its self. Code:

View Replies !   View Related
Advanced Web Development
I created a new Google group for PHP + PostgreSQL advanced web development.

View Replies !   View Related
Advanced Order
Using PHP loops I have a screen print something like this:

1) Owners [1
1) Management [1
2)Manager [1
2)Supervisor [2
1) Programming [1

The table has a column called `tier` which corresponds to the #)'s, which are updated via the loop. Another column is `the_order` which is updated via select fields and it corresponds to the [#'s. Does anyone know some way using group by or something of that nature with to have a select field print out the results in that order. PHP Code:

$query = "Query in question";
$result = mysql_query($query);
while ($row = mysql_fetch_array($result))
{
   echo "<option value="$row[id]">$row[name]</td>";
}

View Replies !   View Related
Advanced Graphing
I have a big fat database table full of records that include a date, a time and a value. The records look something like this:

7/7/2006 11:05 200
7/7/2006 11:10 300
7/8/2006 11:05 100
7/8/2006 11:10 50

How can I query this data and have it arranged as so: Code:

View Replies !   View Related
Advanced Arrays
i have been mucking around with my foreach loop for a while, but i need a way to generate tables, with php, just a table that i can put values into but depending on haow many values - $files - i need a square table Code:

View Replies !   View Related
Programming Tips And Tricks
I have been programming in PHP for a while now, every prgrammer comes
across little tips and tricks that work really well.

Usually these things are pretty simple, like using include_once instead
of include for certain files, or just the way you structure your files
(I personally keep all my methods in include files in an includes
directory, seperating news related ones into news.php or similar and
user related ones in a user.php file etc.). I also tend to have a
configuration file that can be included on each page for a few
important variables or pieces of code.

I just wondered what tips and tricks people have out there that they
think other people might benefit from.

View Replies !   View Related
Anyone With PHP-Nuke Programming Experience.
My question is about the language files and db. What I want to do is somehow keep a list of answers in a table, that correspond to the variable in the lang-english.php file. For instance the entry in the lang-english file would be:

define("_ANSWER001","Text for answer001.");

The entry in the db would be say: ANSWER001 which will be chosen randomly from the module.

My problem is the page displays exactly what the db has in the field. So instead of translating ANSWER001 into what the lang-english.php has, it just displays ANSWER001 on the page. I've tried playing with all the syntax and can't get it to work. Does anyone know if this is possible? I want to make the module easier for language translation if I can.

View Replies !   View Related
Who Is Programming PHP Extensions Under Windows?
I want to programm a DLL for PHP under Windows. I´m using VC6++ and PHP V4.3.10. I made everything discribed in an example. (bindlib_w32, win32build...etc). After compiling my DLL (with the switch /MT) the DLL ist startet with PHP but I get the Error, that my DLL ist compiled with thread-Syferty=0 and PHP with ..=1. Where is my fault?

View Replies !   View Related

Copyright © 2005-08 www.BigResource.com, All rights reserved