This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2012-07-31 21:44:47

chanmanpartyman
Scratcher
Registered: 2011-05-30
Posts: 500+

PHP/MySQL Question - Global variables

When you declare a global variable in PHP, does it automatically add it to your MySQL database, or do you have to declare the variable in SQL?
I'm starting to learn PHP for Scratch SWF.

If not can someone show me how to add variables to your database?

Last edited by chanmanpartyman (2012-07-31 21:51:45)

Offline

 

#2 2012-07-31 23:04:27

nickbrickmaster
Scratcher
Registered: 2010-02-02
Posts: 500+

Re: PHP/MySQL Question - Global variables

No. PHP variables are different than MySQL fields. I suggest learning SQL and then learning how to interact between the two. You can learn both at W3Schools.


Ask me what I'm doing, wait an hour than roll a die, if it's 4-6, I'm playing Skyrim, if it's 1, I'm eating, if it's 2-3 I'm programming.
Steam: nickbrickmaster | RotMG: PwnThemAll | Minecraft: nickbrickmaster | League Of Legends: BaneOfTitans

Offline

 

#3 2012-08-01 00:39:26

chanmanpartyman
Scratcher
Registered: 2011-05-30
Posts: 500+

Re: PHP/MySQL Question - Global variables

nickbrickmaster wrote:

No. PHP variables are different than MySQL fields. I suggest learning SQL and then learning how to interact between the two. You can learn both at W3Schools.

That's where I am learning PHP at. I guess I was too eager to work with MySQL. I'll suggest this to be closed.

Offline

 

#4 2012-08-01 00:43:22

cheddargirl
Scratch Team
Registered: 2008-09-15
Posts: 1000+

Re: PHP/MySQL Question - Global variables

Closed by request.


http://i.imgur.com/8QRYx.png
Everything is better when you add a little cheddar, because when you have cheese your life is at ease  smile

Offline

 

Board footer