Jump to content

pinxxx

New Members
  • Posts

    6
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

pinxxx's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. im creating a program that a user can add/edit data in my webpage. but they are requesting to avoid multi user to edit a data. im currently using a database to store a counter for the data that is in use by a user and i only allow one user to edit a data in my webpage. i just want to think of some way to do that and i've searched in google and they're suggesting the same thing... there are other methods but i can't really understand it..
  2. how can i let only one user to edit/access a webpage in a network and lock it until the user is done? please help..
  3. so it has no limitations? how about the xampp?, does it have a limitation regarding the datas in mysql? is it advisable to use xampp in storing extra super large amount of datas in database?
  4. guys, what's the max execution time allowed in xampp?..
  5. @thorpe: i just got the code from the book i'm reading and i want to test the output of this code. @oni-kun: thanks for the explanation! i kinda got it. i'll go back to the sample code and i'll try it again. thanks for the help..
  6. i just started to read about object-oriented programming using php. i took a code that will print some message but when i tried to open it, it doesn't show anything.. is there something wrong with my code or i just forget something? here's the code from a book.. please help. thanks in advance! <?php /* * Class name: Form * Description : A class that creates a simple HTML form * containing only text input fields. The class has 3 methods. */ class Form { var $fields=array(); # contains field names and labels var $processor; #name of program to process form var $submit = "Submit Form"; # value for the submit button var $Nfields = 0; # number of fields added to the form /* Constructor: User passes in the name of the name of the script where *form data is to be sent ($processor) and the value to show on the submit button. */ function __construct($processor, $submit) { $this->processor = $processor; $this->submit = $submit; } /* Display form function. Displays the form. */ function displayForm() { echo "<form action='$this->processor)' method='post'>"; echo "<table width='100%'>"; for($j=1;$j<=sizeof($his->fields);$j++) { echo "<tr><td align=\"right\"> {$this->fields[$j-1]['label']}: </td>\n"; echo "<td> <input type='text' name='{$this->fields[$j-1]['name']}'> </td></tr>\n"; echo "<tr><td colspan=2 align='center'> <input type='submit' value='{$this->submit}'></td></tr>\n"; echo "</table>"; } /* Function that adds a field to the form. The user needs to * send the name of the field and a label to be displayed. */ function addField($name,$label) { $this->fields[$this->Nfields]['name'] = $name; $this->fields[$this->Nfields]['label'] = $label; $this->Nfields = $this->Nfields + 1; } } } ?>
×
×
  • 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.