Jump to content

[SOLVED] Unexpected T_STRING What is going on here!?


TGWSE_GY

Recommended Posts

Ok I am getting, Parse error: syntax error, unexpected T_STRING in /home/.deceasing/thegayestever/thegayestcommunityever.com/dev/php/includes/content/members_home/profile_forms/post_profile_about_form.php on line 23.

 

 

I have checked everything and still don't see the problem, I am really confused.

 

 

 

<?php
session_start();
//ABOUT ME
echo $varAboutMe = $_POST['formAboutMe'];
echo $varWhatImLookingFor = $_POST['formWhatImLookingFor'];
echo $varAskMeAbout = $_POST['formAskMeAbout'];
echo $varHobbies = $_POST['formHobbies'];
echo $varTVandFilm = $_POST['formTVandFilm'];
echo $varBooks = $_POST['formBooks'];
echo $varMusic = $_POST['formMusic'];

// Get CustID from cookie
if (isset($_SESSION['Usr'])) {
echo $varCustID = $_SESSION['CustID'];

//Get database connection info and connect
include('config.php');

$con = mysql_connect($Host, $Login, $Pass);

mysql_select_db("login_ums", $con);

//Store ABOUT <-------- This is line 23
mysql_query("UPDATE profile_about SET AboutMe='$varAboutMe', WhatImLookingFor='$varWhatImLookingFor', AskMeAbout='$varAskMeAbout', Hobbies='$varHobbies', TVandFilm='$varTVandFilm', Books='$varBooks', Music='$varMusic' WHERE CustID = '$varCustID'") or die mysql_error();
 mysql_close($con);

} else {
	header ("Location: http://www.thegayestcommunityever.com/dev/index.php?section=denied");
}

if ($pageid =='0') {
	header ("Location: http://www.thegayestcommunityever.com/dev/index.php?section=membershom");
} else {
	header ("Location: http://www.thegayestcommunityever.com/dev/index.php?section=profileupdateall");
}
?>

 

Thanks

:-\

give this a try

 


$query = "UPDATE profile_about SET AboutMe='$varAboutMe', WhatImLookingFor='$varWhatImLookingFor', AskMeAbout='$varAskMeAbout', Hobbies='$varHobbies', TVandFilm='$varTVandFilm', Books='$varBooks', Music='$varMusic' WHERE CustID = '$varCustID'";
$result = @mysql_query($query) 
or die("<b>A fatal MySQL error occurred</b>.\n<br />Query: " . $query . "<br />\nError: (" . mysql_errno() . ") " . mysql_error());

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.