Currently, I have a PHP app running on Heroku using a Postgresql database. I want my users to be able to upload an image to a folder on my dropbox, and store other information (in this case, product information such as price, title, weight, location of the image on dropbox) on my database. Right now, I’…
Tag: javascript
JavaScript live clock is not running
php splits variable problem while passing in javascript or there is problem with the logic of runing live clock , any help will be appreciated, guide me where am i wrong ? Answer In this case you can use vanilla JavaScript:
Using the HTML Select tag to switch between languages in a multilingual website
Before I have a website that i built to switch from English to Dutch just by clicking on a hyperlink i.e <a> I had 2 files; de.php and en.php with following structures; de.php en.php To load a specific language. User only has to click on the hyperlink index.php Now, there’s need for me to add othe…
How to autopopulate a drodown based on the selection in another dropdown in php?
I have read a few similar questions but didn’t find the solution. I am trying to fetch a dropdown based on the selection of another dropdown. The first dropdown is school names, which upon selection should fetch the users under that particular school. There are two tables in the database. The first one …
Error compiling template: Component template requires a root element, rather than just text in vue.js with laravel
I am Learner in Vuejs with laravel, i created a fresh project in laravel, with vue.js frontend. but after run command php artisan serve, when i run project on webbrowser. output is blank. i checked …
How can send entire php array values on button click?
I want to send entire array information by the button click event, basically I store all information in the session send it on button, the problem is that just one value of array sent from session …
how to display form errors under input field with php and javascript
I have a form. I want to submit the form without reloading the page. so I am using ajax to send data to PHP and then validating the inputs with PHP storing the errors in an array. How can I return error array to javascript and show errors in input fields. Any Suggestions? PHP Javascript Answer At first change…
how to set value to specific object of array object in javasript
I have to write inputbox inner a looping statement. let say I have 3 times loop the question is, how to set every value I type in inputbox only settbthe result inner span from its row index only Answer You might have more luck trying an approach like this. Remove the ID attributes from the elements – yo…
External JS file engine — manipulating db using node.js? PHP?
Admittedly, I’m new to some of this… Building a website on a local server. It has a ton of JS function in an external JS file. Site has a MYSQL DB. (I am still learning this). As part of my …
Trying to access array offset on value of type null…in login details
if ($row[’email’] == $email && $row[‘password’] == $password) { echo “Login success Welcome”.$row[‘username’]; # code… } else{ echo “failed to login”; }