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!
Don't really have much experiance in PHP, but what i am trying to do is create a table with divisions inside the table cells.
I have done this exactly the same way i have done in HTML the only thing i have done relating to PHP is filling the divisions with arrays values. I was just wondering is this way acceptable? Everything seems fine when i run it locally, i don't even need to use echo if i want to manually fill the table cells.
This is for educational purposes so it is imperative that i do this to the correct standards
What do you mean with "divisions" inside the table cells?
Perhaps you can post an example of the code to demonstrate in what way you are doing it.
If it works, I see no reason why it would be wrong, unless you are doing it in a really inefficient way (either performance-wise or coding)
I have learnt more about php and tables within php since my last post.
What i realised was that the <table> element cannot be placed within PHP is this correct??
I'll tell you what i want to do, i think the problem i am having is mainly down to the structure of my code
What i want to do is do some validation to check that a value being posted from a form is correct and if this value is correct i will create and populate my arrays then go on to show the array values within a table.
If there is a better way to validate my passed value please help
Please note that that the validation is not implemented correctly due to testing purposes
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<style type="text/css">
table{border-style:solid;border-color:#ff0000;}
</style>
<LINK href="coursestyles.css" title="css" rel="stylesheet" type="text/css">
<title>Course Map</title>
</head>
<body>
<?php
$course = "this"; // change this
if ($course!="this"){
echo "Page under construction";
}else{
$module_name['CM2013'] = "Professional Development in Computing";
$module_name['CM3004'] = "Systems Development";
$module_name['CM3006'] = "Internet Based Programming";
$module_name['CM3008'] = "Object Oriented Programming";
$module_name['CM3017'] = "Database Systems";
$module_name['CM3032'] = "Project Management in a Computing Enviroment";
$module_name['CM3056'] = "Interactive Multimedia";
$module_name['CM3ELECTIVE'] = "Elective 1";
$module_name['CM4003'] = "Intranet Systems Development";
$module_name['CM4008'] = "Human Computer Interaction";
$module_name['CM4018'] = "Honours Individual Project (Part 1)";
$module_name['CM4ELECTIVE(1)'] = "Elective 1";
$module_name['CM4002'] = "Information Strategy Planning";
$module_name['CM4018'] = "Honours Individual Project (Part 1)";
$module_name['CM4062'] = "Multimedia Programming";
$module_name['CM4ELECTIVE'] = "Elective 2";
$module_desc['CM2013'] = "To provide a broad range of professional knowledge and skills needed for a career in the Computing and IT industries.";
$module_desc['CM3004'] = "To provide the student with the ability to assess the different theories and methods of analysis and design that are utilised in the development of computer systems for industry.";
$module_desc['CM3006'] = "To enable the student to explore the key concepts of internet systems development.To develop the students' skill in the practical design, development and management of internet systems.";
$module_desc['CM3008'] = "To provide the student with the ability to explain, design, develop and test simple object-oriented programming applications.";
$module_desc['CM3017'] = "To provide the student with the ability to evaluate modern database architectures as well as analysing and applying techniques used in Database Management Systems. To provide the student with the ability to analyse and apply relational algebra operations. To provide the student with the ability to implement database applications.";
$module_desc['CM3032'] = "To provide the student with the ability to complete an investigation into a Computing topic and to undertake the associated project management activities as a member of a project group.";
$module_desc['CM3056'] = "To provide the student with the ability to research,plan, evaluate and create a multimedia application, with emphasis on common industry practice and the various media types involved.";
$module_desc['CM3ELECTIVE'] = "Module description is entirely based on the elective choice made";
$module_desc['CM4004'] = "To enable the student to research a problem area and undertake a substantial information technology (IT) or information systems project which will integrate the student’s knowledge and understanding from a variety of appropriate sources and disciplines. To enable the student to go through the stages from requirements gathering to post-implementation evaluation, and develop a solution to professional standards following a set of prescribed deadlines.";
$module_desc['CM4008'] = "To provide the student with a knowledge of the conceptual and theoretical aspects of HCI required to support future technological developments and the practical skills currently required to develop interfaces to interactive computer systems.";
$module_desc['CM4018'] = "To enable the student to undertake a substantial professional (or equivalent) information technology (IT) or software engineering project in order to acquire a comprehensive understanding of the problem and its domain. To enable the student to develop a solution from specification through to implementation and report on the results within a fixed time frame.";
$module_desc['CM4ELECTIVE'] = "Module description is entirely based on the elective choice made";
$module_desc['CM4002'] = "To provide the student with the ability to assess and support business goals through Information Strategy Planning.";
$module_desc['CM4018'] = "To enable the student to undertake a substantial professional (or equivalent) information technology (IT) or software engineering project in order to acquire a comprehensive understanding of the problem and its domain. To enable the student to develop a solution from specification through to implementation and report on the results within a fixed time frame.";
$module_desc['CM4062'] = "To provide the student with the ability to evaluate and apply programming techniques to multimedia systems using appropriate standards.";
$module_desc['CM4ELECTIVE'] = "Module description is entirely based on the elective choice made";
$G401[0] = "Professional Development in Computing";
$G401[1] = "Systems Development";
$G401[2] = "Internet Based Programming";
$G401[3] = "Object Oriented Programming";
$G401[4] = "Database Systems";
$G401[5] = "Project Management in a Computing Enviroment";
$G401[6] = "Interactive Multimedia";
$G401[7] = "Elective 1";
$G401[8] = "Intranet Systems Development";
$G401[9] = "Human Computer Interaction";
$G401[10] = "Honours Individual Project (Part 1)";
$G401[11] = "Elective 1";
$G401[12] = "Information Strategy Planning";
$G401[13] = "Honours Individual Project (Part 1)";
$G401[14] = "Multimedia Programming";
$G401[15] = "Elective 2";
// this is where my table will be
}
?>
</body>
</html>