Matthew1980 - 9:38 pm on Jul 2, 2010 (gmt 0)
Hi there jspeed,
Sounds obvious, but have you used print_r($_POST); in the receiver script to see exactly what is being passed to the script - and if it's the expected data?;
Try that to see what comes through, then take it from there.
Also, I haven't seen this before I don't think:-
if (!mysql_select_db($dbname)) die(mysql_error());
Is it valid syntax, surely for ease of reading it would be:-
It more than likely is valid syntax, but I always use parethesis for if/else structuring.
And, this may be a reserved word somewhere:-
mysql_query("UPDATE $dbtable SET text = '$text' WHERE label = 'aboutus'");
I would back tick that to be safe :) ie: UPDATE $dbtable SET `text` = '$text' WHERE label = 'aboutus'
Other than that i'm intrigued, and standard block text is ok?, I'm assuming when you place a ' in the mix it stops...