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)

Wednesday, May 28, 2025

Our Latest Products

            


                                                             Boutique Billing Software




                                                                               ERP


Contact - https://websitedevelopmentservices.in/contact

Call us - +91-7080234447

Tuesday, April 22, 2025

Coming Soon.

 



                                                        Go to our Channel - Youtube

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]);
?>

Monday, April 14, 2025

cURL in php

 



<?php


$web = curl_init();

curl_setopt($web,CURLOPT_URL,"Your URL");

curl_exec($web);

curl_close($web);


?>

Pure js Quantum Simulation | Qubit program

  Code :  <button type = "button" onclick = " simulate ()" > Measure Qubit </button> <div id = "r...