I have a friend ,she specialized manufacture and sale folk decoration ,
I am constructing a website for her
this website include: online order system ;member manag system; release news ETC
I have writed out all the code,but I an fied with this code, want to improve
who can give me some advice ?
Do you mean something where you have a list of products in a database and when an user wants to order something it verfies it's instock and lets them order it?
I'm not sure how exactly I can help, except to give you a couple tips:
1) Verify the login status for EVERY page that requires elevated user status.
2) Don't use links for destructive actions.
3) Protect yourself against SQL query injection. Validate ALL user input, use addslashes( $string ) or mysql_real_escape_string( $string ) at the minimum.
Thanks a lot puckdropper
Your advice is very enlighten
Now I have one question
pls help me to solve the problem below is the code :
$now = date("Y-m-d");
$strsql="insert into xinwen(title,content,time) values('$title', '$content', '$now')";
mysql_query($strsql,$conn) or die ("error: ".mysql_error());
This error comes:
Warning: Cannot modify header information - headers already sent by (output started at D:\www\writenews.php:26) in D:\www\writenews.php on line 27
But when i delete "echo " alert('successful!')"; " ,It is no problem. why?
How to solve this problem？？
pls help me!
i want to have some code about upload images and stuff to databases
i write some code
when i test this code on my own computer,it is successful.
but when i upload this code to special PHP space it is unsuccessful
why? are you have the same functional code?
shaocpa, I see all you need is a site generator or store creator/builder. there are plenty of service providers around (including us). What the service would include, in general:
1. a web front (may and may not include domain name)
2. product pages
3. integrated payment gateways to a list of providers
4. shopping cart
5. back-office control panel which allow you to change product details and inventory level.
This is deffinately save you three months of work!