거래 웹 사이트를 구축하는 방법

거래 웹 사이트를 만드는 것은 처음 접근 할 때 위협적인 전망으로 보일 수 있습니다. 그러나 작업은 다른 유형의 웹 사이트를 만드는 것보다 훨씬 복잡하지 않습니다. PayPal 및 Google Checkout과 같이 보안 기능을 직접 코딩하지 않고도 사이트에서 사용할 수있는 결제 서비스가 있습니다. 이러한 시스템은 사용하기 쉽고 모든 보안 처리를 처리하므로 일반적으로 권장됩니다.

1 단계

거래 웹 사이트를위한 시각적 디자인을 만드십시오. 이를 위해 원하는 그래픽 디자인 도구를 사용할 수 있으며 복잡 할 필요가 없습니다. 사이트가 원하는 모습을 스케치하는 데 시간을 할애하면 나머지 개발 프로세스가 더 능률화되고 궁극적으로 실망스럽지 않으므로 할 가치가 있습니다. 메뉴, 이미지, 결제 관리 및 제품 목록을 포함하여 사이트에 필요한 모든 요소를 ​​디자인에 포함해야합니다.

2 단계

데이터 소스를 빌드하십시오. 일반적으로 거래 웹 사이트는 판매되는 제품에 따라 다르지만 데이터베이스 위에 구축됩니다. 비즈니스의 경우 전자 상거래 데이터베이스를 사용중인 다른 데이터베이스에 연결해야합니다. 처음부터 데이터베이스를 설정하는 경우 대부분의 웹 호스트는 MySQL을 무료로 제공하며, 많은 SQL 코드를 사용하지 않고도 데이터 소스를 생성 할 수있는 phpMyAdmin 인터페이스를 사용하여 MySQL을 관리 할 수 ​​있습니다.

3 단계

데이터베이스에 연결하고 결과 데이터를 사용하여 HTML을 작성하십시오. 자신의 데이터베이스를 만든 경우 웹 호스트가 제공하는 내용에 따라 서버 측에서 PHP 또는 ASP 스크립트를 사용하여 연결할 수 있습니다. 웹 사이트 인터페이스를 구성하는 HTML을 생성하기 위해 데이터베이스에 연결하고 SQL 쿼리를 실행합니다. 예를 들어, 데이터베이스에 판매중인 제품의 세부 정보가 포함되어있는 경우 서버 측 스크립트는 이러한 세부 정보를 클라이언트에 전송하고 다음 예제 PHP와 같이 HTML 내에 표시해야합니다.

mysql_connect("your_host","your_username","your_password");

mysql_select_db("your_database");

$your_data=mysql_query("select * from ProductTable");

while($data_row=mysql_fetch_array($your_data))

{ echo "".$data_row['columnName'].""; }

?>

Step 4

Build payment processing into your website HTML. Choose a payment service provider, and follow their guidelines for adding transactions to your site. You will generally have options, such as shopping carts and buttons. Customers will choose from the products on your pages, then be taken through to the payment service website to enter their payment details. Services such as PayPal also have automated code builders to create HTML, which you simply paste into your own pages. You can choose what data you want captured each time a payment is made, and can have an email address sent a message informing you of transactions. You can optionally also have the payment service send data to a server side script on your site, allowing you to update a database system accordingly.

Implement the visual design of your site using CSS code. Refer to your original design documents and write CSS to make the site look the way you want it to. Once your site is complete, test it in as many browsers as possible. As well as checking that the functionality works, this is a necessary step to ensure the visual appearance stays consistent across browsers.