Pregunta

I don't want to "die()" when it concerns only a small part of the script and I tried:

$result = mysql_query($sql) or echo("error with responses");

But it generated an error. How do I just give out an error message and continue to execute the rest of the script since even if it fails to connect, the rest should not be affected.

No hay solución correcta

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top