473,386 Members | 1,752 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

complete newby who is keen to make a search page

Hi Gurus

I am keen to make a search page on a website, but I have absolutely zero
experience with PHP. I am going to hire an expert, but I thought that it
may pay to try it a bit first myself (I do want to learn how to do it).

What I have is a search page (HTML) and an access database. Now, can
someone give me some clues or links on where to start.

I prefer not to install the whole PHP thing on my own computer, but just to
try it straight on the server (if this is possible).

TIA
- Nicolaas
Jul 17 '05 #1
7 2169
WindAndWaves wrote:
Hi Gurus

I am keen to make a search page on a website, but I have absolutely zero
experience with PHP. I am going to hire an expert, but I thought that it
may pay to try it a bit first myself (I do want to learn how to do it).

What I have is a search page (HTML) and an access database. Now, can
someone give me some clues or links on where to start.

I prefer not to install the whole PHP thing on my own computer, but just
to try it straight on the server (if this is possible).

TIA
- Nicolaas


Hi Nicolaas,

What do you exactly mean by searching?
Do you want you visitors to be able to search your own website?
If that is the case, you might want to use google for that. they offer this
service for free.

If you want to do it yourself, good for you! It is fun, but if this your
first project with PHP....

If you are new to:
- databases (setup and querying)
- clientside/serverside basics
- HTML
- PHP (or programming in general)

If you are new to those (especially programming in general), honestly, take
at least a few months. Or years.

But programming is great fun, I am addicted to it. :P

Regards,
Erwin Moller
Jul 17 '05 #2

"Erwin Moller"
<si******************************************@spam yourself.com> wrote in
message news:41***********************@news.xs4all.nl...

Thank you for your reply

[....knip knip .....]
What do you exactly mean by searching? Sorry, yes, I should clarify. What I mean is that I have a list of lets say
100 items with a bunch of characteristics (e.g. colour, number of holes,
size, etc..), now I want the user to be able to search these items using a
search pages (e.g. by entering the colour, the number of holes required,
etc...). Basically, the search would work like this:

1. user enters search criteria
2. server (PHP?) creates SQL (e.g. select * from table where colour = red)
3. server (PHP?) creates new HTML file with items that were returned from
the SQL using a particular field in the table that contains the HTML for
each item to be returned

If you are new to:
- databases (setup and querying)
I have years of experience with MS access
- clientside/serverside basics
true newbie
- HTML
I have enough experience to make anything work
- PHP (or programming in general)
this is where the newbie thing definitely comes in.

If you are new to those (especially programming in general), honestly, take at least a few months. Or years.

But programming is great fun, I am addicted to it. :P

Regards,
Erwin Moller


Basically, I would like most of the data to be prepared in the Access
database (I can do that easily) so that it is as easy as possible to make
the PHP (or server side script for that matter).

Hope this makes more sense now
Jul 17 '05 #3
WindAndWaves wrote:

<snip, or knip for Dutchies. :P .. >
What do you exactly mean by searching? Sorry, yes, I should clarify. What I mean is that I have a list of lets
say 100 items with a bunch of characteristics (e.g. colour, number of
holes, size, etc..), now I want the user to be able to search these items
using a search pages (e.g. by entering the colour, the number of holes
required,
etc...). Basically, the search would work like this:

1. user enters search criteria
2. server (PHP?) creates SQL (e.g. select * from table where colour = red)
3. server (PHP?) creates new HTML file with items that were returned from
the SQL using a particular field in the table that contains the HTML for
each item to be returned


Ok, that is relatively easy.

If you are new to:
- databases (setup and querying)
I have years of experience with MS access


Good.
That means the SQL-part will be a piece of cake for you.
- clientside/serverside basics
true newbie


Ok.
The most important things about client/server-basics to learn for your
application are:
- Forms (HTML)
- Recieve the form-info posted by a HTML-form from a client in your PHP
script.
- Sessions. (Very handy, but maybe not 100% needed for the search. But
believe me, they make your life easier)

- HTML
I have enough experience to make anything work


Good.
Also Forms??
radiobuttons, textfields, dropdowns?
You will need those for the search.

- PHP (or programming in general)
this is where the newbie thing definitely comes in.


Ok, and this is where this newsgroup will try to motivate you. :-)

Seriously, PHP is the best choice of all serverside languages these days, in
my very humble opinion.

I did my share of serverside languages: Perl/VB-script-ASP/and a lot of
Java/JSP/servlets. Even did some C serverside.
They all have their good and bad points.

Let me give you a very quick overview of some serverside languages.
Don't worry, I will conclude PHP is the best choice for you now. :-)

To name a few (very personal, next person might have different ideas)

Perl: too much shell-oriented for my taste

VB-Script: completely counterintuitive. Childish constructs like If .. Then
... Else .. End If instead of {}. Case insensitive. I do a lot VB, but don't
like it.

Java: Great language. Beautifull. Really. But for everyday simple use too
much overhead. You also need to learn a lot about environmental stuff
before the first thing works, like: web.xml, deployers, container it runs
in, contexts, etc.

C? Who wants to write CGI in C nowadays? Too much a programminglanguage, not
really oriented for the web. Great libraries though..

From my experience: PHP is the easiest, most intuitive, and clean language
for basic serverside stuff.
(If things get really complicated I prefer Java/JSP/Servlets)

So hang on, make some time, and get a really good PHP starters-book in.
(O'Reilly prints greats stuff)

If you are Dutch (you said knip knip instead of snip), and can visit
Rotterdam, where I work (own company), you are welcome to drop in and just
start studying. I am happy to get you going on PHP and point you to the
right resources.
(Since I don't publish my emailadres anymore in newsgroups, you'll have to
give yours if you want to get in touch.)


If you are new to those (especially programming in general), honestly,

take
at least a few months. Or years.

But programming is great fun, I am addicted to it. :P

Regards,
Erwin Moller


Basically, I would like most of the data to be prepared in the Access
database (I can do that easily) so that it is as easy as possible to make
the PHP (or server side script for that matter).

Hope this makes more sense now


Yes, you do now. :-)

In a nutshell: what you need to do is:
make a decision how you want your database to be searched.

So decide to order.
First color?
Then the size?
Then the number of holes?

Or maybe you want a page with all attributes summed up and people can make
their own pick?

Next you try to decide WHAT should be shown on which page.
eg: if you decide that the visitor first must pick a color, your next page
should display ONLY results for that picked color.
In that way you get a rough idea what each PHP script should produce, based
on the data fed to it.

After that you start thinking about the SQL you need.

I don't think ACCESS is a great choice for a database, but PHP can easily
connect to it (via ODBC). Maybe there is a native API out there too, I am
unsure. I use Postgresql as my first choice for a database. Another very
popular database these days is of course MySQL. (But MySQL sucked when I
started using databases, so I picked Postgresql. Nowadays MySQL doesn't
suck anymore and is a great choice in combination with PHP.)

What you have to learn in PHP, beside the basics, is how to query a database
and display the result in HTML.
It is not complicated, but if you are new to programming in general, it will
take some time to get a good assured feeling you are doing things right.

Jeeez, I talk too much.
Got to get back to work!

Good luck.
And.... go PHP. Everybody I know that started with it, loves it.
Really.

Good luck.

Regards,
Erwin Moller
Jul 17 '05 #4
"WindAndWaves" <ac****@ngaru.com> wrote in message news:<kB*******************@news.xtra.co.nz>...
Hi Gurus

I am keen to make a search page on a website, but I have absolutely zero
experience with PHP. I am going to hire an expert, but I thought that it
may pay to try it a bit first myself (I do want to learn how to do it).

What I have is a search page (HTML) and an access database. Now, can
someone give me some clues or links on where to start.

I prefer not to install the whole PHP thing on my own computer, but just to
try it straight on the server (if this is possible).


PHP has to be on the -web- server. It helps if it's on the same computer
that the database is on, in subtle ways, too.
Jul 17 '05 #5
"WindAndWaves" <ac****@ngaru.com> wrote in message news:<kB*******************@news.xtra.co.nz>...
Hi Gurus

I am keen to make a search page on a website, but I have absolutely zero
experience with PHP. I am going to hire an expert, but I thought that it
may pay to try it a bit first myself (I do want to learn how to do it).

What I have is a search page (HTML) and an access database. Now, can
someone give me some clues or links on where to start.
Hmmm... Probably you should learn PHP first or hire a programmer;
and in any case I would suggest you to hire a programmer.
I prefer not to install the whole PHP thing on my own computer, but just to
try it straight on the server (if this is possible).


That is like fishing without net. But, it is quite possible if the
server is with php.

--
<?php echo 'Just another PHP saint'; ?>
Email: rrjanbiah-at-Y!com Blog: http://rajeshanbiah.blogspot.com/
Jul 17 '05 #6

"Erwin Moller"
<si******************************************@spam yourself.com> wrote in
message news:41***********************@news.xs4all.nl...
WindAndWaves wrote:

<snip, or knip for Dutchies. :P .. >
What do you exactly mean by searching? Sorry, yes, I should clarify. What I mean is that I have a list of lets
say 100 items with a bunch of characteristics (e.g. colour, number of
holes, size, etc..), now I want the user to be able to search these items using a search pages (e.g. by entering the colour, the number of holes
required,
etc...). Basically, the search would work like this:

1. user enters search criteria
2. server (PHP?) creates SQL (e.g. select * from table where colour = red) 3. server (PHP?) creates new HTML file with items that were returned from the SQL using a particular field in the table that contains the HTML for
each item to be returned


Ok, that is relatively easy.

If you are new to:
- databases (setup and querying)


I have years of experience with MS access


Good.
That means the SQL-part will be a piece of cake for you.


Do you know if the SQL syntax is the same?
[...snip ....]
Good.
Also Forms??
radiobuttons, textfields, dropdowns?
You will need those for the search.
piece of cake - i have already setup the search form

- PHP (or programming in general)
this is where the newbie thing definitely comes in.


Ok, and this is where this newsgroup will try to motivate you. :-)

Seriously, PHP is the best choice of all serverside languages these days,

in my very humble opinion.

I did my share of serverside languages: Perl/VB-script-ASP/and a lot of
Java/JSP/servlets. Even did some C serverside.
They all have their good and bad points.

Let me give you a very quick overview of some serverside languages.
Don't worry, I will conclude PHP is the best choice for you now. :-)
GREAT

To name a few (very personal, next person might have different ideas)

Perl: too much shell-oriented for my taste

VB-Script: completely counterintuitive. Childish constructs like If .. Then .. Else .. End If instead of {}. Case insensitive. I do a lot VB, but don't like it.
What about .net and also, is it a good or a bad thing to be case sensitive?
I think this is all about what you are used to.

Java: Great language. Beautifull. Really. But for everyday simple use too
much overhead. You also need to learn a lot about environmental stuff
before the first thing works, like: web.xml, deployers, container it runs
in, contexts, etc.

C? Who wants to write CGI in C nowadays? Too much a programminglanguage, not really oriented for the web. Great libraries though..

From my experience: PHP is the easiest, most intuitive, and clean language
for basic serverside stuff.
(If things get really complicated I prefer Java/JSP/Servlets)

So hang on, make some time, and get a really good PHP starters-book in.
(O'Reilly prints greats stuff)

If you are Dutch (you said knip knip instead of snip), and can visit
Rotterdam, where I work (own company), you are welcome to drop in and just
start studying. I am happy to get you going on PHP and point you to the
right resources.
(Since I don't publish my emailadres anymore in newsgroups, you'll have to
give yours if you want to get in touch.)
I am Dutch, but unfortunately live in New Zealand.... Thank you for the
invite though. Do you need any colleagues? I have a mate who is looking
for work in the Netherlands. He is very keen to learn and he has a comp
degree from Groningen - lol.

If you are new to those (especially programming in general), honestly, take
at least a few months. Or years.

But programming is great fun, I am addicted to it. :P

Regards,
Erwin Moller


Basically, I would like most of the data to be prepared in the Access
database (I can do that easily) so that it is as easy as possible to make the PHP (or server side script for that matter).

Hope this makes more sense now


Yes, you do now. :-)

In a nutshell: what you need to do is:
make a decision how you want your database to be searched.

So decide to order.
First color?
Then the size?
Then the number of holes?

Or maybe you want a page with all attributes summed up and people can make
their own pick?


Yes, I have one search page with all characteristics
Next you try to decide WHAT should be shown on which page.
eg: if you decide that the visitor first must pick a color, your next page
should display ONLY results for that picked color.
In that way you get a rough idea what each PHP script should produce, based on the data fed to it.

After that you start thinking about the SQL you need.

I don't think ACCESS is a great choice for a database, but PHP can easily
connect to it (via ODBC). Maybe there is a native API out there too, I am
unsure. I use Postgresql as my first choice for a database. Another very
popular database these days is of course MySQL. (But MySQL sucked when I
started using databases, so I picked Postgresql. Nowadays MySQL doesn't
suck anymore and is a great choice in combination with PHP.)
I will change to MySQL
What you have to learn in PHP, beside the basics, is how to query a database and display the result in HTML.
It is not complicated, but if you are new to programming in general, it will take some time to get a good assured feeling you are doing things right.

Jeeez, I talk too much.
Got to get back to work!

Good luck.
And.... go PHP. Everybody I know that started with it, loves it.
Really.

Good luck.

Regards,
Erwin Moller

Dear Erwin,

Thank you for your in-depth reply. I am stoked. I will do more research on
the topic. Your in-depth description gave me a really good idea on what is
involved and it does not seem to be so daunting any longer. thank you once
more for taking the time to reply to my post.
Jul 17 '05 #7
WindAndWaves wrote:

<snip>
>
> I have years of experience with MS access
Good.
That means the SQL-part will be a piece of cake for you.


Do you know if the SQL syntax is the same?


If you pick MySQL, you will not stumble on any difficulties you cannot
handle.
Take some time though to find out how MSAccess's autonumber works in MySQL.
Be sure you can get the lastest autonumber. (Or use MAX(bla) if you think
you can get away with that. :-))
Things like that.

This will be the easy part for you. :-)



[...snip ....]
Good.
Also Forms??
radiobuttons, textfields, dropdowns?
You will need those for the search.
piece of cake - i have already setup the search form


Good.

Now you'll have to learn how to replace values in the form with dynamically
generated values (from the database).
At least you don't have to focus on the forms themselfs.

<snip>

VB-Script: completely counterintuitive. Childish constructs like If ..

Then
.. Else .. End If instead of {}. Case insensitive. I do a lot VB, but

don't
like it.


What about .net and also, is it a good or a bad thing to be case
sensitive? I think this is all about what you are used to.


I didn't do any .net.
From what I heard it is a complete rip-off of Java's J2EE.
But that is ok.
Better stolen right than invented wrong. :-)

And you are right of course: It is just what you are used to.
The funny thing is I learned programming with Basic, some 20 years ago, and
now I cannot stand the language anymore. SO I was used to If Then Else, but
now I think {} makes a lot better readable code.

But you are right: It is a matter of taste.
<snip>
If you are Dutch (you said knip knip instead of snip), and can visit
Rotterdam, where I work (own company), you are welcome to drop in and
just start studying. I am happy to get you going on PHP and point you to
the right resources.
(Since I don't publish my emailadres anymore in newsgroups, you'll have
to give yours if you want to get in touch.)


I am Dutch, but unfortunately live in New Zealand.... Thank you for the
invite though. Do you need any colleagues? I have a mate who is looking
for work in the Netherlands. He is very keen to learn and he has a comp
degree from Groningen - lol.


No thanks, I am not looking for personel.
Actually, I used to have a lot of them, but I am not the manager kind of
guy. So Now I don't have any personel anymore, and want to keep it like
that. :-)
<snip>

I don't think ACCESS is a great choice for a database, but PHP can easily
connect to it (via ODBC). Maybe there is a native API out there too, I am
unsure. I use Postgresql as my first choice for a database. Another very
popular database these days is of course MySQL. (But MySQL sucked when I
started using databases, so I picked Postgresql. Nowadays MySQL doesn't
suck anymore and is a great choice in combination with PHP.)


I will change to MySQL


Good choice. It runs on both W$ and *nix.

Dear Erwin,

Thank you for your in-depth reply. I am stoked. I will do more research
on
the topic. Your in-depth description gave me a really good idea on what
is
involved and it does not seem to be so daunting any longer. thank you
once more for taking the time to reply to my post.


You are very welcome.

I wish you the best of luck studying PHP.
Just come back to this NG if you are hitting some problems.

Also be sure to have www.php.net online all the time. It has lots of
examplecode and other thing to get you going.

Good luck.

Regards,
Erwin Moller
Jul 17 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

31
by: Bruce W...1 | last post by:
This is a best practices question. For a website where PHP is used, does it make sense to have both .htm and .php files? In other words, for pages that have no active content there's no point...
8
by: WindAndWaves | last post by:
Hi Gurus I am a newbie.... and I was wondering if it is possible to maximise a screen in javascript. right now, I use this code: A HREF="heritage.html" onClick="msgWindow=window.open...
10
by: Fred Nelson | last post by:
Hi: I have programmed in VB.NET for about a year and I'm in the process of learing C#. I'm really stuck on this question - and I know it's a "newby" question: In VB.NET I have several...
4
by: Benny | last post by:
Hi, We are planning to improve the present search (Product DB search). Is there any way on ASP script to make an auto complete text box, loaded with the product names (like in google suggest). I...
2
by: Fred Nelson | last post by:
Hi: I'm working on a VS2005 web application and I have what is probabably a "newby" question. In VS2003 I could drag a textbox/button/etc on to a form and position it with the mouse. I...
6
by: Sam Carleton | last post by:
Ok, over the years I have read about doing web programing and I have done some real basic stuff. Now I am digging into some real ASP.Net 2.0 and am totally lost some things. I have a master...
6
by: Darren | last post by:
I am attempting to write a website using Dreamweaver 8, I have a main page that contains some xml fields - a list of events. I converted my formated index.html page to index.xsl and attached the...
17
by: henry | last post by:
Folks Here's a skeleton, generic HTML page, call it "index.php". You'll see a bit of php code in the middle: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.