I have a simple doubt about PHP. I have the following code in a file called gato.php:
class Animal{
public $foodLevel=5;
}
class Cat extends Animal{
}
Then I have another file in which I have:
include_once "gato.php";
$susi = new Cat(...
I'm doing this code:
<?php
$tempSQL = "CREATE TEMPORARY TABLE IF NOT EXISTS tempUsers
SELECT CONCAT(NOMBRE,' 'AP_PATERNO,' ',AP_MATERNO) AS NOMBRE,
EMP_ID, AREA FROM EMPLEADOS WHERE ESTADO = 1";
mysqli_query($conn,$tempSQL);
if(mysqli_affe...
Hi, I'm doing a php operation with parentheses; and I get this error
error code:
Fatal error: Unsupported operand types in
C:\xampp\htdocs\olPrueba2\application\controllers\Admin.php on line 705
A PHP Error was encountered
Seve...
Table 1 news
Table 2 notes
The following controller makes a query to the news table.
The search engine makes the query with three different fields.
The question is how to make the query from the table (notes) at the same time as the news t...
It does not let me concatenate the following query, it throws me error
$consulta_url="select url from urlspeliculas where idioma='$idiomas[$f][$g]'";
the last bracket in $ languages [$ f] [$ g] I take it as text, some solution?...
I'm doing a query on the model of a web application in PHP with MVC . The idea is to make a query in which to put the value in empresa_id I see the total rows with that company, for this I used COUNT() in the query...
A while ago I saw a website in English that I was unable to translate with any online translator, including Google translator.
This is a piece of text:
Саrrоts аrе nоt јust fоr Вugs Вunnу! Іt іs а rісh sоurсе оf nесеssаrу
nutrіеnts аn...
I am not able to redirect a www.miweb.com/%E2%80%8E to www.miweb.com
I tried htaccess:
Redirect 301 /%E2%80%8E http://www.miweb.com
Php
$cadena = 'http://www.miweb.com/%E2%80%8E';
if(preg_match('/\/%E2%80%8E/', $cadena)){
header( "...