Forum Moderators: coopster

Message Too Old, No Replies

inset mysql

         

nick patrick

9:44 am on Feb 24, 2009 (gmt 0)

10+ Year Member



i an trying to inset data into mysql its a utf-8 format data
when i try to inset using phpmysql so its done without any error etc...
but when i trying using

mysql_connect("localhost", "what", "what");
$result = mysql_query("SET NAMES 'UTF8'");
if (!$result) {
die("Charset Failed");
} mysql_select_db("what");
mysql_query("INSERT INTO `what` VALUES ('','$t')");
......
but its not working its inset the blank data any idea plz

blang

3:24 am on Feb 25, 2009 (gmt 0)

10+ Year Member



Where is the variable $t assigned? Does it have any value at this point in the script?