Ratings????
am 07.10.2007 13:57:44 von shror
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
Re: Ratings????
am 07.10.2007 14:25:14 von Shelly
"shror" 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 to www.php.net and you can start with fopen, fclose,
fread, and fwrite.
Shelly
Re: Ratings????
am 07.10.2007 14:32:16 von shror
On Oct 7, 2:25 pm, "Shelly" wrote:
> "shror" 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
Re: Ratings????
am 07.10.2007 15:34:41 von Shelly
"shror" wrote in message
news:1191760336.264502.101210@y42g2000hsy.googlegroups.com.. .
> On Oct 7, 2:25 pm, "Shelly" wrote:
>> "shror" 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
Re: Ratings????
am 07.10.2007 22:24:16 von Bucky Kaufman
"Shelly" wrote in message
news:13ghk23jmks7ra3@corp.supernews.com...
>
> "shror" 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 to www.php.net and you can start with fopen, fclose,
> fread, and fwrite.
You got trolled - I hope your firewalls are up.
Whenever you see a post like that, it's a predatory post.
They could be doing it for any number of reasons - but one is to collect
current online IP's of developers who might have exploitable IDE stuff
running.
It's a little badge of honor to hack developers.