Jump to content

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());

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.