Skip to content
Advertisement

Remove a cookie

When I want to remove a Cookie I try unset($_COOKIE[‘hello’]); I see in my cookie browser from firefox that the cookie still exists. How can I really remove the cookie?

Serial comm with PHP on Windows

I am looking for a way to communicate with RS232 serial COM port on windows. I have found 2 solutions on the net, one which is not totally free (introduces deliberate delays on the function) and …

How to bind mysqli parameters using loop and store results in array?

The code above gets the value from genreID when dbGenre is equal to $genre. And then store the results in an array. But it’s not working because $genre is an array, so I need to loop through it to get a different value from genreID each time. The ‘genres’ table contains two columns: genreID (INT) and dbGenre (VARCHAR) I just

Select from MySQL records that sums

I’m using PHP and MySQL. I have a table named quantity. Inside there are records of product name, product price and product quantity. Besides these, there are a few others that helps me select the last records based on date and position, as well as a GROUP BY the field named price because there are different quantities with different prices

Advertisement