Jump to content

Olaolu

New Members
  • Posts

    2
  • Joined

  • Last visited

Olaolu's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Man. Just help rewrite in the best way you can. I will learn pdo but I need this now, very urgent. Help rewrite procedurarily(if there is a word like that). Please!!
  2. I understand that this is very late and u should have done this since but it's never late than never. I need help converting these codes "mysql" functions to their "mysqli" counterparts. <?php $db = mysql_connect("$dbhost", "$dbuser", "$dbpass") or die("Could not connect."); if(!$db) die("no db"); if(!mysql_select_db("$dbname",$db)) die("No database selected."); if(!get_magic_quotes_gpc()) { $_GET = array_map('mysql_real_escape_string', $_GET); $_POST = array_map('mysql_real_escape_string', $_POST); $_COOKIE = array_map('mysql_real_escape_string', $_COOKIE); } else { $_GET = array_map('stripslashes', $_GET); $_POST = array_map('stripslashes', $_POST); $_COOKIE = array_map('stripslashes', $_COOKIE); $_GET = array_map('mysql_real_escape_string', $_GET); $_POST = array_map('mysql_real_escape_string', $_POST); $_COOKIE = array_map('mysql_real_escape_string', $_COOKIE); } ?> Please just help rewrite the correct one. I have been trying this all day.
×
×
  • 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.