Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,154,371 members, 7,822,749 topics. Date: Thursday, 09 May 2024 at 04:13 PM

Help Help - Programming - Nairaland

Nairaland Forum / Science/Technology / Programming / Help Help (529 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)

Web Development Training. Starting On Monday. / Which Software Can Be Used To Manage School Records / PLEASE, Help Me Make A Choice From These.

(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. 8
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.