-
Posts
783 -
Joined
-
Last visited
Everything posted by ZulfadlyAshBurn
-
@floridaflatlander if you look at the whole code, there are many more { } errors.
-
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; } }
-
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?
-
your code makes no sense, where is line 153?
-
how can i create free website online through hosting website ?
ZulfadlyAshBurn replied to fredrikrob's topic in Miscellaneous
oops its this http://www.000webhost.com/ -
Posting Comments without refreshing the page?
ZulfadlyAshBurn replied to Bman900's topic in Javascript Help
Yes, look at jQuery .load() API. its really to use. -
The reason I copied the files over is so that the user can edit the template.
-
can you post your query code? cause it might be related to the while loop or etc.
-
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); ?>
-
How To add striplashes for reviews in this code
ZulfadlyAshBurn replied to kununited2007's topic in PHP Coding Help
disabling magic_quotes_gpc sloves the prob for me -
How To add striplashes for reviews in this code
ZulfadlyAshBurn replied to kununited2007's topic in PHP Coding Help
he should use stripslashes upon inserting into database but since he is asking how, im just showing him -
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); ?>
-
How To add striplashes for reviews in this code
ZulfadlyAshBurn replied to kununited2007's topic in PHP Coding Help
use stripslashes stripslashes($row['review']) hopes this works. -
what you mean? o.0 thanks
-
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.
-
@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.
-
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.
-
its anonymous no anonymus
-
what is your table structure?
-
works pretty well on google chrome. nice design
-
please fix your chat. i cant try it out.
-
Retrieving contents from a page that you're probably not meant to
ZulfadlyAshBurn replied to manix's topic in PHP Coding Help
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. -
Enable php to display errors. There might be errors for running headers
-
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
-
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