Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

351
Views
¿Por qué toda la página quedará en blanco cuando intento obtener un campo de texto largo como resultado Json de una consulta de base de datos?

Estoy tratando de obtener una variable de texto largo de la tabla de mi base de datos y pongo el resultado como una variable json, cada vez que tengo una página en blanco sin darme ningún error. Aquí está mi código:

 <?php require_once 'include/DB_Functions.php'; $db = new DB_Functions(); // json response array $response = array("error" => FALSE); if (isset($_GET['email']) && isset($_GET['password'])) { // receiving the post params $email = $_GET['email']; $password = $_GET['password']; // get the user by email and password $user = $db->getUserByEmailAndPassword($email, $password); if ($user != false) { // use is found $response["error"] = FALSE; $response["user"]["firstname"] = $user["firstname"]; $response["user"]["lastname"] = $user["lastname"]; $response["user"]["email"] = $user["email"]; $response["user"]["created_at"] = $user["created_at"]; $response["user"]["description"] = $user["description"]; echo json_encode($response); } else { // user is not found with the credentials $response["error"] = TRUE; $response["error_msg"] = "Login credentials are wrong. Please try again!"; echo json_encode($response); } } else { // required post params is missing $response["error"] = TRUE; $response["error_msg"] = "Required parameters email or password is missing!"; echo json_encode($response); } ?>

Mi problema es con la fila "descripción" (texto largo),

Gracias de antemano

over 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!