Skip to content

Tag: javascript

SyntaxError javascript php

This is a heart with a wishlist, I want to add the product to my wishlist. I have a syntax error in the console Uncaught SyntaxError: expected expression, got ‘}’ Dreamweaver shows me no errors <…

how to get price from database in php and javascript

I am new in PHP and javascript I am creating an order form that has four fields customer, product, price, amount what I want. when I select a product it will get the last order price of the selected customer if he already exists. if the new customer then gets the price from the product_list table. here is my …

Display option data with php and hide the similiar

I’m using php to select data from my database. I’m displaying it in a HTML select option tag. I have 100+ options and I want to hide which is the same as my selected data. For example: For example the $type variable is “c”. So it displays the option “c” twice. How can I eas…

Capture text inside a using JavaScript

I need to create a shopping cart. When I click the button “Add to Cart”, the item in the “p” should appear in the screen. PHP JAVASCRIPT Answer The p tag is not a object with value attribute, you should use: but first of all you must change your PHP code, you generate multiple tags wit…

Database update through checkbox change

For my thesis, I am working on a program for checking cars. Currently, I am working on the user management now I have encountered the problem that the database needs to be updated when a checkbox is changed status. Image checkboxes: Now I have already started looking a bit on how to execute a PHP function whe…