Call to undefined function mysql_query() with Login [duplicate]
You are mixing mysql and mysqli Change these lines: to
You are mixing mysql and mysqli Change these lines: to
You can use something similar to the below:
i just update my server. it showing an error today Deprecated: mysql_query(): The mysql extension is deprecated and will be removed in the >future: use mysqli or PDO instead in C:\wamp\www\work\db\dbfields – Copy.php on line 33 my dbfields – Copy.php page is mysql_query(“insert into user(name,address) values(‘$name’,’$address’)”); i create 2 columns (name&address), need to insert the … Read more
Use Homebrew: I would probably recommend installing homebrew to manage such installations for you. With that installed you can just run the following command to install php7.1
filter_input(INPUT_POST, ‘var_name’) instead of $_POST[‘var_name’]filter_input_array(INPUT_POST) instead of $_POST
use strtotime(‘date -years -months -days’)
The problem was that web hosting adds HTTP header Content-Encoding: gzip for all the PHP content even when the Content-Type: image/jpeg is in the output from that script. For the hotfix I added HTTP header Content-Encoding: none into that script. And it worked. But now I am asking web hosting provider to not add the … Read more
In the most shared hosts you can’t set it. On a VPS or dedicated server, you can set it, but everything has its price. On shared hosts, in general you receive a Linux account, something such as /home/(your username)/, and the equivalent of /var/www/html turns to /home/(your username)/public_html/ (or something similar, such as /home/(your username)/www) … Read more
Answer You can’t according to the PHP manual: Once the cookies have been set, they can be accessed on the next page load with the $_COOKIE or $HTTP_COOKIE_VARS arrays. This is because cookies are sent in response headers to the browser and the browser must then send them back with the next request. This is … Read more