What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » My site

1 votes - 5 average   My site
Author: Message:
k776
Junior Member
**

Avatar

Posts: 98
Reputation: 3
– / Male / –
Joined: Aug 2004
O.P. My site
Thanks to a friend of mine, I have started turning some of my site into sql quiries. One of the lines is:
code:
echo "<table border=1 class=double summary=Downloads><tr><td><font color=#ffff00><b>" . $row["name"] . "</b></font> " . $row["mplink"] . "<br>" . $row["desc"] . "<br><hr><font color=#ffff00><b>Download page</b></font> " . $row["dllink"] . "<br><b>Type:</b> " . $row["type"] . "</td></tr></table><br>" ;
What I want to do is to link Download page with . $row["dllink"] .. I tired this but it doesn't work :( I get T_STRING errors or something like it.
code:
echo "<table border=1 class=double summary=Downloads><tr><td><font color=#ffff00><b>" . $row["name"] . "</b></font> " . $row["mplink"] . "<br>" . $row["desc"] . "<br><hr>" <a href=. $row["dllink"] .> "<font color=#ffff00><b>Download page</b></font>" </a> "<br><b>Type:</b> " . $row["type"] . "</td></tr></table><br>" ;
Any help would be nice.
[Image: k776.jpg]
09-04-2004 09:12 AM
Profile PM Web Find Quote Report
Mnjul
forum super mod
******

Avatar
plz wub me

Posts: 5396
Reputation: 58
– / Other / Flag
Joined: Nov 2002
Status: Away
RE: My site
You don't need to crowd everything onto one line ;)

Well your quotes look like a mess to me :p

This should work
code:
echo "<table border=1 class=double summary=Downloads><tr><td><font color=#ffff00><b>" . $row["name"] . "</b></font> " . $row["mplink"] . "<br>" . $row["desc"] . "<br><hr><a href=\"" . $row["dllink"] . "\"><font color=#ffff00><b>Download page</b></font></a><br><b>Type:</b> " . $row["type"] . "</td></tr></table><br>";



And if you want a good-looking one (not only neat in PHP but also in HTML)...
More lines but I suppose easy to maintain...
code:
echo "<table border=1 class=double summary=Downloads>\n";
echo "<tr><td>\n";
echo "<font color=#ffff00><b>" . $row["name"] . "</b></font> " . $row["mplink"] . "<br>\n";
echo $row["desc"];
echo "<br><hr>\n";
echo "<a href=\"" . $row["dllink"] . "\"><font color=#ffff00><b>Download page</b></font></a><br>\n";
echo "<b>Type:</b> " . $row["type"];
echo "</td></tr>\n";
echo "</table><br>";


This post was edited on 09-04-2004 at 10:40 AM by Mnjul.
09-04-2004 10:34 AM
Profile PM Web Find Quote Report
k776
Junior Member
**

Avatar

Posts: 98
Reputation: 3
– / Male / –
Joined: Aug 2004
O.P. RE: My site
Thanks for the help. New question:

How do you write files to a database??

Im using my own form, set with method="post" action="scripts/add.php". What do I add in scripts/add.php??

Edit: I want to add the following feilds:

catid,
mplink,
name,
dllink,
desc,
rate,
type,
pic

to a table called download_items.

This post was edited on 09-06-2004 at 09:23 AM by k776.
[Image: k776.jpg]
09-06-2004 09:19 AM
Profile PM Web Find Quote Report
WDZ
Former Admin
*****

Avatar

Posts: 7106
Reputation: 107
– / Male / Flag
Joined: Mar 2002
RE: My site
You've got a similar thread going at http://shoutbox.menthix.net/showthread.php?tid=30977, so I'm closing this one.
09-06-2004 09:31 AM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On