Your IP : 216.73.216.40


Current Path : /var/www/html/mmishra/iws8/html/indem/webkriti/conclave2/
Upload File :
Current File : /var/www/html/mmishra/iws8/html/indem/webkriti/conclave2/insert_text.php

<?php
    session_start();
	include "dbconnect.php";
	$text1=$_POST['general1'];
	$text2=$_POST['general2'];
	$query = "UPDATE text SET welcome = '$text1' WHERE text_key = '1'"; 
    $result=mysql_query($query)  or die("Query failed:1 ".mysql_error());
	$query = "UPDATE text SET objective = '$text2' WHERE text_key = '1'"; 
    $result=mysql_query($query)  or die("Query failed:1 ".mysql_error());

	$query = "UPDATE variables SET var_value = '0' WHERE var_name = 'edit'"; 
    $result=mysql_query($query)  or die("Query failed:1 ".mysql_error());
	header('Location: index.php');
	exit();
	?>