Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / NewStats: 3,194,325 members, 7,954,317 topics. Date: Friday, 20 September 2024 at 04:33 PM |
Nairaland Forum / Science/Technology / Programming / Help Help (553 Views)
Help Help Help / Please Help ! Help!! Help!!! / VCE Designers 2.2.3 Help Help Help (2) (3) (4)
(1) (Reply)
Help Help by marvzkiddx(m): 3:31pm On Jul 18, 2016 |
<?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); } ?> pls people help me check out this code for my connect.php file.. it keeps saying could not connect ND no db...m using ultiserver for Android to run d php codes... please guys.. av posted the file here.... u can help me modify it..... Plss.... tnks
|
Re: Help Help by Nobody: 11:47pm On Jul 18, 2016 |
Write out the error message you are getting. Word for word. That will make it easier to help |
(1) (Reply)
How To Build A Multi Vendor Marketplace Like Ebay Using Magento / Software Developer Needed. / How And Where To Learn Programming/coding In 2022 [ultimate Guide]
(Go Up)
Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health religion celebs tv-movies music-radio literature webmasters programming techmarket Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 7 |