Menu

Please help me with another example...

Help
2005-08-07
2013-04-09
  • Rolf Winterscheidt

    Hi,

    I tried the PForms and am very happy not writing all the stuff myself. But I'm not a really good PHP coder and I have some problems understanding the structure. All I coded was just plain bad, but working, PHP-code.

    I figured out that in the articlebrowser example you can input the data directly into the big box instead of creating one user after another in the table above. So I would like to have just the box without the navigation and the table on the top.

    Second, I would like to put the data into a MySQL-Database and get it from there when loading.
    Oh, I know how to handle this normally, but how can I fill variables here and how can I read them out? I tried something like

    $html.="Variablen:<br>".$this->webpw->getText()."xx<br>";

    But this won't give me something back. Besides this I would need an Array due to multiple entries for all these things.

    regards
    Rolf Winterscheidt

     
    • uepselon.com

      uepselon.com - 2005-08-08

      Hi,

      if i correctly understand you, you want to use only a PTable and fill/read it directly. You can do this in the creator of the PForm, where you have to initalize the component and put the data (e.g. from MySQL-Tabels) in it.

      $this->mytable = new PTable($this,  "mytable", $rows, $cols);

      $value = "e.g. Data from MySQL-Tables";

      $this->mytable->setValue($row, $col, $value);

      after setting this data, you can read it:

      $this->mytable->getValue($row, $col);

      Hope this helps you.

      Best regards,

      Tobias Selb

      uepselon.com

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.