<?php
$query = "SELECT * FROM coches WHERE TIPO LIKE '%pequeño%'";
$result = mysql_query($query) or die("Consulta fallida: " . mysql_error());
$numpeq= mysql_num_rows($result);
echo $numpeq;
Fatal error: Uncaught Error: Call to undefined function mysql_query() in /in/Ukbec:3
Stack trace:
#0 {main}
thrown in /in/Ukbec on line 3
Process exited with code 255.
Fatal error: Call to undefined function mysql_query() in /in/Ukbec on line 3
Process exited with code 255.
Output for 4.3.2 - 4.3.11, 4.4.0 - 4.4.9
Warning: mysql_query(): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) in /in/Ukbec on line 3
Warning: mysql_query(): A link to the server could not be established in /in/Ukbec on line 3
Consulta fallida: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
Output for 4.3.0 - 4.3.1
Warning: mysql_query() [http://www.php.net/function.mysql-query]: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) in /in/Ukbec on line 3
Warning: mysql_query() [http://www.php.net/function.mysql-query]: A link to the server could not be established in /in/Ukbec on line 3
Consulta fallida: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)