Getting started:
Related tutorials:
- MySQL-CLI: https://www.youtube.com/playlist?list=PLfdtiltiRHWEw4-kRrh1ZZy_3OcQxTn7P
- Analyzing Business Metrics: https://www.codecademy.com/learn/sql-analyzing-business-metrics
public function delete($id = null) | |
{ | |
use \Cake\Filesystem\File; | |
$this->request->allowMethod(['post', 'delete']); | |
$website = $this->Websites->get($id); | |
debug($website->image); | |
if ($this->Websites->delete($website)) { | |
$image = new File($website)->delete(); | |
$this->Flash->success(__('The website has been deleted.')); | |
Getting started:
Related tutorials:
//Hello Jiep, | |
// Your code in the email is not looking ok, first you're mixing the APIs. | |
// There are two types of php Mysql apis ;1- the old `mysql_*` functions, 2- the `Mysqli` extension. is OOP api. | |
## Mysql_* functions | |
$db = mysql_connect($host ,$username , $password); // returns a database resource type | |
# example | |
$link = mysql_connect('localhost', 'mysql_user', 'mysql_password'); // password is optional |
#!/bin/sh | |
apt-get update | |
apt-get install mysql-server | |
wget --no-check-certificate https://ftp.gnu.org/gnu/bison/bison-1.28.tar.gz | |
tar -xvf bison-1.28.tar.gz | |
rm bison-1.28.tar.gz | |
cd bison-1.28 | |
./configure --prefix=/usr/local/bison --with-libiconv-prefix=/usr/local/libiconv/ | |
make |
#!/bin/sh | |
apt-get update | |
apt-get install mysql-server | |
wget --no-check-certificate https://ftp.gnu.org/gnu/bison/bison-1.28.tar.gz | |
tar -xvf bison-1.28.tar.gz | |
rm bison-1.28.tar.gz | |
cd bison-1.28 | |
./configure --prefix=/usr/local/bison --with-libiconv-prefix=/usr/local/libiconv/ | |
make |