473,382 Members | 1,093 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Ratings????

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

Oct 7 '07 #1
4 1277

"shror" <sh******@gmail.comwrote in message
news:11*********************@g4g2000hsf.googlegrou ps.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
Oct 7 '07 #2
On Oct 7, 2:25 pm, "Shelly" <sheldonlg.n...@asap-consult.comwrote:
"shror" <shahi...@gmail.comwrote in message

news:11*********************@g4g2000hsf.googlegrou ps.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

Oct 7 '07 #3

"shror" <sh******@gmail.comwrote in message
news:11**********************@y42g2000hsy.googlegr oups.com...
On Oct 7, 2:25 pm, "Shelly" <sheldonlg.n...@asap-consult.comwrote:
>"shror" <shahi...@gmail.comwrote in message

news:11*********************@g4g2000hsf.googlegro ups.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
Oct 7 '07 #4
"Shelly" <sh************@asap-consult.comwrote in message
news:13*************@corp.supernews.com...
>
"shror" <sh******@gmail.comwrote in message
news:11*********************@g4g2000hsf.googlegrou ps.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.

Oct 7 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

68
D
by: Hans Aberg | last post by:
Is it not time to make a new language D drawing on the experiences from C and C++? Specifically, such a language should zip out the parts of C that are problematic and caused ambiguities and...
9
by: falcon | last post by:
Is there a way I can do time series calculation, such as a moving average in list comprehension syntax? I'm new to python but it looks like list comprehension's 'head' can only work at a value at...
2
by: Brian | last post by:
Hi - Does anyone know how Netflix manages its star rating system? The javascript is either computer generated or obfusicated. It's more trouble to reverse engineer than it's worth. I'm not...
3
by: R. Rajesh Jeba Anbiah | last post by:
I just checked the new GG Beta and came across this interesting ratings (ratings given by regulars/newbies to c.l.php regulars). I guess this might surprise for some. Poster - Avg -...
3
by: Rob Dob | last post by:
Hi, Does anyone know of a good, cheap, prefereably free ,net control that I can use that will aloow users to not only rate something i.e.: 1-5 stars but also post comments on whatever they are...
5
by: gubbachchi | last post by:
Hi, I need to store the star rated values in mysql. How will I do it. This is the code I have used to create the star rater, <ul class="star-rating small-star"> <li class="current-rating"...
4
by: MissElegant | last post by:
Hi every body I wanna find someone in here who'd create me a 5-star rating system for my website using Javascript. The script should accept the rating a user made and place a cookie on the...
3
by: Shumit | last post by:
Hi newbie here. Could someone tell me or point me in the direction of how to write the youtube type ratings stars where the images change colour as you go over them up to the star you are on...
0
by: silversubey | last post by:
I am trying to convert mssql triggers to mysql. I am very new to Mysql and would like some help with my code. My queries work but there has to be a more efficient way to write them. I would greatly...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.