General Question

poisonedantidote's avatar

Could you link me to some good PHP tutorials that cover the following topics?

Asked by poisonedantidote (21650points) January 23rd, 2011

So, my friend who does all my PHP is busy for the next couple of days, So I have decided to finally look in to it.

I need to know how to:

* Pass variables between 3rd party scripts.
* Read variables from a MySQL database.
* Write variables to a MySQL database.
* Create functions with If and Else conditions.

Any tutorials you can link me to, or any ebooks you can name would help. thanks.

Observing members: 0 Composing members: 0

6 Answers

Vortico's avatar

I’m not sure what you mean by pass variables between 3rd party scripts. Are these PHP scripts or client-side Javascript API requests?

For all your MySQL needs, the Mysqli (MySQL Improved) Extension will have you covered. It gives good examples on almost every page, so the PHP manual is probably the best way to learn about this extension. Remember to always use prepared statements for user-entered data to keep the code secure.

The manual covers the syntax pretty well, but here’s a quick example of the function, if, and while blocks.

lapilofu's avatar

The PHP documentation itself is surprisingly comprehensive and legible. Check out these pages:

* For PHP MySQL functions but you’ll also want to learn some SQL
* Learn about control structures for If-Else constructions.
* Passing vars from third party scripts is going to vary on a case-by-case basis. What scripts are you looking at?

poisonedantidote's avatar

Thanks guys, sorry for the delayed response, i went to sleep more or less as soon as i asked this.

@Vortico & @lapilofu RE: 3rd party scripts.

well, I don’t know exactly cause im a total noob to php, but im mainly interested in having php pull an entry from a database and pass it to flash AS3.0 as a string variable.

Vincentt's avatar

This sounds like this will be more work for your friend to clean up when he’s back then it would be for him to code the thing in the first place. If you’re really completely new to PHP, I would really just wait for your friend to have time again.

poisonedantidote's avatar

@Vincentt Thanks, in theory that’s some good advice, but it’s not really a big project or anything like that. I don’t need to become proficcient in PHP, a couple of basic scripts that i can modify and im done.

Response moderated (Spam)

Answer this question




to answer.

This question is in the General Section. Responses must be helpful and on-topic.

Your answer will be saved while you login or join.

Have a question? Ask Fluther!

What do you know more about?
Knowledge Networking @ Fluther