Welcome! Log In Create A New Profile

Advanced

oop4 and oop5

Posted by BrianMdaka 
Announcements Last Post
Announcement SoC Curricula 09/30/2017 01:08PM
Announcement Demarcation or scoping of examinations and assessment 02/13/2017 07:59AM
Announcement School of Computing Short Learning Programmes 11/24/2014 08:37AM
Announcement Unisa contact information 07/28/2011 01:28PM
oop4 and oop5
October 15, 2012 01:42AM
Hi Mac
You said, the db info provided is not neccessarily correct. So how do i get correct info for the database?
avatar
Mac
Re: oop4 and oop5
October 17, 2012 08:36AM
Figure it out. It is part of the portfolio challenge!
Re: oop4 and oop5
October 27, 2012 01:16PM
Hi all,

My Sql fetch array is failing and I cannot figure out why. I recieve Query failed 2 message.

Language: PHP
class User{ public function getUserById($user_id){ $sql=';select first_name, last_name, display_name from users where user_id =';. $user_id or die ("Query failed 0: " . mysql_error()); $results = mysql_query($sql)or die ("Query failed 1: " . mysql_error()); $row = mysql_fetch_array($results)or die ("Query failed 2: " . mysql_error());
Re: oop4 and oop5
October 27, 2012 06:23PM
Not to worry, solved.

Database auto increment was incorrect
Sorry, only registered users may post in this forum.

Click here to login