Code :
WDS Academy is a coding and web development blog dedicated to helping students, beginners, and professionals learn modern programming skills. Explore tutorials on PHP, MySQL, Python, HTML, CSS, JavaScript, Bootstrap, WordPress, AI tools, software development, project-based learning, interview preparation, and career guidance. Learn coding through practical examples, real-world projects, and step-by-step tutorials. Learn coding in Puranpur
Tuesday, July 1, 2025
Pure js Quantum Simulation | Qubit program
<button type="button" onclick="simulate()">Measure Qubit</button>
<div id="result">Ready.......</div>
<script>
function simulate(){
const rand = Math.random();
const result = rand < 0.5 ? '0' : '1';
document.getElementById("result").textContent="Measured :"+ result;
}
</script>
Sunday, June 29, 2025
Random Quotes Generator
Code:
<script>
function getq(){
const quotes = ["A","B","C","D","E","F"];
const colr= ["red","green","black","pink"];
var x = Math.floor(Math.random()*quotes.length);
document.getElementById("show").innerText = quotes[x];
document.getElementById("show").style.backgroundColor = colr[x];
document.getElementById("show").style.color = "white";
// alert(quotes[4]);
}
</script>
<div id="show"></div>
<input type="button" onclick="getq()" value="Generate Quotes">
See video - Go to video
Tuesday, June 24, 2025
Variable , Assign multiple variable in python with short program
See video - Go to video
Code :
#variable
x = 7
y = 5
z = 9
print(x+y+z)
#assign multiple variable
x,y,z = "hello","phpecho","please like"
print(x,y,z)
x,y,z = 3,5.9,9.1
print(x+y+z)
#variable swaping program
p = 9
q = 8
result = str(p)+str(q) #str show value as a text
print("The number was",result)
d = p # d is the temporary varibale
p = q
q = d
result = str(p)+str(q)
print("The reverse of number is", result)
Saturday, June 21, 2025
Wednesday, June 18, 2025
Thursday, May 29, 2025
Wednesday, May 28, 2025
Our Latest Products
Boutique Billing Software
ERP
Contact - https://websitedevelopmentservices.in/contact
Call us - +91-7080234447
Tuesday, April 22, 2025
Thursday, April 17, 2025
API using Php | How to design API using php (Mysql Addon)
index.php
<?php
$url = "your url";
$web = curl_init();
curl_setopt($web,CURLOPT_URL,$url);
curl_setopt($web,CURLOPT_RETURNTRANSFER,true);
$final = curl_exec($web);
curl_close($web);
$final = json_decode($final,true);
?>
<table border="1">
<tr>
<td>Id</td>
<td>Username</td>
<td>Password</td>
<td>Status</td>
<td>Role</td>
</tr>
<?php
foreach($final['data'] as $val){
echo "<tr>";
echo "<td>".$val['id']."</td>";
echo "<td>".$val['username']."</td>";
echo "<td>".$val['password']."</td>";
echo "<td>".$val['status']."</td>";
echo "<td>".$val['role']."</td>";
echo "</tr>";
}
?>
</table>
getdata.php
<?php
$connect= mysqli_connect("localhost","USERNAME","PASSWORD","DATABASE NAME");
header('Content-Type:application/json');
$sql = mysqli_query($connect,"select * from TABLE NAME");
while($result = mysqli_fetch_assoc($sql)){
$mydata[] = $result;
}
echo json_encode(['data'=>$mydata]);
?>
Subscribe to:
Posts (Atom)
Professional Trigonometric Calculator using HTML, CSS, and JavaScript.
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport...
-
Video Link - Go to video Full Code - <style> .popup-overlay { display : none ; position : fixed ; top ...
-
Full Code: Demo : <!DOCTYPE html > <html lang = "en" > <head> <meta charset = "UTF-8" > ...








