Links with mySQL?
(see http://www.worldmotorsport.com/)
Bascially what I am thinking a want it to do is for each particular category page have it go to the database and say get me all the links for this particular category and then display them on the screen.
Currenly its all done in plain HTML files but you can't do searches on these, and you can't make it give the number of links in each category etc.
What I need to know first is how should I organise the tables for it, would it be okay just to put all the links for the entire site into one big table?, would it slow down too much if I ask for all the links in a particular category, what about calculating how many links are present in every sub cateogory?. As you see its mainly performance issues I'm concerned about.
(PS This would be for my own personal use, writing it so other people could use it too would take far too much time)
I'm sure that script is good too though.
Professional PHP Programming
A good introduction to PHP programming. It touches briefly on database functions, and is orientated towards a more "real world" approach, with the code and techniques it describes.
PHP3 - Programming Browser Based Applications
A good supplement to the P.PHP.P. book above, with tricks and hints on getting the front end just right.
You should be able to store a URL inside a database field without too much trouble, just make sure to addslashes() before entering it and stripslashes() when retrieving it to avoid it making things go wierd :)
Katherine
Originally posted by RobRJ
Can't you store a URL (link) in a MySQL database field and then when it is echo'd or printed through a PHP script have it place the URL field within the A HREF or IMG SRC tags???
I am working on a separate database that I want to include images in (URL's of) the output where it would give the info about each person, then display the image as specified in the database.
If someone has an easy answer, I'm willing to listen. Otherwise, I think I'll be able to post the PHP code to output the image/link URL from a MySQL database soon (after partaking in some mandatory family-related Memorial Day activities).
Still haven't bought a PHP book, but was thinking about Core PHP Programming. Anyone have it or recommend it?
Can't hurt to look at some of the other stuff though - see how it's done :)
It's open source so everybody are encouraged to help. I don't really know who developed the script but here is the URL: http://phplinks.destiney.com/.
I hope this helped you and good luck.
emke
I am working on a separate database that I want to include images in (URL's of) the output where it would give the info about each person, then display the image as specified in the database.
If someone has an easy answer, I'm willing to listen. Otherwise, I think I'll be able to post the PHP code to output the image/link URL from a MySQL database soon (after partaking in some mandatory family-related Memorial Day activities).
Still haven't bought a PHP book, but was thinking about Core PHP Programming. Anyone have it or recommend it?
What I like with PHP is that it's so easy, I'm now programming some additional features like visitor ratings, possibility to mail all listed in the directory. I think that it could easily be better than even Gossamer Threads Perl Links, becuse PHP is so much faster and doesn't take up as much bandwith as Perl scripts do.
Well the best thing to do is to spread the word about this script becuase the more people using it the better it will get.
Emir.
http://gossamer-threads.com/scripts/links-sql/index.htm
[Edited by stv on 05-28-2000 at 12:02 PM]
I want something in PHP not Perl. I want something that is very simple and will not take over control of my entire site. I want something which is specifically written for my site. I don't want to spend £280 on something I don't really need when I can do it myself and have it for free.
#If you have any other info about this subject , Please add it free.# |

