Jump to content
View in the app

A better way to browse. Learn more.

The Uniform Server Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

vasu

Member
  • Joined

  • Last visited

Everything posted by vasu

  1. vasu replied to vasu's topic in Open Discussion
    I have done it...... but then also it is not working.... I want it should enter the state_id from the state table.... I have done some modifications.... <? //ob_start(); session_start(); //include("../conn/config.php"); //include("../conn/dbclass.php"); $conn = mysql_connect('localhost','root','root') or die(mysql_error()); mysql_select_db('searchindia'); //$objDB=new dbclass(); $city_id = $_POST['city_id']; $state_id = $_POST['state_id']; $city_name = $_POST['city_name']; $statename = $_POST['state']; ///state is the dropdown box name/// $state = "SELECT state_id FROM state WHERE state_name = $state_id"; $state1 = mysql_query($state); $sql = " INSERT INTO city SET city_id='".$city_id."', state_id='".$state1."', city_name='".$city_name."'" ; //$objDB ->dbclass(); $a = mysql_query($sql) or die(mysql_error()); ?> <?php header('Location: indexlocation.php'); ?> <script> //window.location='index.php?p=location'; </script> <form action="indexlocation.php"></form>
  2. vasu posted a topic in Open Discussion
    I have created two tables 1. state having fields state_id and state_name 2. city having fields city_id, state_id and city_name city id and state id is primary keys.... Now I want to insert city_id, state_id and city_name using three fields but i m not getting state_id i use ... $city_id = $_REQUEST['city_id']; $state_id = $_REQUEST['state_id']; $city_name = $_REQUEST['city_name']; $sql = " INSERT INTO city SET city_id='".$city_id."', state_id='".$state_id."', city_name='".$city_name."'" ; //$objDB ->dbclass(); $a = mysql_query($sql) or die(mysql_error()); mng_location.php indexlocation.php location.php

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.