Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
October 7, 2007, 11:57 am
rate this thread
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
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.
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.
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.
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
It's a little badge of honor to hack developers.
- » would it be more natural if it is "loopover ($arr as $value)"
- — Next thread in » PHP Scripting Forum