The "Freeola Customer Forum" forum, which includes Retro Game Reviews, has been archived and is now read-only. You cannot post here or create a new thread or review on this forum.
First off the basics.
I've looked at PHP once or twice before, so hopefully that wont be to bad.
Did a bit on SQL ages ago as well as some database work but I'm not sure whats different between SQL and mySQL.
Have downloaded all the stuff for apache, php and mySQL from [URL]http://www.aesthetic-theory.com/learn.php?server2[/URL] and installed before but something went wrong so I'm in the process of installing again just to make sure its all working properly.
Just not sure where to start.
Have a few ebooks to try make things easier but a few things that don't seem to clear....
mySQL files, someone give me an example of one and what the file type they are?
No doubt a few more things will crop up so I'll post them here too :0)
Thanks
> MySQL supports a type/version of SQL, not the SQL standard.
Really? I was under the impression MySQL supported SQL completely, with a few additional MySQL custom SQL'd extras.
I used PHP in 24 hours from SAMS publishing to get me started, as well as online examples, and SQL mainly from an Open University course. I learnt HTML and JavaScript from a book, and CSS, xHTML and how to write better markup online.
> I'm getting the impression that people think SQL and
> mySQL are rivals, but this isn't the case.
>
> SQL, Structured Query Language, is a
> database syntax language used to standardise the way a database is
> connected to. The hope was that all database would use this same
> syntax so that developers wouldn't have to be concerned with learning
> new syntax when converting to new database applications. When you
> write the syntax to add a row of data to a table, that should work
> with any database that understands the SQL syntax.
>
> mySQL is a database application, much like Microsoft Access or
> Oracle. It stores and manages your data for you, but uses SQL
> syntax to allow you to access and alter that data. The name
> mySQL comes from the use of SQL syntax, not as a rival
> database.
>
> mySQL isn't designed with a graphical front end like Microsoft
> Access, so you have to enter the SQL commands manually.
>
> Programs such as mysql-front and phpMyAdmin were put
> together to create a graphical front end for users, and creates the
> SQL syntax for you.
>
> Well, I'm not sure if that above made much sense, as I'm half asleep
> here, so in summary, SQL is just a language, while
> mySQL is a database application/software/program that makes
> use of the SQL syntax (hence the name).
All very interesting, but totally irrelevant to what I said. ;)
MySQL supports a type/version of SQL, not the SQL standard, hence my original assertion.
Looking for anything that might make the learning a bit quicker.
PHP now comes with register_globals turned off by default, meaning that single variables for each value passed into a script are no longer created for you.
This also affects forms and query strings. Previously, when submitting a form, variables were created to match the name of each input element, and the value for that element would be stored in the created variable, for example:
name="username" /> - user entered Chris
name="password" /> - user entered 123abc
Once submitted PHP would see the name/value pair of username and Chris, along with the name/value pair of password and 123abc, and create the variables for you, like so:
$username = "Chris";
$password = "123abc";
With register_globals turned off now, that doesn't happen, instead each name/value pair is stored in a superglobal variable, such as:
$_POST['username'] = "Chris";
$_POST['password'] = "123abc";
It might be that the tutorials you're reading are simply out-dated. PHP, as an open source community, is continually updated and added to. The whole register_globals issue being on of the recent changes.
if ($submit)
Says the variable is undefined, which would be correct as there is no code to define it.
Also the code uses
printf("%s %s \n", $PHP_SELF, $myrow["id"], $myrow["first"], $myrow["last"]);
$PHP_SELF - when I submit the form I get a forbidden message and nothing is added to the database. Again undefined variable.
Are these predefined variables with a specific function that have a use in php and It's just not set up properly? Would expect the code on the tutorials to be correct.
For $PHP_SELF it says - This variable, which stores the script's name and location, is passed along with every PHP page.
Anyone know why its not working
Anyone help please
> I'm not sure whats different between SQL and mySQL.
Pandaemonium wrote:
> Very Little. MySQL is opensource. It's not as advanced as say Oracle,
> but other than that I can't say.
Garin wrote:
> If you've done SQL before you'll be pretty comfortable with MySQL,
> syntax is pretty much identical, except when you move into more
> advanced stuff.
I'm getting the impression that people think SQL and mySQL are rivals, but this isn't the case.
SQL, Structured Query Language, is a database syntax language used to standardise the way a database is connected to. The hope was that all database would use this same syntax so that developers wouldn't have to be concerned with learning new syntax when converting to new database applications. When you write the syntax to add a row of data to a table, that should work with any database that understands the SQL syntax.
mySQL is a database application, much like Microsoft Access or Oracle. It stores and manages your data for you, but uses SQL syntax to allow you to access and alter that data. The name mySQL comes from the use of SQL syntax, not as a rival database.
mySQL isn't designed with a graphical front end like Microsoft Access, so you have to enter the SQL commands manually.
Programs such as mysql-front and phpMyAdmin were put together to create a graphical front end for users, and creates the SQL syntax for you.
Well, I'm not sure if that above made much sense, as I'm half asleep here, so in summary, SQL is just a language, while mySQL is a database application/software/program that makes use of the SQL syntax (hence the name).
Much appreciated.
Tutorials made everything much simpler and the mysql stuff is fairly similar to stuff I'd done before which is good to know. Just need to get php mastered in a short time :-)
> phpMyAdmin is a very powerful, web-based database administration tool.
> You can view/edit database/table structures, as well as modify table
> data. Depending on priveleges, you can also do things like modify
> user rights and things.
Thaks for bringing that to my attention. Excellent pience of software. Confusing at first glance yeas, but it looks like the mutts nuts.