PDA

View Full Version : Do you have solution of my problems?



Commander
July 8th, 2007, 12:11 AM
HI,
i am creating an Php mysql database driven articles site but i have

facing some problems
so that i can't continue creating my site i will very thankfulll to any

body who answer my questions,My questions are on this link

http://information-world.110mb.com/index.html

any reply will be appreciated,
thanks

Charleh
July 11th, 2007, 05:09 AM
Question 1:
You can track dynamic pages, you just need some code which does it in the right place. You could evaluate the querystring of the page - thats one way. I'd prefer to put the code for page tracking into the 'page selector' code. I'm assuming you use some code which selects the page based on the querystring - you just need to write a procedure that updates some stats counters in the database based on the page which was selected. It really depends on how your site works.

Question 2:
Once you have got the stats on your site you can just write a database query which uses the page viewed stats to figure out which item was viewed the most, so this one is easy once you've done Q1.

Question 3:
You either need to do a postback (ASP.NET) or seeing as you are using PHP, you CAN do a postback but I'm not sure if there's anything which mirrors the viewstate object of .NET in PHP. An easier way would be to bring back all the items from the database and put them into a javascript array - then you could run a javascript function when the parent combobox changes which updates the child combobox

Question 4:
I'm not sure on this one, but for bullet points don't you need to use <li></li> and <lu></lu>? I think because your text is in one block (probably seperated by <br> line breaks) it's treating it as one list element. Try using <li> or breaking the items up by <p></p> paragraph markers instead.

Question 5:
This one is simple, you just need to write a bit of php that runs a query, then if no records are returned write out the 1st piece of HTML for the image, otherwise write the second piece of HTML - a simple if statement..

Commander
July 24th, 2007, 11:53 PM
HI,
thank you very much for your reply,but i want to say you that i am a begginer of php mysql please can you tell me ready made scripts according to my questions again visit this link i have updated my question http://information-world.110mb.com/
i am waiting for your kind replies
Thanks

Commander
July 24th, 2007, 11:58 PM
HI,
Thank you very much for your reply,but i want to tell you that i am a begginer of php mysql i did'nt know coding i creat dynamic websites from dreamweaver icons,please can you tell me ready made scripts according to my requirments
i have updated my question please visit thi link again,
http://information-world.110mb.com/
i am waiting for your reply
Thanks