View Full Version : Hello mates help need in php
unna
Jul 5th 2009, 10:18 am
Hello mates
I have a query.
I am running a news website. Just suppose my domain is www.xyz.com and my news section is in www.xyz.com/news
Now I post an article in www.xyz.com/news and i want to publish its title on www.xyz.com.
Can anybody tell me which code to supply by which I get my latest news title on the home page?
Thanks
Bohra
Jul 5th 2009, 10:59 am
Hmm connect to the databese and then pull the title from it ?
unna
Jul 6th 2009, 10:19 am
Hmm connect to the databese and then pull the title from it ?
dude
i am new to PHP...
please explain it
thanks
dj1337
Jul 6th 2009, 1:48 pm
dude
i am new to PHP...
please explain it
thanks
If your paying i can help.. Message me.
wd_2k6
Jul 6th 2009, 2:38 pm
You need to store your post titles in a database first.
If you already have this then you can query your database on your homepage to retrieve these titles.
If you do not use a database and do not understand how to work with databases then you need to learn PHP/MYSQL interaction, here's a couple of good locations to learn from:
http://www.w3schools.com/PHP/php_mysql_intro.asp
http://www.tizag.com/mysqlTutorial/
samyak
Jul 6th 2009, 3:14 pm
you said: "my news section is in www.xyz.com/news". Is this the section where you enter your news? Did someone create this for you? If yes, then you probably already have database tied in with your application.
If that is the case, then you need to just connect to this database and fetch the news feeds.
You will need to learn PHP/Mysql in any case.
anthonywebs
Jul 6th 2009, 6:53 pm
Is the title in a db? You need to tell us how the db is setup because I can give you the code for it.
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.