Login
Search
Welcome to the iTechForums.
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.
To register now click here.
Latest Threads
Advertisements
Forum Statistics
Threads:
Posts: 2
Members:
Number of Users Online:
Welcome to our newest member,
Reply
 
Thread Tools Display Modes
  #1  
Old 05-16-2008, 07:31 AM
Andi Andi is offline
Junior Member
 
Join Date: May 2008
Posts: 1
Default

Whats wrong with this php codes?


$result = mysql_query("SELECT p1.tajuk, p1.kategori, p1.subkategori, p1.tarikh, p2.pID, p2.nama FROM masalah AS p1 INNER JOIN kakitangan AS p2 ON p1.pID = p2.pID ORDER BY p1.subkategori;");

The problem is this line --->
while ( $row = mysql_fetch_array($result)) {
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 05-16-2008, 08:36 PM
jaku7878 jaku7878 is offline
Junior Member
 
Join Date: May 2008
Posts: 2
Default

I believe it might be with the way you used your variable. Your $result acts as a string variable, meaning you will have to put it in quotes anyway it isn't working as a function. And for the inside where you are using the double quotes use the ' keys as that is the inner-form of quotes for variables.

You see, when you tell it this variable and to fetch the array, it gets confused what is the variable it's looking for.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Any way to reveal PHP codes? ®q © PHP 2 05-16-2008 01:45 PM
HTML codes...? ??ash?? HTML & DHTML 1 05-12-2008 08:22 PM
Oracle.. Need help with some codes....? Kala M Oracle 0 05-12-2008 09:10 AM
Whats wrong with this javascript? Travis JavaScript 0 05-10-2008 08:04 AM
html codes in scroll box? Dangerous HTML & DHTML 0 05-08-2008 08:59 AM

Your Ad Here

All times are GMT. The time now is 07:50 AM.