Database Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesDatabase Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
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  
Old June 11th, 2003, 07:30 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
Simple yet complex for the begginner

hello.
Im Just a begginner using php,I have a table called product with following tables:
Product id(auto increment)
Product name, description(normal textfields)
and product section
(combobox) How will I enter data from a form to fill these 'mysql'tables.
After which I need to search the Product name table for whatever name that will be entered into another form called the search form.
Please help. Very Lost. I have attempted it but got nowhere. thank you.

Reply With Quote
  #2  
Old June 16th, 2003, 08:53 AM
Jester Jester is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: England
Posts: 271 Jester User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: Simple yet complex for the begginner

Okay,

I really recommend getting a copy of the PHP manual - this will give some examples of what you need:

Windows help file format:
http://www.angelfire.com/home/andryxa/
HTML version:
http://www.php.net/download-docs.php

But it also seems that you need a mySQL manual as well:
http://www.mysql.com/documentation/
From here you can get html versions or windows help file versions.

There's some really good begginer tutorials on this site but if you want quick answers then here you go:
INSERT: http://www.webdevelopersnotes.com/tutorials/sql/8.php3
SELECT: http://www.webdevelopersnotes.com/tutorials/sql/9.php3
SELECT: http://www.webdevelopersnotes.com/tutorials/sql/11.php3
(the 2nd select is ref: conditional selects - i.e. what your gonna use for the search routine!)

You can either manually enter data into your database using a mySQL administritive tool (I recommend phpMyAdmin). Alternativly you can create a php script that allows you to enter data in using a form (basically a html form with button, get the page to call itself on submit, pick up the POSTED (or GET) values using php script at the top of the script then use INSERT to get it into your tables - see the mySQL Manual)

There are many ways of doing searches. One of the basic ones is to have a form with a input boxes for each type of thing you want to search. Once submitted, pick up each variable and create an SQL statement (depending on search type you might want to add a '%' on the end of each variable and use 'LIKE' not '=' in the statement - this means a J in firstname would find John, James etc). Build your recordset and then output in html.

This may be way too much for you at the mo (that's not a critisim - we were all there at one point! ;) ) But have a look at the manuals, and then this message will make sense!

J

Reply With Quote
  #3  
Old June 16th, 2003, 04:52 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: Simple yet complex for the begginner

Thanks alot. Even Though I am a beginner in php I have programmed in VB,ASp Pascal and C and a little C++. So I have an idea of what you are saying.
Thanks alot for the helpful sites.

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesDatabase Help > Simple yet complex for the begginner


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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 On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway