Categories
Mastering Development

Insert razorpay payment details like paymentid, status(success or failed)

** I am trying to insert status(success or failed) in php $cardholdername=$_POST[‘card_holder_name_id’]; $id=$_POST[‘merchant_amount’]; $orderid=$_POST[‘razorpay_payment_id’]; $email=$_POST[’email’]; $phone=$_POST[‘phone’]; $rzp_status = $_POST[‘status’]; $sql = "INSERT INTO payment_detail (name,amount,email,contact,payment_Id,status) VALUES (‘$cardholdername’,’$id’,’$email’,’$phone’,’$orderid’,’$rzp_status’)"; $result=mysqli_query($conn,$sql);

Categories
Mastering Development

logout function not working properly.It works after clicking 3 to 4 times.Initially it just reloads the page but does not logout

i created a angular 2 and spring security application. After logging in ,when i try to logout it does not logout. After trying 3-4 times it logs out. Even the "OPTIONS" pre flight call does not appear in network tab. The login part works perfectly. Let me know if any other code part is required. […]

Categories
Mastering Development

how i create dynamic url so i can refer the dynamic page to another page by its id so the data is display by its id in php

$query="SELECT `title`,`subtitle`,`contact`,`images` FROM `pharma` order by id ASC"; $queryfire=mysqli_query($conn,$query); $arr=mysqli_fetch_array($queryfire); $num=mysqli_num_rows($queryfire); if($num>0) { while($product=mysqli_fetch_array($queryfire)) { ?> <div class="col-12 col-md-6 col-lg-3"> <form action="doctorprofile.php" method="post" enctype="multipart/form-data"> <div class="card p-2 py-3 text-center"> <div class="img mb-2"> <img src="images/<?php echo $product[‘images’];?>" width="70px" height="70px" class="rounded-circle"> </div> <h5 class="mb-0"><?php echo $product[‘title’];?></h5> <small>Neurosurgeon</small> <div class="ratings mt-2"> <i class="fa fa-star"></i> <i class="fa fa-star"></i> <i […]

Categories
Mastering Development System & Network

Bind9 nsupdate update-policy rule to grant _acme-challenge.**.domain.tld (all additional subdomains)

Issue I’m using letsencrypt certbot’s DNS-01 challenge, but it won’t issue certificates more than one subdomain level deep. named.conf # grep -A 3 ^key /etc/bind/named.conf.local key "certbot." { algorithm hmac-sha512; secret "[REDACTED]"; }; # grep -A 2 example.tld /etc/bind/named.conf.local zone "example.tld" { type master; file "/var/cache/bind/fdb.example.tld.signed"; allow-transfer { pub-ns-acl; }; update-policy { grant certbot. name […]

Categories
Android User Help

Import SMS/MMS messages and Call log backup to Fresh LineageOS

I switch from Google Android to LineageOS and prepare all my data to be ready for the switch. Everything is on Nextcloud so, Contact, Photos, etc are already out of my device. I want to backup SMS/MMS messages and Call log. I can backup them with Samsung Switch, but is there a way to import […]

Categories
Mastering Development System & Network

Postfix+Dovecot – Not receiving mail on one domain [closed]

Firsts things first, I am well aware than the "Postfix can’t receive non-local mails" have been addressed dozens of times here. My issue however is more specific – only occuring on one of my domains – and I was unable to find any relevant help here or on Google (everything always points to the single-domain […]

Categories
Database Development

How to I update a table conditionally to fields in another table?

For the sake of clarity, I’m re-writing this to (hopefully) make more sense. My original question was how do I update a field based on the field in another table. Full disclosure: I’m at that point where my knowledge of sql makes me more dangerous than useful. That said, I’m a fast learner and I […]

Categories
Mastering Development

Undefined is not an Object (evaluating ‘props.contacts.reduce’) – React Native

I’m learning React Native and trying to run this app which I learnt, but for me, an error is thrown like this.Undefined is not an Object (evaluating ‘props.contacts.reduce’) This is my progam that the error is pointing to : import React from ‘react’ import {SectionList, Text} from ‘react-native’ import PropTypes from ‘prop-types’ import Row from […]

Categories
Linux Mastering Development

Thunderbird: move Quick Filter Toolbar to main panel

When I open the “customize” menu in Thunderbird, I can add or remove the items from the toolbar. This way, I can reorder the buttons “write”, “reply”, “reply all”, or remove them altogether. The Quick Filter Toolbar cannot be moved like this. There used to be an addon called quickfiltertoolbar, which made it possible to […]

Categories
Mastering Development

Dropdown list insert ID instead of Name to mysql database in PHP

I have am an issue with my application where I have my drop down lists (for Departments and Users) while selecting department the users of related department appears in uesr dropdown list which is working perfectly fine except one issue, it inserts ID into my database instead of department name and user name. Here is […]