Category : variables

I’m really new to Kirby and PHP and I try to use 2 variables in a Snippet. This is my Code right now <div class="container"> <h2><?= $variable1 ?></h2> <?php foreach (page(‘blogs’) ->children() ->listed() ->filterBy(‘tags’, ‘variable2’, ‘,’) ->flip() as $subpage) : snippet(‘blogkarte’, [‘subpage’ => $subpage]); ?> <?php endforeach ?> I understand how to use the $title ..

Read more

till where i could understand its a problem in variable please help in solving this issue what am i developing? i am making a gui interface to edit a database for my project this code is just php and a bit of html hopefully this problem will be resolved main form: <section class="signup form"> <h2>rigister ..

Read more

I have created following function in a model but it is giving the above mentioned error. Can you please help me out to resolve this problem because I am also calling it in view to show its value on table. function saveLedgerReport($SCentre_Id,$from_Date,$to_Date,$detail_Category_Id,$detail_Product_Id,$detail_Model_Id,$detail_Part_Id){ // 1111111111111111111111111111111111111111 // 1. FIRST CALCULATING OPENING BALANCE 111 // 1111111111111111111111111111111111111111 $search_prn = ..

Read more

So I have xampp with the system reading from a database and displaying the data: profile.php ===> handler/get_student.php ==> returns list of students to profile.php Works like a charm in LocalHost, but does not return a list of students on the server. Here is the profile.php <form method="POST" action="handlers/get_students.php" name="class-list"> <ul class="class-list"> <li style="margin-bottom:10px"><b>My classes</b></li> ..

Read more

I’m using this code to create dynamic variable for a loop through an array. $var = []; foreach( $res as $obj ){ $values=$obj->values; // echo "<tr>"; foreach( $values as $k => $o ){ $var[‘var’.$k] = $o->value; //echo $o->value[$k]; } // echo "</tr>"; } extract($var); echo $var0 . $var1 . $var2. $var3. $var4. $var5. $var6. $var7; ..

Read more