TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 04-08-2005, 01:25 AM   #1 (permalink)
The Wanderer
 
Join Date: Apr 2005
Posts: 7
Thanks: 0
Danny Needs Help is on a distinguished road
Default Why hello there

Well, I just started PHP, so bear with me :).

Here are my first questions:
  • What does '=>' mean?
  • How do you define/call classes?
  • How do you delete things stored in a MySQL table?
  • How do you edit things stored in a MySQL table?

Thanks :)
__________________
[DigitalFlavor]Web Design

Last edited by Danny Needs Help : 04-08-2005 at 03:39 PM.
Send a message via AIM to Danny Needs Help
Danny Needs Help is offline  
Reply With Quote
Old 04-08-2005, 01:42 AM   #2 (permalink)
The Acquainted
 
Join Date: Mar 2005
Posts: 177
Thanks: 0
CreativeLogic is on a distinguished road
Default

What does '=>' mean?
The => operator is used to define arrays. When you create an array, you will have both indexes and values. You then create the array with the following syntax seperated by commas, index => values.

How do you define/call classes?
This is a bit more complicated. Are you asking how to create and use the class? I'll write up a tutorial for you soon to show you how to do this.

How do you delete things stored in a MySQL table?
You will create a query using php's mysql_query function. Here is an example of how you would delete something:
PHP Code:
mysql_query("DELETE FROM table WHERE column = 'value'"
How do you edit things stored in a MySQL table?
You will first use the same function as above creating a new query. Follows is an example:
PHP Code:
mysql_query("UPDATE table SET column = 'newvalue' WHERE column = 'value'"
Note: You don't have to include WHERE or any of the following information in the above two examples.

Let me know if that helps any. If you don't understand it I'll do my best to change my words.

By the way, welcome to the forums and hope to see you around more! ;)
CreativeLogic is offline  
Reply With Quote
Old 04-08-2005, 03:18 PM   #3 (permalink)
The Wanderer
 
Join Date: Apr 2005
Posts: 7
Thanks: 0
Danny Needs Help is on a distinguished road
Thanks for the help :). I still dont quite get Arrays, but I just got my SitePoint book "Build Your Own Database Driven Website Using PHP and MySQL", so I should learn a little faster.

Edit// By the way, if you ever run out of ideas on what to write tutorials about, I am full of things I need to learn ;).
__________________
[DigitalFlavor]Web Design

Last edited by Danny Needs Help : 04-08-2005 at 03:39 PM.
Send a message via AIM to Danny Needs Help
Danny Needs Help is offline  
Reply With Quote
Old 04-08-2005, 06:25 PM   #4 (permalink)
The Acquainted
 
Join Date: Mar 2005
Posts: 177
Thanks: 0
CreativeLogic is on a distinguished road
Default

Check out www.php.net/array - it's full of information. Read through it and it will help you a ton. If you don't understand still feel free to keep asking.

As for the tutorials, yes we could use some ideas from someone who would actually use the tutorials.
CreativeLogic is offline  
Reply With Quote
Old 04-08-2005, 06:58 PM   #5 (permalink)
The Wanderer
 
Join Date: Apr 2005
Posts: 7
Thanks: 0
Danny Needs Help is on a distinguished road
Default

Form Processing/Mailing would be a good first tutorial :).
__________________
[DigitalFlavor]Web Design
Send a message via AIM to Danny Needs Help
Danny Needs Help is offline  
Reply With Quote
Old 04-09-2005, 09:40 PM   #6 (permalink)
The Acquainted
 
Join Date: Mar 2005
Posts: 177
Thanks: 0
CreativeLogic is on a distinguished road
Default

Don't forget there are also multi-dementional arrays. You probably wouldn't need them for sometime until you fully understand single-dementional arrays.

Last edited by CreativeLogic : 04-10-2005 at 12:36 AM.
CreativeLogic is offline  
Reply With Quote
Old 04-10-2005, 12:48 AM   #7 (permalink)
The Wanderer
 
Join Date: Apr 2005
Location: Missouri, USA
Posts: 15
Thanks: 0
William is on a distinguished road
Default

Quote:
Originally Posted by Danny Needs Help
Form Processing/Mailing would be a good first tutorial :).
mailing is done. Form processing next.
Send a message via AIM to William Send a message via MSN to William
William is offline  
Reply With Quote
Old 04-10-2005, 12:59 AM   #8 (permalink)
The Wanderer
 
Join Date: Apr 2005
Location: Missouri, USA
Posts: 15
Thanks: 0
William is on a distinguished road
Default

Form Processing is done.
Send a message via AIM to William Send a message via MSN to William
William is offline  
Reply With Quote
Old 04-10-2005, 12:52 PM   #9 (permalink)
The Wanderer
 
Join Date: Apr 2005
Posts: 7
Thanks: 0
Danny Needs Help is on a distinguished road
Default

Omghai2ujon!

So I geuss saying a URL means you go and register there now? But yes, thanks for the help.

I'll go check out those tutorials William :).
__________________
[DigitalFlavor]Web Design
Send a message via AIM to Danny Needs Help
Danny Needs Help is offline  
Reply With Quote
Old 04-10-2005, 07:35 PM   #10 (permalink)
The Wanderer
 
Join Date: Apr 2005
Posts: 7
Thanks: 0
Danny Needs Help is on a distinguished road
Default

I mean I mentioned this site, and you came, and registered. Oh well :).
__________________
[DigitalFlavor]Web Design
Send a message via AIM to Danny Needs Help
Danny Needs Help is offline  
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 05:59 PM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design