Jump to content

merlin371

Members
  • Posts

    6
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

merlin371's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Sorry I'll give a better example, was reading again and noticed it makes no sense , look at this code $stringer = "&#65"; $str = mb_convert_encoding($stringer, "UTF-8", "ASCII"); echo $str; $stringer is A in ascii code, if i the code goes trough all the way it will of course output A on the browser but if you go look at the page source it's still &#65, were if i were to just replace stringer with the actual letter A the page source will show the letter A, what I'm trying to do is to get the script to convert the ascii code with the equivalent letter and output the letter over the code. If you get what i mean Thanks
  2. Hey guys I'm having a bit of a problem trying to convert this string to UTF-8 encoding I've used $strTem = mb_convert_encoding($strTem, "UTF-8", "auto"); and while that detects the correct current encoding it doesnt change it at all and utf8_encode doesnt work at all, dont know what to use. Thanks
  3. ya it works now thanks a lot man, turns out i had put the date field on mysql as date and i was putting in the date in a wrong manner, fixed it now, that messages helped a lot
  4. no it works, i'm echoing a message between the brackets to see if it goes trough, i just didnt put it here. and that shows all the time.
  5. Hey guys sorry if this is a really noobie question but i tried everything and i cant see why it wont work, I have a form that would send the information to another page that in theory puts the data into the database however it does nothing, it wont even give me an error, this is what i have on the page. include("config.php"); $db_link = mysql_connect($db_server, $db_uname, $db_pass); mysql_select_db($db_name, $db_link); if (isset($_POST['user'])) { $user = $_POST['user']; $date = $_POST['date']; $time = $_POST['time']; $device = $_POST['device']; $info = $_POST['info']; mysql_query ("INSERT INTO `alanz`.`logs` (`id`, `user`, `date`, `time`, `device`, `info`) VALUES (NULL, '".$user."', '".$date."', '".$time."', '".$device."', '".$info."');", $db_link); } any idea why it wont do anything? thanks
  6. Hi, I just installed myphpadmin and it said that i had a sevurity hole cause my configuration file contains setting (root with no password) that carrespond to the default MySql privileged account. so then i tried to change the privileges on the database making all of the account ask for a password the only problem is now i can only see the test database and that the warning is still there (what\'s with that anyway?) I am completly lost.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.