You are here: Re: Ratings???? « PHP Programming Language « IT news, forums, messages
Re: Ratings????

Posted by Shelly on 10/07/07 13:34

"shror" <shahirwm@gmail.com> wrote in message
news:1191760336.264502.101210@y42g2000hsy.googlegroups.com...
> On Oct 7, 2:25 pm, "Shelly" <sheldonlg.n...@asap-consult.com> wrote:
>> "shror" <shahi...@gmail.com> wrote in message
>>
>> news:1191758264.822967.22250@g4g2000hsf.googlegroups.com...
>>
>> >I want to know how i can create a rating feature on my pages, but am
>> > not using a database.
>> > can i create the rating with file handling so that the ratings are
>> > saved in file format.
>>
>> > also I want to know can I create a poll that stores the results in
>> > files rather than database??
>>
>> > Thanks in advance for help
>>
>> > shror
>>
>> You can do this, of course, but I must ask "why?". A database is SOOOO
>> much
>> simpler and less prone to errors. Also, MySQL is free and very easily
>> managed. If it is that you don't know SQL, then I would strongly suggest
>> that it is time you learned if you want to do any serious (or even
>> semi-serious) programming in php (or asp, or asp,net, or......).
>>
>> Anyway, I direct you towww.php.netand you can start with fopen, fclose,
>> fread, and fwrite.
>>
>> Shelly
>
> Thank you Shelly for your response, and my main problem is that I
> don't know anything about Databases excetp their main concepts, and
> thats why I was looking for file handling solutions but I will give it
> a try reading about MySQL and hope I can get the solution and work it
> out, but I need something else which is, what do I need to get started
> working with MySQL, do I need to install the MySQL on my pc or I can
> workit out like php directly in txt files and cut paste the code to my
> pages or what will be the process of working with MySQL, as I know
> that the SQL2000-2005 need the SQL server to be installed.
>
> Thanks for your help anyway.
>
> shror
>

Look at www.w3schools.com. They have EXCELLENT tutorials on many subjects
and I believe SQL is one of them. MySQL is just one particular database.
Others are Oracle, Sql Server, and a bunch of others. They ALL use SQL, and
basic SQL is VERY easy to learn.

Your hosting server, if it is a Linux server, should already have MySQL
installed on it. Call them to find out what you have to do access their
control panel. Usually the hosts have phpmyadmin installed. Using that is
child's play. You can create a database. Then you can create a table and
put the fields in it. Very easy.

If you have another database installed on your server, look to see how to
connect via php (since php must already be on your server or you wouldn't be
here asking questions). The select, insert, update and delete statements
will be the same for basic stuff. It only gets a LITTLE more complicated
when you get into stored procedures, transactions, etc. -- stuff you won't
need for now.

Good luck and if you need more help, we are here -- but you REALLY need to
do this if this is to be other than one-shot web site attempt.

Shelly

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация