₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,326,861 members, 8,428,401 topics. Date: Wednesday, 17 June 2026 at 11:31 AM

Toggle theme

Xlim's Posts

Nairaland ForumXlim's ProfileXlim's Posts

1 (of 1 pages)

ProgrammingRe: Can Someone Kindly Help Me Correct This Error by xlim(op): 5:00pm On Nov 19, 2014
zeroshadow:
that's because you're calling the variables wrongly




is meant to be



there could be mistakes in my correction but you are not calling the your variables... you're mixing mysql and mysqli(very bad practice)... my battery is dying..
thanks so much. will work on that now
ProgrammingRe: Can Someone Kindly Help Me Correct This Error by xlim(op): 11:51am On Nov 19, 2014
zeroshadow:
xlim, you didn't state the problem angry angry angry angry

luckily for you I have "php eyes" angry angry angry

you didn't even put the form angry angry angry angry

the bolded part below indicates your problem... you might be getting a database error... or undefined variable error... angry angry angry angry
it's actually saying username and password not found
ProgrammingCan Someone Kindly Help Me Correct This Error by xlim(op): 11:19am On Nov 19, 2014
<?php

// Inialize session

session_start();
// Include database connection settings
$hostname = 'localhost'; // Your MySQL hostname. Usualy named as 'localhost', so you're NOT necessary to change this even this script has already online on the internet.
$dbname = 'zclass'; // Your database name.
$username = 'root'; // Your database username.
$password = ''; // Your database password. If your database has no password, leave it empty.

// Let's connect to host
mysql_connect($hostname, $username, $password) or DIE('Connection to host is failed, perhaps the service is down!');
// Select the database
mysql_select_db($dbname) or DIE('Database name is not available!');


// Retrieve username and password from database according to user's input
$userName=mysql_real_escape_string($_POST['name1']);
$userSchool=mysql_real_escape_string($_POST['school1']);
$userClass=mysql_real_escape_string($_POST['class1']);


//*********retrieving data from Database**********

$query = "SELECT * FROM member WHERE $userName='name1', $userSchool='school1' and $userClass='class1'";
//$login = mysqli_query("SELECT userName,password FROM 'member' WHERE userName= $_post['username'] AND passWord= $_post['password'])"wink;
// Check username and password match
$res = mysql_query($query);

$rows = mysql_num_rows($res);
if ($rows==1) {
// Set username session variable

$_SESSION['userName'] = $_POST['name1'];

// Jump to secured page
header("Location: post.php"wink;
}
else {
// Jump to login page
echo "user name and password not found";
}
exit;
?>

Video Games And Gadgets For SaleRe: !!!!!!ps3 Games For Sale (original)!!!!!! by xlim(op): 6:31pm On Oct 18, 2014
teknology:
Text me 08165006008
done
Video Games And Gadgets For SaleRe: !!!!!!ps3 Games For Sale (original)!!!!!! by xlim(op): 6:14pm On Oct 18, 2014
teknology:
What time 2mao?
maybe 2pm
Video Games And Gadgets For SaleRe: !!!!!!ps3 Games For Sale (original)!!!!!! by xlim(op): 6:06pm On Oct 18, 2014
[quote author=teknology post=27254117][/quote]that's fine. maybe when you are done
Video Games And Gadgets For SaleRe: !!!!!!ps3 Games For Sale (original)!!!!!! by xlim(op): 5:56pm On Oct 18, 2014
teknology:
Do u like assassins creed?
yea, its cool. which do you have?
Video Games And Gadgets For SaleRe: !!!!!!ps3 Games For Sale (original)!!!!!! by xlim(op): 5:45pm On Oct 18, 2014
teknology:
Watchmen,wwe09 nd motorstorm
cool
Video Games And Gadgets For SaleRe: !!!!!!ps3 Games For Sale (original)!!!!!! by xlim(op): 5:39pm On Oct 18, 2014
teknology:
okay wud text u asap
ok. in conclusion, i am coming along with PES14 and GOD OF WAR. and you coming with which?
Video Games And Gadgets For SaleRe: !!!!!!ps3 Games For Sale (original)!!!!!! by xlim(op): 5:26pm On Oct 18, 2014
teknology:
The god of war is which one?
God of War: the legend of kratos
Video Games And Gadgets For SaleRe: !!!!!!ps3 Games For Sale (original)!!!!!! by xlim(op): 5:19pm On Oct 18, 2014
teknology:
Sure
so that will be the PES14 and which other game will you prefer from the ones above?
Video Games And Gadgets For SaleRe: !!!!!!ps3 Games For Sale (original)!!!!!! by xlim(op): 5:13pm On Oct 18, 2014
teknology:
cool that mokola roundabout is okay btw do u have any ps3 pad charging cord u can give out?or swap my motorstorm for a pad
no i dont have any extra cord. i have got just a pad too. mind swappin d motorstorm for a game?
Video Games And Gadgets For SaleRe: !!!!!!ps3 Games For Sale (original)!!!!!! by xlim(op): 5:03pm On Oct 18, 2014
teknology:
Can u come to u.i?
too far away from me, wat about we meeting at mokola roundabout or challenge?
and that will be tomorrow, kinda busy now
Video Games And Gadgets For SaleRe: !!!!!!ps3 Games For Sale (original)!!!!!! by xlim(op): 4:54pm On Oct 18, 2014
teknology:
Ibadan too can we meet b4 7pm today?i stay around ojoo
hmmmmm....i stay at ring road....how do we meet up?
Video Games And Gadgets For SaleRe: !!!!!!ps3 Games For Sale (original)!!!!!! by xlim(op): 4:42pm On Oct 18, 2014
Saklekplus:
guy,let swap CDs
I have

*Killzone3,
*Prince of Persia,
*metal gear solid,
*call of duty 3,
*Ridge racer 7,
*pes 14,
*D of jam,
*GTA IV,

I need
ps3 CDs swap...

I need

*FIFA 14,
*GTA V
i dont have FIFA14 nad GTA V
Video Games And Gadgets For SaleRe: !!!!!!ps3 Games For Sale (original)!!!!!! by xlim(op): 4:41pm On Oct 18, 2014
teknology:
I need dat pes14 where r u? Would give u watchmen 1 nd 2 and wwe 09
IBADAN. U?
Video Games And Gadgets For Sale!!!!!!ps3 Games For Sale (original)!!!!!! by xlim(op): 1:47pm On Oct 18, 2014
1. GRAND THEFT AUTO IV & EPISODE FROM LIBERTY CITY

2. PRO EVOLUTION SOCCER 2014

3. CALL OF DUTY: BLACK OPS

4. GOD OF WAR


all for sale......

LOCATION: IBADAN

PRICE: 3,000 Each

if interested, call 08025020830

Autos2004/2005 Honda Accord EXL *tokunbo* by xlim(op): 6:15pm On Oct 01, 2014
Location: Ibadan

Contact : Michael 08033577943

price: 1,600,000 (negotiable)

Interior:
Clock
Leather Seats


Exterior:
Sunroof

Audio / Video:
Factory System
AM/FM
CD Changer
CD Player
Power Equipment:
Power Driver's Seat
Power Locks
Power Mirrors
Power Steering
Power Windows

Safety Features:
Anti-Lock Brakes
Driver's Air Bag
Intermittent Wipers
Passenger Air Bag
Rear Defogger
Security System
Side Air Bags

Luxury Features:
Air Conditioning
Climate Control
Cruise Control
Dual Zone Electronic Climate Control System
Leather Gear Shifter
Leather Steering Wheel
Moonroof
Steering Wheel Radio Controls
Telescoping Steering Wheel

Dating And Meet-up ZoneRe: Drop Your Twitter Handle Here Let's Get You More Followers by xlim: 7:28am On Feb 21, 2013
@harrietoye i fllw back
Music/RadioRe: Top 5 Best Rappers In Nigeria by xlim: 7:44pm On Sep 09, 2009
nija best rapper remains
MI
MI
MI
MI and
MI
Music/RadioRe: Big Boy Album Cover - Eldee by xlim: 10:49pm On Dec 26, 2008
WWWWWWWOOOOOOOOOOOOOOOOOOW!!!!!!!!!!!!!!!!!!!1
dats tyt elDee.
keep it up dude.
no worry, dat album go bosi gbangban
Music/RadioRe: Its Official:the Lyrics:death Blow Pt 1 From Modenine by xlim: 10:47pm On Dec 26, 2008
mode is SSSSSSSSSSSSSOOOOOOOOOOOOOOOOO stupid for dis
i will beef him 4live
Music/RadioG.t by xlim(op): 10:54am On Dec 26, 2008
oh GOD, guys have u heard "treasure" bt G,T? its tyt
CelebritiesRe: Olu Maintain Nabbed For Drug Trafficking by xlim: 10:49am On Dec 26, 2008
hey its no rumour!!!!!!!!!!!!!!!!11
CelebritiesRe: Nigerian Celebrities And Their Websites by xlim: 10:05pm On Aug 15, 2008
what should we do with that
Jokes EtcRe: Wil Sure Make U Laff by xlim: 11:47pm On Feb 22, 2008
grin
well done

1 (of 1 pages)