Category : php

Im trying to display the website tagline on the pages but it doesnt work, my code is like this: CONFIG.PHP FILE: ”’ define(‘EMAIL’,’[email protected]’); define(‘INFO_EMAIL’, ’[email protected]’); define(‘PHONE’, ‘+xx xxx xxx xx’); define(‘PHONE2’, ‘+xx xxx xxx xx’); define(‘ADDRESS’, ‘ xxx xxx xxx ‘); define("SITE", "https://www.exemple.com/"); define(‘TITLE’, ‘My Tagline’); define("TMPL_PATH", SITE."assets"); ”’ My HTML code: ”’ Website Title ..

Read more

I want to edit users so I added this as link: <a href="{{ route(‘users.edit’, $user->name) }}" class="on-default edit-row">Edit</a> And at the Controller: public function edit(User $user) { $roles = Role::where(‘slug’, ‘!=’, ‘super-admin’)->get(); return view(‘admin.users.edit’, compact(‘roles’, ‘user’)); } So as you can see I have called the $user from User Model but now the problem is, ..

Read more

I am trying to customise the payload/export data of the order placed webhook in Woocommerce. I am struggling to find a reference point to get started on what to do or the files that need editing in the api folders. I am looking to do the following: Change the name of some fields Add/ some ..

Read more

I have a simple HTML file with a table and inside a list of people to select a slot for a break. <TABLE border="1" > <tr> <td> <label for="break12"></label> </td> </tr> <tr> <td>10:30 – Break</td> <td> <select name="10:30" id="10:30"> <option value="Book">Book</option> <option value="People1">People1</option> <option value="People2">People2</option> </select> <td> <form action="bookedslots.php"> <input type="submit" value="submit"> </td> <td> <select ..

Read more

I wrote the csv export via php,it works. but I can`t use form to pass the value to let the user decide the csv file name. the following code is html form code,I pass the data to csv.php to handle the csv export. <form method="post" action="csv.php"> <input type="text" name="csv-file-name"> <input type="submit" value="export"> </form> and this ..

Read more