q My Thoughts

Blogs and Learn with me

Sharing ideas, code, practical knowledge and learn with me

Sep 02, 2025
Terminal Base turbo mart

import psycopg2 import datetime import os   # Database connection def get_connection(): try: connection = psycopg2.connect( host="localhost", database="turbo_mart", user="postgres", password="Heyiknow777", …

Aug 27, 2025
PostGreSQL and Python

pip install psycopg2-binary import psycopg2 from psycopg2 import sql   connection = psycopg2.connect( host="localhost", database="test", user="postgres", password="Heyiknow777", port="5432" ) print("Connection …

Aug 05, 2025
Php Insert data

<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> </head> <body> <?php /* echo 20+20; echo "<br>"; …

Jul 29, 2025
Blub on and off

<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> </head> <body> <div class="game-box"> <div class="question" style="display: flex;"> …

Jul 02, 2025
OTP- PYTHON

import random, webbrowser username = "bibek123" password = "hello@123"   print("Welcome to the login page") input_username = input("Enter your username: …