Welcome to WebmasterWorld Guest from 54.166.148.252

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

inset mysql

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

Junior Member

5+ Year Member

joined:Jan 13, 2009
posts:46
votes: 0


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

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

Junior Member

5+ Year Member

joined:Feb 21, 2009
posts:120
votes: 0


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