Go Back  HTML Forums - Free Webmaster Forums and Help Forums > WEBSITE DEVELOPMENT > Server Side Programming > PHP Programming
User Name:
Password:
 

Reply
Thread Tools   Display Modes
  View First Unread
 
Old 03-15-2007, 03:01 AM
  #1
beatboxxx
Novice (Level 1)
 
Join Date: Nov 2006
Posts: 8
iTrader: (0)
beatboxxx is an unknown quantity at this point
Post Creating a Search page that queries and shows results?

Hi. Im having a hard time getting this to work.
I have bought a service from a phonenumber supplier and they will provide me with a database. But i need to create a searchform that queries and shows the results on the same page. I have all the strings and such to make it but i need an example on how to make this page. Its got to be in either php or html.

I can not give you the url and such to the suppliers because it is classified. hehe
But if anyone could give me a little helping hand here i will be very thankfull.
beatboxxx is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 03-15-2007, 09:05 AM
  #2
zegron
Warrior (Level 8)
 
zegron's Avatar
 
Join Date: Feb 2007
Posts: 73
iTrader: (0)
zegron is an unknown quantity at this point
A phone number supplier? So you bought a bunch of people's phone numbers so you can call them up and bother them during dinner? I sure hope my number isn't on there...
__________________
One Take Media
zegron is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 03-16-2007, 02:22 AM
  #3
beatboxxx
Novice (Level 1)
 
Join Date: Nov 2006
Posts: 8
iTrader: (0)
beatboxxx is an unknown quantity at this point
ok. U obviosly didnt understand **** so why reply in the first place!
beatboxxx is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 03-16-2007, 02:31 AM
  #4
Pegasus
Mama Hen
 
Pegasus's Avatar
 
Join Date: Nov 2001
Location: 35º South of Santa Claus
Posts: 22,361
iTrader: (0)
Pegasus is a name known to allPegasus is a name known to allPegasus is a name known to allPegasus is a name known to allPegasus is a name known to allPegasus is a name known to all
Beatboxxx, there's no need to insult the members, especially with words that don't make it past the filter.

Zegron, if you had no more intention of replying to annoy, please, in future, don't reply.

Pegasus
__________________


Decaf is the root of all evil...
HTMLForums Awards 2008
Pegasus is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 03-16-2007, 02:45 AM
  #5
Vege
master of bloody obvious
 
Vege's Avatar
 
Join Date: Sep 2004
Location: Finland
Posts: 3,549
iTrader: (0)
Vege is just really niceVege is just really niceVege is just really niceVege is just really niceVege is just really nice
searchpage.

normal html form where action='' points into page you want the form to send the results. also i would suggest POST as method='POST'

results page
PHP Code:
<?php
database initialization 
(so u have connection)
check if magic_quotes is on
query database with the values you get from the form
They are named $_POST['name_of_inputname_in_form_page']

$query "SELECT * FROM table where name LIKE '%{$_POST['searchstring']}%'";

while/for 
loop the results out.

What part u have the most trouble with?

EDIT: If u want results for same page, you just point the form to the page it's in.
PHP Code:
<form action='currentpage.php' method='POST'>
<input type='text' value='' name='searchstring' />
<input type='submit' value='send' name='submit' />

<?php
if (isset($_POST['submit'])) {
database connection
query like before
while/for loop the results

}
?>
__________________
http://setala.info

Last edited by Vege : 03-16-2007 at 02:51 AM.
Vege is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote

Reply
KEEP TABS
SPONSORS
 
Boxedart



 
 


 
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
  
 
 
 



 
  POSTING RULES
 
 
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Thread Tools
Display Modes

Forum Jump

 

All times are GMT -5. The time now is 04:28 AM.

   

Mascot team created by Drawshop.com

Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.

Server Monitoring by ENIACmonitor 0.01
HTMLforums.com © Big Resources, Inc. Web Design by BoxedArt.com
vRewrite 1.5 beta SEOed URLs completed by Tech Help Forum and Chalo Na.