information won't pass

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

User avatar
markl999
DevNet Resident
Posts: 1972
Joined: Thu Oct 16, 2003 5:49 pm
Location: Manchester (UK)

Post by markl999 »

No, that's the code that produces the url. What does the actual url look like in your browser? ;)

Oh, and look at the <br /> bit in my die() paste against yours to see the difference.
monkeynme
Forum Commoner
Posts: 28
Joined: Thu Aug 14, 2003 3:18 pm
Location: Colorado Springs, CO

Post by monkeynme »

Oh...

when i click on a job in the list it produces the following URL in the address bar:

http://eellctest/jobdetail.php?id=$row_Jobs['jobID']
User avatar
markl999
DevNet Resident
Posts: 1972
Joined: Thu Oct 16, 2003 5:49 pm
Location: Manchester (UK)

Post by markl999 »

That's the problem. Change

Code: Select all

<a href="jobdetail.php?id=$row_Jobs['jobID']">
to

Code: Select all

<a href="jobdetail.php?id=<?php echo $row_Jobs['jobID'] ?>">
The > should be a > but i'm struggling to get the forum to recognise the php tags ;)
monkeynme
Forum Commoner
Posts: 28
Joined: Thu Aug 14, 2003 3:18 pm
Location: Colorado Springs, CO

Post by monkeynme »

OK, I changed it to:

<a href="jobdetail.php?id=<?php echo $row_Jobs['jobID'] ?>"></a>

and ended up losing my Job ID field altogether.
User avatar
markl999
DevNet Resident
Posts: 1972
Joined: Thu Oct 16, 2003 5:49 pm
Location: Manchester (UK)

Post by markl999 »

Yeah, because you didn't but anything in between the <a href=""> and </a>

<a href="jobdetail.php?id=<?php echo $row_Jobs['jobID'] ?>">job details</a>
monkeynme
Forum Commoner
Posts: 28
Joined: Thu Aug 14, 2003 3:18 pm
Location: Colorado Springs, CO

Post by monkeynme »

Ok, I'll have to try it tomorrow. Thank you for helping me this this issue. Unfortunately i have to go pick up my daughter from school before they fine me for being late. UUGGGHHH! So I'll pick this up first thing tomorrow! :)
monkeynme
Forum Commoner
Posts: 28
Joined: Thu Aug 14, 2003 3:18 pm
Location: Colorado Springs, CO

Post by monkeynme »

OH YES! It worked, it worked! I can go in peace now...until the next problem. Thanks a bunch markl999! :)
Post Reply