homepage Welcome to WebmasterWorld Guest from 54.211.180.175
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

    
inset mysql
nick patrick




msg:3856469
 9:44 am on Feb 24, 2009 (gmt 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

 

blang




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

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

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved