Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

This contribution is not mature


limor01

Recommended Posts

Excelent idea that needs more work.

 

 

1. it has SQL injection risks.

you need to make sure you clean the data from the URL before you insert it into your database as a query.

 

like:

$mfo_auction_query = mysql_fetch_object(
tep_db_query('select auctions_starting_price, expires_date, overbid_amount from ' . 
TABLE_AUCTIONS_PRODUCTS . ' where products_id = ' . $_GET['products_id'] . ' and status'));

 

2. it has many bugs in implementation and design.

For instance, If you use a module to make some of the code why not use two modules to make product_info as clean as possible.

 

 

3. Timestamp is not saved in the bid, mistakes with table names, forgotten code parts.

fixed:

							
$sql_auction = "insert into ".TABLE_AUCTIONS_BIDS." (auctions_bids_id, auctions_id,customers_id,bid_price,bid_status, 
bid_date_added) values('','$auction_id','$customers_id','$bid_price', '', now())";

 

thanks

I hope to add some bug fixes to this post.

Link to comment
Share on other sites

Excelent idea that needs more work.

1. it has SQL injection risks.

you need to make sure you clean the data from the URL before you insert it into your database as a query.

 

like:

$mfo_auction_query = mysql_fetch_object(
tep_db_query('select auctions_starting_price, expires_date, overbid_amount from ' . 
TABLE_AUCTIONS_PRODUCTS . ' where products_id = ' . $_GET['products_id'] . ' and status'));

 

2. it has many bugs in implementation and design.

For instance, If you use a module to make some of the code why not use two modules to make product_info as clean as possible.

3. Timestamp is not saved in the bid, mistakes with table names, forgotten code parts.

fixed:

							
$sql_auction = "insert into ".TABLE_AUCTIONS_BIDS." (auctions_bids_id, auctions_id,customers_id,bid_price,bid_status, 
bid_date_added) values('','$auction_id','$customers_id','$bid_price', '', now())";

 

thanks

I hope to add some bug fixes to this post.

I wonder where this post belongs?

Link to comment
Share on other sites

Excelent idea that needs more work.

 

 

1. it has SQL injection risks.

you need to make sure you clean the data from the URL before you insert it into your database as a query.

 

like:

$mfo_auction_query = mysql_fetch_object(
tep_db_query('select auctions_starting_price, expires_date, overbid_amount from ' . 
TABLE_AUCTIONS_PRODUCTS . ' where products_id = ' . $_GET['products_id'] . ' and status'));

 

2. it has many bugs in implementation and design.

For instance, If you use a module to make some of the code why not use two modules to make product_info as clean as possible.

 

 

3. Timestamp is not saved in the bid, mistakes with table names, forgotten code parts.

fixed:

 
$sql_auction = "insert into ".TABLE_AUCTIONS_BIDS." (auctions_bids_id, auctions_id,customers_id,bid_price,bid_status, 
bid_date_added) values('','$auction_id','$customers_id','$bid_price', '', now())";

 

thanks

I hope to add some bug fixes to this post.

 

Hey Don,

What contribution are you making comments about?? :blink:

Bill Kellum

 

Sounds Good Productions

STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...