After login a user, The user enters this skills form, selects the skills. A user can enter multiple skills, and save in database. The field of name skill_name level And in table skill_name level user_id I don’t know if the skills and skill_user table should be, or not, I don’t know. What would you…
Tag: php
Update sql database by clicking checkbox without submit button using ajax
I am searching for a way to update my sql database without refreshing the page by selecting the checkbox. I am trying to achieve the id to be passed to the dolead.php when the user selects the checkbox and than check whether the id is higher than 0 it must pass the value 1 otherwise the value 0. Afther that
Dompdf-Laravel Unicode character not rendering correctly
I am using barryvdh/laravel-dompdf to load PDF’s in my laravel application. I need to load custom unicode fonts(sinhala) in to the pdf. To do this, I downloaded my external fonts and copied the font folder and then it load to storage/fonts directory by load_font.php. I have used css in my blade file as …
How can I get wordpress page content without html tags? [closed]
Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 2 years ago. Improve this question This is what I get from my page and i can’t make some changes. Answer Use wp_strip_all…
php 7.4 mongodb dll file(1.9.0) not compatible with php 8 on windows 10 system
As you know PHP 8 is released I am excited and want to try it out. But I have a requirement for MongoDB, I tried adding MongoDB dll file of 7.4 to php8, it’s giving the error like. Warning: PHP …
Creating a Login-in-as from a seperate server
The Background I have a Laravel system with a standard login system, hashes, username etc.. I also have multiple servers. My own server as the Web developer, and client servers that host client sites. Some clients have multiple sites. Thr problem I have a scenario where I would like to have the Main website (…
How to query data in `ranges` between range where ranges are saved in DB in single column separated by `-`?
I have following table ranges PHP Code Expected output: I expect id 1 and 2 in results between 0-550. Thanks Answer The design of your table is poor, and the lower and upper bounds of the range should be stored in separate columns (more on this later). If are really stuck with the current design, you could us…
How to clear an HTML Form, even the form’s initial values?
I have an HTML form that sends information via post to a PHP file. On the user’s second visit the page should remember the last search input. So if on their first visit they were looking for pencil then on their second visit, the form would already have prefilled the Product Name input with pencil. I…
WordPress: passing $query to separate template file
I have the following code: homepage.php loop-feed-work.php But when I view my homepage, I get the following error: Fatal error: Uncaught Error: Call to a member function have_posts() on null in ******/loop-feed-work.php:1 Could this be because the query is in a different template file? Answer That’s exa…
How can I call a Javascript variable on PHP(HTML)
So what I’m trying to do is something like this: I want to name the new dynamic textbox. So I could call it later on another PHP page. Answer You have to send the javascript value through ajax POST to the server and read the post via php. Not so sure what your aim is but let me know if