Deprecated: mysql_query() [duplicate]

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

Updating php version on mac

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

What is /var/www/html? [closed]

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

Check if a PHP cookie exists and if not set its value

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

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)