Jump to content

ZulfadlyAshBurn

Members
  • Posts

    783
  • Joined

  • Last visited

Everything posted by ZulfadlyAshBurn

  1. @floridaflatlander if you look at the whole code, there are many more { } errors.
  2. look at this too, you dont have opening brackets... if($moduleId != $row['ModuleId']) { //Module has changed if(isset($sessionsAry)) //Don't run function for first record { //Get output for last module and sessions $output .= outputModule($moduleId, $moduleName, $sessionsAry); } //Reset sessions data array and Set values for new module $sessionsAry = array(); $moduleId = $row['ModuleId']; $moduleName = $row['ModuleName']; } //Add session data to array for current module $sessionsAry[] = array('SessionId'=>$row['SessionId'], 'Mark'=>$row['Mark'], 'SessionWeight'=>$row['SessionWeight']); } //Get output for last module $output .= outputModule($moduleId, $moduleName, $sessionsAry); //Display the output echo $output; } }
  3. foreach($sessionData as $session) { $sessionsHTML .= "<p><strong>Session:</strong> {$session['SessionId']} {$session['Mark']} {$session['SessionWeight']}%</p>\n"; $markTotal += ($session['Mark'] / 100 * $session['SessionWeight']); $weightSession += ($session['SessionWeight']); $markGrade = ($markTotal / $weightSession * 100); } $moduleHTML = "<p><br><strong>Module:</strong> {$moduleID} - {$moduleName} {$markTotal} {$markGrade} {$grade}</p>\n"; return $moduleHTML . $sessionsHTML; } last line, where is the open bracket?
  4. your code makes no sense, where is line 153?
  5. oops its this http://www.000webhost.com/
  6. Yes, look at jQuery .load() API. its really to use.
  7. The reason I copied the files over is so that the user can edit the template.
  8. can you post your query code? cause it might be related to the while loop or etc.
  9. If you want the user to be able to choose the template. just change the template. <?php // includes your necessary files include_once('include/database.php'); include_once('process.php'); // Gets the username $user = $_GET['reuname']; // specifies the folder where you want the folder to be created & the user folder. $folder = "thefolder"; $userfolder = $folder . "/" . $user; // makes the directory and copy the template. mkdir($userfolder); // get the template and specifies the template location $template = "template/" . $_GET['tpl'] . ".php"; // specifies the index file for the user. $userfile = $userfolder . "/index.php"; copy($template, $userfile); ?>
  10. disabling magic_quotes_gpc sloves the prob for me
  11. he should use stripslashes upon inserting into database but since he is asking how, im just showing him
  12. Let me get this right, are you allowing your users to choose the template or there is only one default template? Best way is to create a folder for each user and copy the files to it. If the there is only one template, <?php // includes your necessary files include_once('include/database.php'); include_once('process.php'); // Gets the username $user = $_GET['reuname']; // specifies the folder where you want the folder to be created & the user folder. $folder = "thefolder"; $userfolder = $folder . "/" . $user; // makes the directory and copy the template. mkdir($userfolder); // specifies the template location. $template = "template/default.php"; // specifies the index file for the user. $userfile = $userfolder . "/index.php"; copy($template, $userfile); ?>
  13. use stripslashes stripslashes($row['review']) hopes this works.
  14. what you mean? o.0 thanks
  15. Notice: This works best on Google Chrome with 1024x768 pixels. Doesn't work well on firefox/internet explorer. The school uses google chrome as their default browser.
  16. @Nightslyr Thanks for your critiques. I have chosen image over button because they are more familiar with images. they are not so good with words and letters thus i have to keep the words and letters to the minimum. They will be thought how to use the banking system thus is not a problem for the images as a button.
  17. Recently I have created a banking system for a special school for students with special needs. Its to help the school's bank officers which are the students in banking or managing their tokens. They designs are to be simple and easy to understand in their terms. Help me critique. Currently, only deposit and withdrawal is allowed. Please help me critiques on the design, grammar errors & functionality Demo Student id: phpfreaks Here is the link.
  18. its anonymous no anonymus
  19. what is your table structure?
  20. works pretty well on google chrome. nice design
  21. please fix your chat. i cant try it out.
  22. Mjdamato, ive checked with my lawyers and they said that the layout are not allowed.to be.copyrighted of trademarked. Only the designs, artworks, logos & contents are are allowed to be copyrighted or trademarks.
  23. Enable php to display errors. There might be errors for running headers
  24. What is in the include? Is there something wrong with the include file? Check if there are any errors. Try directly typing it on the insert_proc.php
  25. Do you have any data in your database? After this line $name = $_POST['fname']; $lname = $_POST['lname']; $age = $_POST['age']; add this line echo $fname; echo $lname; If you didn't not see anything which is from the previous page then something is wrong with your form
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.