LastMitch
Industrious Poster
4,149 posts since Mar 2012
Reputation Points: 132
Solved Threads: 334
Skill Endorsements: 45
@marifard
My problem is when I display the data and there is no num2 because it is empty in the DB, the field operator of num2 is displaying the same data of operator in num1.
I don't see any code regarding for:
<td><?php echo $row["num2"]; ?></td>
What I do see you have 2 of this:
<td><?php echo $row["operator"]; ?></td>
it should be 1
This is your code:
<td>Operator:</td>
<td><?php echo $row["operator"]; ?></td>
-
<td>Operator 2:</td>
<td><?php echo $row["operator"]; ?></td>
You forgot to put 1 & 2 in operator.
It should look like this
<td>Operator:</td>
<td><?php echo $row["operator1"]; ?></td>
-
<td>Operator 2:</td>
<td><?php echo $row["operator2"]; ?></td>
LastMitch
Industrious Poster
4,149 posts since Mar 2012
Reputation Points: 132
Solved Threads: 334
Skill Endorsements: 45
@marifard
I have some problems because the name of the operator of operator1 didn't display rhe name but the id and I don't know how to display the name of operator2 not the id.
Can you show me the actually error when you run on phpmyadmin?
Is the table the same as you posted on top?
LastMitch
Industrious Poster
4,149 posts since Mar 2012
Reputation Points: 132
Solved Threads: 334
Skill Endorsements: 45
@marifard
The past few thread that you post is related?
I mean all of them is regarding about this:
$query = "SELECT dir.*,oprt.* FROM operator as oprt INNER JOIN directory AS dir ON oprt.id = dir.operator1";
My question is have you try those suggestion from the previous thread?
LastMitch
Industrious Poster
4,149 posts since Mar 2012
Reputation Points: 132
Solved Threads: 334
Skill Endorsements: 45
Question Answered as of 8 Months Ago by
LastMitch