Welcome to WebmasterWorld Guest from 54.166.224.46

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

inset mysql

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

5+ 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

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

5+ Year Member



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

Featured Threads

Hot Threads This Week

Hot Threads This Month