Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Learning PHP, need specific resources
Old 11-14-2008, 09:06 PM Learning PHP, need specific resources
Mark Henderson's Avatar
Extreme Talker

Posts: 207
Name: Mark Henderson
Location: Yorkshire
Trades: 0
Hey everyone I have used google and come across some pretty cool tutorials, but i need some that are easy to follo and target the things i want to learn.

I know the basic layout of php, like the <?php ?> and the ; & $ == - + symbols. I know some basic functions too.

What i want is some tutorials for the main things i want to learn:

Login Systems
Variables
Adding/retrieving information in MySQL DB
User permissions
Using TinyMCE or other WYSIWYG


If you could point me in the direction of any tutorials that helped you lear these, i would be very happy

Thanks
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
- Affordable Web/Graphics Design -
Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
ify - WHOIS Lookup, reverse IP, traceroute and more!
Mark Henderson is offline
Reply With Quote
View Public Profile Visit Mark Henderson's homepage!
 
 
Register now for full access!
Old 11-15-2008, 01:59 AM Re: Learning PHP, need specific resources
Super Talker

Posts: 102
Trades: 0
Google is your friend 1st off.
http://us3.php.net/manual/en/index.php
Aaron™ is offline
Reply With Quote
View Public Profile
 
Old 11-15-2008, 07:17 AM Re: Learning PHP, need specific resources
Mark Henderson's Avatar
Extreme Talker

Posts: 207
Name: Mark Henderson
Location: Yorkshire
Trades: 0
Read the post man, i just said i have already used google...

Put the e***** away and help a guy out
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
- Affordable Web/Graphics Design -
Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
ify - WHOIS Lookup, reverse IP, traceroute and more!
Mark Henderson is offline
Reply With Quote
View Public Profile Visit Mark Henderson's homepage!
 
Old 11-15-2008, 12:17 PM Re: Learning PHP, need specific resources
Super Talker

Posts: 102
Trades: 0
I just gave you a link to a great tutorial site.
Aaron™ is offline
Reply With Quote
View Public Profile
 
Old 11-15-2008, 02:07 PM Re: Learning PHP, need specific resources
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,385
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
???
It's a link to the PHP reference manual NOT a tutorial site.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 11-15-2008, 02:25 PM Re: Learning PHP, need specific resources
Defies a Status

Posts: 1,606
Trades: 0
I think maybe Aaron is saying you might want to learn at least a few of the basics instead of just copying someone else's work.

Begining PHP5 the book by WROX is a good start with a lot of downloadable examples. Several of your items are addressed there.
__________________
Colbyt

Please login or register to view this content. Registration is FREE
colbyt is offline
Reply With Quote
View Public Profile
 
Old 11-15-2008, 06:37 PM Re: Learning PHP, need specific resources
Super Talker

Posts: 102
Trades: 0
Why do you need tutorials when you can just read the manual, tutorials come after you read the manual.
Aaron™ is offline
Reply With Quote
View Public Profile
 
Old 11-15-2008, 08:47 PM Re: Learning PHP, need specific resources
Experienced Talker

Posts: 41
Name: Jabis Sevon
Location: Tampere, Finland
Trades: 0
Quote:
Originally Posted by Aaron™ View Post
Why do you need tutorials when you can just read the manual, tutorials come after you read the manual.
Because the reference manual is totally overwhelming when it comes down to your first "hello world" prog using php. It's just as good as a tutorial, as giving a service manual to a pilot on his first training flight, when all he has to do, is interact with the cockpit and get a feel to flying, and not the mechanics of flying :>

http://devzone.zend.com/node/view/id/627 here's a good PHP5 101 article which covers a lots of basics

I've to agree that google is your answer, giving it a keyword like php tutorials gives 2 100 000 hits, and the ones in the first page would prolly serve quite good as a simple reference point :>
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
jabis is offline
Reply With Quote
View Public Profile Visit jabis's homepage!
 
Old 11-15-2008, 09:03 PM Re: Learning PHP, need specific resources
Skilled Talker

Posts: 88
Trades: 0
Hi I know you said you used google, so you allready probably saw this site: http://www.tizag.com/phpT/

I know php and when i first started learning it that was the best site i saw, the official php site complicated and confused me to hell it wasn't tutorialised and i would say only use that once you know php not when your getting to know it.

Ok so some of the things you mentioned caught my eye, the login. The first thing i did was got a friend to make me a login and i looked at the code and understood it then made my own, basically you can make them using sessions and cookies, you can decide which one is best for your needs because they both have pro's and cons.

Variables i actually do not completly understand because i can write the php code but some things like arrays, variables i cannot understand and i need to understand things completely sometimes but anyway i can write them and thats by looking at other peoples work and using my web knowledge to it.

Adding and retreiving info from a db is the easiest thing i think you can do, basically they are insert and select statements, here is a select statement i wrote for my site:

$name = urldecode($_GET['name']);

$result3 = mysql_query("SELECT * FROM pages WHERE name='$name'");
$row3=mysql_fetch_array($result3);

and another - this is a while loop

$result2 = mysql_query("SELECT * from pages WHERE nav='1' ORDER BY name ASC LIMIT 0,5");
while($row2 = @mysql_fetch_array($result2))
{
echo "content goes here";
}

the while loop loops the content between the brackets, the other doesn't loop content.

<?php
include("includes/config.php");
error_reporting(E_ALL);
if (isset($_POST['submit']))
{

$groupname = $_POST['groupname'];



$q = "INSERT INTO usergroups (groupname)
VALUES ('$groupname')";



$result = mysql_query($q,$connect);

echo "<div class='block'>
<div class='left'><img src='acpstyle/topleft.jpg' alt='topleft' /></div>
<div class='right'><img src='acpstyle/topright.jpg' alt='topright' /></div>
<div class='clr'></div>
</div>
<div class='block' style='padding: 10px'><b>Thank you! Usergroup added Successfully!<br>You'll be redirected to Home Page after (4) Seconds";
echo "<meta http-equiv=Refresh content=4;url=usergroups.php></div>
<div class='block'>
<div class='left'><img src='acpstyle/bottomleft.jpg' alt='bottomleft' /></div>
<div class='right'><img src='acpstyle/bottomright.jpg' alt='bottomright' /></div>
<div class='clr'></div>
</div>";
}



else
{

?>
<form method="post" action="addusergroup.php">
<div class="block">
<div class="left"><img src="acpstyle/topleft.jpg" alt="topleft" /></div>
<div class="right"><img src="acpstyle/topright.jpg" alt="topright" /></div>
<div class="clr"></div>
</div>
<div class="block" style="padding: 10px">
<div>Group Title</div>
<div><input name="groupname" size="40" maxlength="255"></div>
</div>
<div class="block">
<div class="left"><img src="acpstyle/bottomleft.jpg" alt="bottomleft" /></div>
<div class="right"><img src="acpstyle/bottomright.jpg" alt="bottomright" /></div>
<div class="clr"></div>
</div>

<div style="margin-top: 6px"><input type="submit" name="submit" value="Add Usergroup"></div>
</form>
<?
}


?>

is a insert comment i did a while ago:

a person a long time ago always told me put your php before your html in the header of the document as its always passed before the html, note this person went onto own his own web company and is very clever so although some don't agree with the method its always worked for me.

I actually started making content management systems, my very first for my university dissertation then went onto make a 2nd for a web company which was a lot more in between those times i had learn't alot in php and have gone onto make links scripts, my own cms from my own site which uses 1 page to make all other pages off (still working on this but its up there live)

On the web company cms i used tinymce for the wysiwyg editor, i found it hard at first and didn't know why but found out it works best if your textarea fields are the same name as the demo shows, unfortunately in industry you cannot go through slowly learning and changing to what you want so i had to keep the same name as the demo had.

User permissions i never had to deal with unless while uploading files but then i found tinymce and the plugin dealt with that for me. I hope this helps, sorry its a bit vague as i used a lot of books when learning, if you want their ISBN numbers just let me know.
__________________
Graham Barnes


Please login or register to view this content. Registration is FREE

Last edited by xpguy; 11-15-2008 at 09:05 PM..
xpguy is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Learning PHP, need specific resources
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

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





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.31131 seconds with 12 queries