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.