js2 php mysql update, delete, insert 결과 행 개수 알기with javascript js 안녕하세요 여러분! 크리에이트이트 메이커 입니다 .!! 오늘은 php, mysql을 사용하는 개발자 분들에게 알려드릴 내용인데요 ~ 우리 php 로 mysql연동하면 select값은 다 나오지만, update, delete같은 그냥 수정하거나 추가하는 것에대해서는 잘 참고 하지 않잖아요~ 하지만 제품을 제작하다보면 몇개의 행이 update되고 delete됐는지 확인해야 할 때가 있는데요~ 그럴때 사용할 코드 알려드릴게요~ if($result = mysqli_query($conn,$sql)){ $result_array[] = $conn->affected_rows; echo json_encode($result_array); }else{ echo mysqli_error($conn); } 자 보시면 $conn은.. 2024. 1. 15. stripe api my doc javascript(js) with nodejs https://stripe.com/docs/checkout/quickstart Stripe-hosted page stripe trigger ▶️ [event] stripe.com This link is simple api code with nodejs ↑ in there app.post('/create-checkout-session', async (req, res) => { const session = await stripe.checkout.sessions.create({ line_items: [ { // Provide the exact Price ID (for example, pr_1234) of the product you want to sell price: '{{PRICE_ID}}', quantit.. 2023. 12. 17. 이전 1 다음