•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 423,579 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,410 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 283 | Replies: 5
![]() |
•
•
Join Date: Apr 2008
Posts: 12
Reputation:
Rep Power: 1
Solved Threads: 0
hi
i have a problem i need the same thing pop up a windoow when user clicks the link
hear is my code plz tell me if i made a mistake
when the user clicks the 'companyname' a window should pop out showing the details ,but i dont output anything can some one help.
i have a problem i need the same thing pop up a windoow when user clicks the link
hear is my code plz tell me if i made a mistake
php Syntax (Toggle Plain Text)
<html> <head> </head> <body> <? $company= $_REQUEST['companytype']; $companytype =mysql_real_escape_string($company); echo "<h1> <font color=green>Results For $companytype</font></h1>"; $query = "SELECT companyname,companytype,address,kommun,postcode,telephone FROM addreg where companytype ='$companytype' ORDER BY id desc limit 0,5"; $result = mysql_query($query); echo mysql_error(); echo "<table width='100%' border='0'>"; while($row = mysql_fetch_array($result)) { echo "Companytype :"."<a href= 'houseinfo.php?companytype=".$row["companytype"]."'></a>". "<br>"; echo "Companyname : " .$row['companyname'] . '<br>'; echo "Address : " .$row['address'] . '<br>'; echo "Telephone : " .$row['telephone'] . '<br>'; echo "<img src='img/divv.jpg'>"."<br>"; } echo '<br>'; ?> </body> </html>
Last edited by peter_budo : Apr 20th, 2008 at 11:41 am. Reason: Keep It Organized - please use [code] tags
•
•
Join Date: Apr 2008
Posts: 48
Reputation:
Rep Power: 1
Solved Threads: 3
Ah, I see.
You closed your </a> before the Company Name.
So where you have
you should have
Assuming I've understood correctly, that should be it, now.
Sam
You closed your </a> before the Company Name.
So where you have
php Syntax (Toggle Plain Text)
echo "Companytype :"."<a href= 'houseinfo.php?companytype=".$row["companytype"]."'></a>". "<br>"; echo "Companyname : " .$row['companyname'] . '<br>';
you should have
php Syntax (Toggle Plain Text)
echo "Companytype : <a href= 'houseinfo.php?companytype=".$row["companytype"]."'><br>"; echo "Companyname : " .$row['companyname'] . '</a><br>';
Assuming I've understood correctly, that should be it, now.
Sam
Last edited by helraizer : Apr 18th, 2008 at 8:40 am.
![]() |
•
•
•
•
•
•
•
•
DaniWeb PHP Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
access activation api blogger blogging blogs code code injection combo dani daniweb data debugging development dreamweaver dropdownlist epilepsy gdata google gpl griefers hackers html innovation javascript key linux microsoft module net news openbsd product programming reuse rss serial source tags vista web wysiwyg xml
- What Would Be The Code (C)
- How can i access data from MS Access using VB6 (I need the connection code) (Visual Basic 4 / 5 / 6)
- VB6 and MS Access Problem (Visual Basic 4 / 5 / 6)
- Help plz (C)
- can anyone help me with this progam,and write the code for this problem? (C)
- hi i have prob solve it plz (Perl)
- Help plz!!! (C++)
- plz help--its urgent (Java)
- Can anybody tell what's wrong with this code? (C++)
Other Threads in the PHP Forum
- Previous Thread: Generating dynamic pages on hyperlink clicks
- Next Thread: Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource


Linear Mode