Urgent! Step by Step Portal Development

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

User avatar
g3ckO
Forum Contributor
Posts: 117
Joined: Mon Jul 12, 2004 2:57 am
Location: Malaysia
Contact:

Urgent! Step by Step Portal Development

Post by g3ckO »

Hye...

Anyone can tell me where can I get a complete tutorial on developing my own portal. I am looking for the tutorial that can teach me starting from creating the login page, user management, admin tools, forums, and the community page.

It is quite difficult for me to read from different sources because the coding is not the same so I cannot link from one page to another pages on my portal. It require a lot of change but with my skill level it is impossible for me to do that.

It is possible for me to get the complete codes with tutorial from any sources???
I have dowloaded some codes but it still difficult for me to change it to suite my need.

Anyone got any solutions??
Anyone willing to help me for free?? :)
Maybe I can buy you some drink when you come to Malaysia :lol:
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

Its going to be difficult for you to code a portal at your skill level.
I would recommend you head over to http://www.hotscripts.com and check out some of their portals and see how people do that. If you do not udnerstand some parts of it we can surely help you out.

I don't believe I've come across a tutorial that tutors you on to make a portal, because it would most likely be very long and complex.
User avatar
g3ckO
Forum Contributor
Posts: 117
Joined: Mon Jul 12, 2004 2:57 am
Location: Malaysia
Contact:

Anyone volunteer to be my tutor??

Post by g3ckO »

Anyone volunteer to be my tutor?

Start teach me on creating the login page with session.

TQ..
d3ad1ysp0rk
Forum Donator
Posts: 1661
Joined: Mon Oct 20, 2003 8:31 pm
Location: Maine, USA

Post by d3ad1ysp0rk »

I can't, but I found someone who can:

http://php.net/
http://google.com/
http://forums.devnetwork.net/

and the top 2 never sleep! :)
User avatar
g3ckO
Forum Contributor
Posts: 117
Joined: Mon Jul 12, 2004 2:57 am
Location: Malaysia
Contact:

Post by g3ckO »

Hmm..
That doesnt help much LiLpunkSkateR.

I still need personal tutor :)
User avatar
fresh
Forum Contributor
Posts: 259
Joined: Mon Jun 14, 2004 10:39 am
Location: Amerika

heres some more:

Post by fresh »

- ITT
- MIT
- any university

or you could self tutor yourself, by following the links the poster with the links (forgot name) gave to you... which are actually really good places to learn...

dont think anyone has the time or energy to teach anyone step by step anything, especially something as difficult as login sessions, etc... I built one, and took me 6 hours, just for the login part, not including the time I spent fixing my mistakes, which are plenty, I assure you...lol

I wish I could help more, but, I am too tired and new to truly tutor anyone, so check out the links, and see what you get... gd lk man :)


p.s. oh yeah check out some of my posts here, I gave a link to a place which helps out big time with login scripts and what not... ;)
User avatar
g3ckO
Forum Contributor
Posts: 117
Joined: Mon Jul 12, 2004 2:57 am
Location: Malaysia
Contact:

let me start 1st

Post by g3ckO »

This is the 1st thing I need to know:

The view user page output:

USER INFORMATION

--------------------------------------------------------------------------------
--------------------------------------------------------------------------------

Username: user1

Password: e99a18c428cb38d5f260853678922e03

Access Type: 2

Name: Khalid

Date Of Birth: 1976-08-20

IC No: 760820-04-5543

Mobile Phone No.: 013-1234567

House Phone No.: 03-87654321

Address: No. 10, JLN. 4, Ampang Jaya

Designation: Marketing Executive

Office: F

Department: H

Unit: -

Superior: qwe789

Leave Entitlement: 9

BF Leave: 8

Annual Leave Taken: 7

Medical Leave Taken: 6

--------------------------------------------------------------------------------

This is the code I use to display it:
Look so long just to make it look nice :)

Code: Select all

<?php
<?

$username="root";
$password="";
$database="db1";

mysql_connect(localhost,$username,$password);
@mysql_select_db($database) or die( "Unable to select database");
$query="SELECT * FROM employee";
$result=mysql_query($query);

$num=mysql_numrows($result);

mysql_close();

echo "<b><center><h3>USER INFORMATION</center></h3></b>";

$i=0;
while ($i < $num) {

   $ID=mysql_result($result,$i,"username");
   $Pass=mysql_result($result,$i,"password");
   $Access=mysql_result($result,$i,"AccType");
   $Name=mysql_result($result,$i,"EmpName");
   $Birth=mysql_result($result,$i,"EmpDOB");
   $IC=mysql_result($result,$i,"EmpIC");
   $Mobile=mysql_result($result,$i,"EmpMobileNO");
   $House=mysql_result($result,$i,"EmpHouseNO");
   $Address=mysql_result($result,$i,"EmpAdd");
   $Des=mysql_result($result,$i,"EmpDes");
   $Office=mysql_result($result,$i,"EmpOffice");
   $Dept=mysql_result($result,$i,"EmpDept");
   $Unit=mysql_result($result,$i,"EmpUnit");
   $Super=mysql_result($result,$i,"EmpSuper");
   $Ent=mysql_result($result,$i,"LeaveEnt");
   $BF=mysql_result($result,$i,"LeaveBF");
   $Annual=mysql_result($result,$i,"LeaveAnn");
   $Med=mysql_result($result,$i,"LeaveMed");
?>
   <hr>
   <font color="#671247" size="3" face="Verdana, Arial, Helvetica, sans-serif">
   <center><b>*****************************************</b></font></center>
   <hr>
   <div align="center"><center>
   <table border="1" cellpadding="2" cellspacing="1" width="100%">
    	<tr>
        <td align="left" valign="bottom" width="30%"
            bgcolor="#FFFFFF" valign="TOP" marginwidth="12" marginheight="12">

            <font color="#671247" size="3" face="Verdana, Arial, Helvetica, sans-serif">
            <b>Username</b></font>
        </td>
   <td align="left" valign="top" width="70%"
            bgcolor="#FFFFFF" marginwidth="12" marginheight="12">
	    
	    <font color="#671247" size="3" face="Verdana, Arial, Helvetica, sans-serif">
            <b><?echo "$ID";?></b></font>
        </td>
    	</tr>
   </table>

   <div align="center"><center>
   <table border="1" cellpadding="2" cellspacing="1" width="100%">
    	<tr>
        <td align="left" valign="bottom" width="30%"
            bgcolor="#FFFFFF" valign="TOP" marginwidth="12" marginheight="12">

            <font color="#671247" size="3" face="Verdana, Arial, Helvetica, sans-serif">
            <b>Password</b></font>
        </td>
   <td align="left" valign="top" width="70%"
            bgcolor="#FFFFFF" marginwidth="12" marginheight="12">
	    
	    <font color="#671247" size="3" face="Verdana, Arial, Helvetica, sans-serif">
            <b><?echo "$Pass";?></b></font>
        </td>
    	</tr>
   </table>

   <div align="center"><center>
   <table border="1" cellpadding="2" cellspacing="1" width="100%">
    	<tr>
        <td align="left" valign="bottom" width="30%"
            bgcolor="#FFFFFF" valign="TOP" marginwidth="12" marginheight="12">

            <font color="#671247" size="3" face="Verdana, Arial, Helvetica, sans-serif">
            <b>Access Type</b></font>
        </td>
   <td align="left" valign="top" width="70%"
            bgcolor="#FFFFFF" marginwidth="12" marginheight="12">
	    
	    <font color="#671247" size="3" face="Verdana, Arial, Helvetica, sans-serif">
            <b><?echo "$Access";?></b></font>
        </td>
    	</tr>
   </table>

   <div align="center"><center>
   <table border="1" cellpadding="2" cellspacing="1" width="100%">
    	<tr>
        <td align="left" valign="bottom" width="30%"
            bgcolor="#FFFFFF" valign="TOP" marginwidth="12" marginheight="12">

            <font color="#671247" size="3" face="Verdana, Arial, Helvetica, sans-serif">
            <b>Name</b></font>
        </td>
   <td align="left" valign="top" width="70%"
            bgcolor="#FFFFFF" marginwidth="12" marginheight="12">
	    
	    <font color="#671247" size="3" face="Verdana, Arial, Helvetica, sans-serif">
            <b><?echo "$Name";?></b></font>
        </td>
    	</tr>
   </table>
   </center></div>

   <div align="center"><center>
   <table border="1" cellpadding="2" cellspacing="1" width="100%">
    	<tr>
        <td align="left" valign="bottom" width="30%"
            bgcolor="#FFFFFF" valign="TOP" marginwidth="12" marginheight="12">

            <font color="#671247" size="3" face="Verdana, Arial, Helvetica, sans-serif">
            <b>Date Of Birth</b></font>
        </td>
   <td align="left" valign="top" width="70%"
            bgcolor="#FFFFFF" marginwidth="12" marginheight="12">
	    
	    <font color="#671247" size="3" face="Verdana, Arial, Helvetica, sans-serif">
            <b><?echo "$Birth";?></b></font>
        </td>
    	</tr>
   </table>
   </center></div>

   <div align="center"><center>
   <table border="1" cellpadding="2" cellspacing="1" width="100%">
    	<tr>
        <td align="left" valign="bottom" width="30%"
            bgcolor="#FFFFFF" valign="TOP" marginwidth="12" marginheight="12">

            <font color="#671247" size="3" face="Verdana, Arial, Helvetica, sans-serif">
            <b>IC No</b></font>
        </td>
   <td align="left" valign="top" width="70%"
            bgcolor="#FFFFFF" marginwidth="12" marginheight="12">
	    
	    <font color="#671247" size="3" face="Verdana, Arial, Helvetica, sans-serif">
            <b><?echo "$IC";?></b></font>
        </td>
    	</tr>
   </table>


   <div align="center"><center>
   <table border="1" cellpadding="2" cellspacing="1" width="100%">
    	<tr>
        <td align="left" valign="bottom" width="30%"
            bgcolor="#FFFFFF" valign="TOP" marginwidth="12" marginheight="12">

            <font color="#671247" size="3" face="Verdana, Arial, Helvetica, sans-serif">
            <b>Mobile Phone No.</b></font>
        </td>
   <td align="left" valign="top" width="70%"
            bgcolor="#FFFFFF" marginwidth="12" marginheight="12">
	    
	    <font color="#671247" size="3" face="Verdana, Arial, Helvetica, sans-serif">
            <b><?echo "$Mobile";?></b></font>
        </td>
    	</tr>
   </table>

   <div align="center"><center>
   <table border="1" cellpadding="2" cellspacing="1" width="100%">
    	<tr>
        <td align="left" valign="bottom" width="30%"
            bgcolor="#FFFFFF" valign="TOP" marginwidth="12" marginheight="12">

            <font color="#671247" size="3" face="Verdana, Arial, Helvetica, sans-serif">
            <b>House Phone No.</b></font>
        </td>
   <td align="left" valign="top" width="70%"
            bgcolor="#FFFFFF" marginwidth="12" marginheight="12">
	    
	    <font color="#671247" size="3" face="Verdana, Arial, Helvetica, sans-serif">
            <b><?echo "$House";?></b></font>
        </td>
    	</tr>
   </table>

   <div align="center"><center>
   <table border="1" cellpadding="2" cellspacing="1" width="100%">
     	<tr>
        <td align="left" valign="bottom" width="30%"
            bgcolor="#FFFFFF" valign="TOP" marginwidth="12" marginheight="12">

            <font color="#671247" size="3" face="Verdana, Arial, Helvetica, sans-serif">
            <b>Address</b></font>
        </td>
   <td align="left" valign="top" width="70%"
            bgcolor="#FFFFFF" marginwidth="12" marginheight="12">
	    
	    <font color="#671247" size="3" face="Verdana, Arial, Helvetica, sans-serif">
            <b><?echo "$Address";?></b></font>
        </td>
    	</tr>
   </table>

   <div align="center"><center>
   <table border="1" cellpadding="2" cellspacing="1" width="100%">
    	<tr>
        <td align="left" valign="bottom" width="30%"
            bgcolor="#FFFFFF" valign="TOP" marginwidth="12" marginheight="12">

            <font color="#671247" size="3" face="Verdana, Arial, Helvetica, sans-serif">
            <b>Designation</b></font>
        </td>
   <td align="left" valign="top" width="70%"
            bgcolor="#FFFFFF" marginwidth="12" marginheight="12">
	    
	    <font color="#671247" size="3" face="Verdana, Arial, Helvetica, sans-serif">
            <b><?echo "$Des";?></b></font>
        </td>
    	</tr>
   </table>

   <div align="center"><center>
   <table border="1" cellpadding="2" cellspacing="1" width="100%">
    	<tr>
        <td align="left" valign="bottom" width="30%"
            bgcolor="#FFFFFF" valign="TOP" marginwidth="12" marginheight="12">

            <font color="#671247" size="3" face="Verdana, Arial, Helvetica, sans-serif">
            <b>Office</b></font>
        </td>
   <td align="left" valign="top" width="70%"
            bgcolor="#FFFFFF" marginwidth="12" marginheight="12">
	    
	    <font color="#671247" size="3" face="Verdana, Arial, Helvetica, sans-serif">
            <b><?echo "$Office";?></b></font>
        </td>
    	</tr>
   </table>

   <div align="center"><center>
   <table border="1" cellpadding="2" cellspacing="1" width="100%">
    	<tr>
        <td align="left" valign="bottom" width="30%"
            bgcolor="#FFFFFF" valign="TOP" marginwidth="12" marginheight="12">

            <font color="#671247" size="3" face="Verdana, Arial, Helvetica, sans-serif">
            <b>Department</b></font>
        </td>
   <td align="left" valign="top" width="70%"
            bgcolor="#FFFFFF" marginwidth="12" marginheight="12">
	    
	    <font color="#671247" size="3" face="Verdana, Arial, Helvetica, sans-serif">
            <b><?echo "$Dept";?></b></font>
        </td>
    	</tr>
   </table>

   <div align="center"><center>
   <table border="1" cellpadding="2" cellspacing="1" width="100%">
    	<tr>
        <td align="left" valign="bottom" width="30%"
            bgcolor="#FFFFFF" valign="TOP" marginwidth="12" marginheight="12">

            <font color="#671247" size="3" face="Verdana, Arial, Helvetica, sans-serif">
            <b>Unit</b></font>
        </td>
   <td align="left" valign="top" width="70%"
            bgcolor="#FFFFFF" marginwidth="12" marginheight="12">
	    
	    <font color="#671247" size="3" face="Verdana, Arial, Helvetica, sans-serif">
            <b><?echo "$Unit";?></b></font>
        </td>
    	</tr>
   </table>

   <div align="center"><center>
   <table border="1" cellpadding="2" cellspacing="1" width="100%">
    	<tr>
        <td align="left" valign="bottom" width="30%"
            bgcolor="#FFFFFF" valign="TOP" marginwidth="12" marginheight="12">

            <font color="#671247" size="3" face="Verdana, Arial, Helvetica, sans-serif">
            <b>Superior</b></font>
        </td>
   <td align="left" valign="top" width="70%"
            bgcolor="#FFFFFF" marginwidth="12" marginheight="12">
	    
	    <font color="#671247" size="3" face="Verdana, Arial, Helvetica, sans-serif">
            <b><?echo "$Super";?></b></font>
        </td>
    	</tr>
   </table>

   <div align="center"><center>
   <table border="1" cellpadding="2" cellspacing="1" width="100%">
    	<tr>
        <td align="left" valign="bottom" width="30%"
            bgcolor="#FFFFFF" valign="TOP" marginwidth="12" marginheight="12">

            <font color="#671247" size="3" face="Verdana, Arial, Helvetica, sans-serif">
            <b>Leave Entitlement</b></font>
        </td>
   <td align="left" valign="top" width="70%"
            bgcolor="#FFFFFF" marginwidth="12" marginheight="12">
	    
	    <font color="#671247" size="3" face="Verdana, Arial, Helvetica, sans-serif">
            <b><?echo "$Ent";?></b></font>
        </td>
    	</tr>
   </table>

   <div align="center"><center>
   <table border="1" cellpadding="2" cellspacing="1" width="100%">
    	<tr>
        <td align="left" valign="bottom" width="30%"
            bgcolor="#FFFFFF" valign="TOP" marginwidth="12" marginheight="12">

            <font color="#671247" size="3" face="Verdana, Arial, Helvetica, sans-serif">
            <b>BF Leave</b></font>
        </td>
   <td align="left" valign="top" width="70%"
            bgcolor="#FFFFFF" marginwidth="12" marginheight="12">
	    
	    <font color="#671247" size="3" face="Verdana, Arial, Helvetica, sans-serif">
            <b><?echo "$BF";?></b></font>
        </td>
    	</tr>
   </table>

   <div align="center"><center>
   <table border="1" cellpadding="2" cellspacing="1" width="100%">
    	<tr>
        <td align="left" valign="bottom" width="30%"
            bgcolor="#FFFFFF" valign="TOP" marginwidth="12" marginheight="12">

            <font color="#671247" size="3" face="Verdana, Arial, Helvetica, sans-serif">
            <b>Annual Leave Taken</b></font>
        </td>
   <td align="left" valign="top" width="70%"
            bgcolor="#FFFFFF" marginwidth="12" marginheight="12">
	    
	    <font color="#671247" size="3" face="Verdana, Arial, Helvetica, sans-serif">
            <b><?echo "$Annual";?></b></font>
        </td>
    	</tr>
   </table>

   <div align="center"><center>
   <table border="1" cellpadding="2" cellspacing="1" width="100%">
    	<tr>
        <td align="left" valign="bottom" width="30%"
            bgcolor="#FFFFFF" valign="TOP" marginwidth="12" marginheight="12">

            <font color="#671247" size="3" face="Verdana, Arial, Helvetica, sans-serif">
            <b>Medical Leave Taken</b></font>
        </td>
   <td align="left" valign="top" width="70%"
            bgcolor="#FFFFFF" marginwidth="12" marginheight="12">
	    
	    <font color="#671247" size="3" face="Verdana, Arial, Helvetica, sans-serif">
            <b><?echo "$Med";?></b></font>
        </td>
    	</tr>
   </table>

<?
   $i++;
   
}
?>

   <form action="homeAdmin.php" method="post">
   <input type="submit" value="Back" name="Back"><br></form>

?>
Here is my question:

How can I make only the current user to change some of the info about him/herself. Another one is for the admin to change it. UPDATE AND DELETE

The data about the user is stored in table employee
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

LiLpunkSkateR wrote:I can't, but I found someone who can:

http://php.net/
http://google.com/
http://forums.devnetwork.net/

and the top 2 never sleep! :)
g3ckO wrote:Hmm..
That doesnt help much LiLpunkSkateR.

I still need personal tutor :)
OMG MR. GOOGLE IS THE BEST TUTOR KNOWN TO MAN..
excuse caps.
User avatar
g3ckO
Forum Contributor
Posts: 117
Joined: Mon Jul 12, 2004 2:57 am
Location: Malaysia
Contact:

Post by g3ckO »

What can i say............ :cry:
User avatar
fresh
Forum Contributor
Posts: 259
Joined: Mon Jun 14, 2004 10:39 am
Location: Amerika

well

Post by fresh »

you would want to use session vars, if the user comes to that page, and doesn't have the right session var then the script would boot them somewhere esle, check out, php.net for this one, or like I said find some of my posts, they talk about this very thing... gd lk

p.s. dont cry man ... jk ;)
User avatar
PrObLeM
Forum Contributor
Posts: 418
Joined: Sun Mar 07, 2004 2:30 pm
Location: Mesa, AZ
Contact:

Post by PrObLeM »

i dont know...you may be getting over your head by starting that big...you should build your skills up before you try and tackle such a project....
User avatar
g3ckO
Forum Contributor
Posts: 117
Joined: Mon Jul 12, 2004 2:57 am
Location: Malaysia
Contact:

Post by g3ckO »

DELETE
Last edited by g3ckO on Tue Jul 13, 2004 8:55 pm, edited 1 time in total.
User avatar
fresh
Forum Contributor
Posts: 259
Joined: Mon Jun 14, 2004 10:39 am
Location: Amerika

well

Post by fresh »

I would make the default page to the restricted area a login page, and just query the DB to make sure both the username and pass entered matches up, if not they get a free trip to disney land, if so, they are welcomed in... ;)

And to be honest with you, I am too new to code something on the fly, dont want to give you any bad habits, hang out for a while and hopefully feyd or someone will come by... gd lk man, I know you gotta be stressing this ;)
User avatar
g3ckO
Forum Contributor
Posts: 117
Joined: Mon Jul 12, 2004 2:57 am
Location: Malaysia
Contact:

Post by g3ckO »

I think its not that big.

For know I just need to learn on login page, and admin tools such as add/delete/view/update the user data.

I want to develop my skill on this part first.
So I need someone to help :)
User avatar
g3ckO
Forum Contributor
Posts: 117
Joined: Mon Jul 12, 2004 2:57 am
Location: Malaysia
Contact:

Post by g3ckO »

FILE DELETED
Last edited by g3ckO on Tue Jul 13, 2004 8:56 pm, edited 1 time in total.
Post Reply