473,509 Members | 2,918 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Building a PHP website

nomad
664 Recognized Expert Contributor
Hello Everyone:
I might need your help in the coming months.
I will be helping build a website for a on-line School written in PHP, SQL, HTML, XML and flash
I know some PHP and SQL enough to get into trouble.
What I'm looking for is how to or templates on how to design the following.
Register forum: Client fill in their personal info. once complete sends a comfirmation by email.
My Account info- shows Member ID, Password, couse took/taken currently, test scores....
Test Completion page: interactive test (will be written mostly in XML and Flash) need to some how transfer test results to db. if pass prints out certficate. Show all test results.
Course Catalog; Subject, title of book, movie, download info, sign up for course, who taking what couse. payment (paypal)

Any leads or ideals would be great.
thanks
nomad
Feb 21 '08 #1
9 1358
Nadeem0319
5 New Member
Hello Everyone:
I might need your help in the coming months.
I will be helping build a website for a on-line School written in PHP, SQL, HTML, XML and flash
I know some PHP and SQL enough to get into trouble.
What I'm looking for is how to or templates on how to design the following.
Register forum: Client fill in their personal info. once complete sends a comfirmation by email.
My Account info- shows Member ID, Password, couse took/taken currently, test scores....
Test Completion page: interactive test (will be written mostly in XML and Flash) need to some how transfer test results to db. if pass prints out certficate. Show all test results.
Course Catalog; Subject, title of book, movie, download info, sign up for course, who taking what couse. payment (paypal)

Any leads or ideals would be great.
thanks
nomad
for he register form you basicall got to just create a form in html:
ex:
Expand|Select|Wrap|Line Numbers
  1. <form action="" method="POST">
  2. <input name="username" size="15" />
  3. <input type="password" name="password" size="8" />
  4. <input type="submit" name="login" value="Login" />
  5. </form>
  6.  
Like that and the PHP part would be something like:

[PHP]
<?php
if( isset($_POST['login']) ){

// Check if they entered anything in the inputs
if (!$_POST["username"] || !$_POST["password"]) {
die("You need to provide a username and password.");
}

// Create query
$sql0 = "SELECT * FROM `members` "
."WHERE `username`='".$_POST["username"]."' "
."AND `password`='".$_POST["password"]."' "
."LIMIT 1";
// Run query
$sql = mysql_query($sql0);

if ( $create = @mysql_fetch_object($sql) ) {
// Login was successful, create the session variables
$_SESSION["uid"] = $create->id;
$_SESSION["uname"] = $_POST["username"];
$_SESSION["utime"] = time();

// Redirect to member page
header("Location: memberspage.php");

} else{
// Login has failed
die("Login was unsuccessful, Wrong login information.");
}

}
?>
[/PHP]

And for all the member pages you can put this in the header:

[PHP]
if (!$_SESSION["uid"])
{
// User not logged in, redirect to login page
header("Location: login.php");
}
[/PHP]
Feb 22 '08 #2
nomad
664 Recognized Expert Contributor
Nadeem0319:
Thanks for the help...
The hard part for me will be:
1. recording the course, test scores into the clients account.
2. payments for Downloading material and tests
3. admin maintenance ie keeping the website up and running.
keeping track of the clients. ie like a blog site where the admin can see whos on line and has the ability to change info, delete info on clients.

thanks
nomad
PS Was wondering if any of you are familiar with ZenCart would like to use that ideal of a website.
Feb 22 '08 #3
ronverdonk
4,258 Recognized Expert Specialist
<snipped>
Almost everybody here can build a website for a price!

Paramount is that this is a website where members help each other with questions or problems. I am sure most of them can work 'for a price', but that is not the reason for tem to help in this forum.

Ronald
Feb 22 '08 #4
peeHpee
5 New Member
Nomad,
Recording the test scores and writing the data into the DB shouldn't be that hard. You should probably get used to session variables if you aren't already and if you are planning to have tests soread out across multiple pages.

You can get a developers account from Authorize.net at no charge and they will provide a sample script(s) to show you how to connect to their server to process payments, it's not very hard but it's nice when you have a developers account where you can learn without any worries. Also, Authorize.net has a great recurring billing feature for subscriptions if they are important for your site.
Feb 23 '08 #5
Banfa
9,065 Recognized Expert Moderator Expert
Nadeem0319, please note that the only type of advertising we allow on this site is the advertising of jobs and the advertising of services. However both of these types of adverts MUST appear in our Jobs forum which has guidelines covering post there.

Please do not advertise you services in this manor again, it may lead to a site ban.

Banfa
Administrator
Feb 23 '08 #6
harshmaul
490 Recognized Expert Contributor
Register forum: Client fill in their personal info. once complete sends a comfirmation by email.
My Account info- shows Member ID, Password, couse took/taken currently, test scores....
Test Completion page: interactive test (will be written mostly in XML and Flash) need to some how transfer test results to db. if pass prints out certficate. Show all test results.
Course Catalog; Subject, title of book, movie, download info, sign up for course, who taking what couse. payment (paypal)
Hi,
We'll go through this step by step.

First off you will need a decently normalised table structure. Normalising is different for everybody. but what i would do is this....

Expand|Select|Wrap|Line Numbers
  1. tblMembers
  2. MemberID
  3. UserName
  4. Password
etc.....

Expand|Select|Wrap|Line Numbers
  1. tblCourses
  2. CourseID
  3. CourseName
etc.....

Expand|Select|Wrap|Line Numbers
  1. tblTests
  2. TestID
  3. TestName
Once this is done, you will need a few tables to link them all together.
Each member can have many courses in their catalog, so a many to many relation ship.....

Expand|Select|Wrap|Line Numbers
  1. tblMembersLinkToCourses
  2. MembersLinkToCoursesID
  3. MemberID
  4. CourseID
Like wise, each member can take many tests.....

Expand|Select|Wrap|Line Numbers
  1. tblMembersLinkToTests
  2. MembersLinkToTestID
  3. MemberID
  4. TestID
Once this is done, i would fill out the tables Courses and Tests (manually).

BTW, i;m sorry if this bit was too basic, and if its too advanced let me know.

Once this is done you will need to implement and interface.
My rule of thumb is at least one interface per table.. we have 5 tables so will need at least 5 interfaces. So rather than me writing a "blog" on the problem make the tables, and possibly give us the table structure and we can start helping you make the UI!

:)

incase i don't help nomore (cos i'm quite crap) good luck, and i hope i will help more soon!
Feb 23 '08 #7
nomad
664 Recognized Expert Contributor
Hello Everyone;
Thanks for the help so far. I'm reading some info on some websites and a book on php and MYSQL as well.
Will get back to you if I need more help
You guys and gals are great.

nomad
Feb 23 '08 #8
harshmaul
490 Recognized Expert Contributor
Hi,
Completely off topic, but my girlfriend laughs like mutley (in your avatar). I mean properly, its well funny.
Feb 23 '08 #9
nomad
664 Recognized Expert Contributor
Hi,
Completely off topic, but my girlfriend laughs like mutley (in your avatar). I mean properly, its well funny.
I love that comic when I was a kid. That one reason I chose that avatar because of his laugh...

nomad
Feb 23 '08 #10

Sign in to post your reply or Sign up for a free account.

Similar topics

9
2322
by: Jenta | last post by:
A World Beyond Capitalism 2005, An Annual International Multiracial Alliance Building Peace Conference Is Accepting Proposals... ...and Online Registration is now available if you plan to table...
40
2330
by: Tools | last post by:
What's the best browser to test for website accessibility? Is there a free screen reader I can use to test how my site reads best?
2
2307
by: charliewest | last post by:
Building Multilingual Portal I have been assigned a new project to build a multilingual portal using ASP and/or ASP.NET and the expected Microsoft technologies including ADO and SQL Server 2000....
0
1214
by: Mac MCCall | last post by:
I am doing work for a community that currently has four different MS-Access databases which are at four separate locations but have a great deal of overlapping data. There is a residents...
2
5333
by: moondaddy | last post by:
This is my first website using asp.net 2.0 and the first thing I noticed is no bin folder. After reading some other postings I saw mention that I needed to select Build Website from the build...
2
2374
by: Gawel | last post by:
Hajo, I have soulutin with 7 library projects and 2 web projects. When I change something in one of the libraries and hit F5 it takes literally 1-2 minutes to start an application. I've...
1
1170
Bob Ross
by: Bob Ross | last post by:
I am trying to build an XML document from a sataset using the XMLDocument. I need however to be able to find elements to add new elements based upon the attributes. For example - <website...
15
3187
by: kyosohma | last post by:
Hi, I am trying to get a small group of volunteers together to create Windows binaries for any Python extension developer that needs them, much like the package/extension builders who volunteer...
1
1165
by: Afshar | last post by:
Why Building App_LocalResources or other resources in an ASP.NET project is so slow? (While publishing a website) Is there a way to speed up it?
1
2892
by: =?Utf-8?B?R2hpc3Rvcw==?= | last post by:
Hi all, Randomly, I receive this error when I build my solution. I work on a web project for 4 months now and I began to receive this error yesterday. When I click on Buil or Rebuild...
0
7237
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7137
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
7073
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7506
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5062
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4732
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3218
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3207
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
443
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.