Guest User

Untitled

a guest
Jan 19th, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. SELECT *
  2. FROM publicaciones
  3. LEFT JOIN registrados ON RegistradoID = Publ_Registrado
  4. LEFT JOIN registrados ON tipo_Registrado = RegistradoID
  5. WHERE Publ_TipoUsuario = 'tipoUsuarioUno'
  6. AND Publ_Conferencia = 'convocatoria'
  7. AND CONCAT(Reg_Nombre, ' ', Reg_Apellidos) LIKE '%$datoBuscar%'
  8. OR Reg_Nombre LIKE '%$datoBuscar%'
  9. OR Reg_Apellidos LIKE '%$datoBuscar%'
  10. OR Publ_Contenido LIKE '%$datoBuscar%'
  11. OR Reg_Nombre LIKE '%$datoBuscar%'
  12. OR Reg_Apellidos LIKE '%$datoBuscar%'
  13. OR Reg_Escolaridad LIKE '%$datoBuscar%'
  14. OR Reg_Genero LIKE '%$datoBuscar%'
  15. OR Reg_Pais LIKE '%$datoBuscar%'
  16. OR Reg_Estado LIKE '%$datoBuscar%'
  17. OR Reg_Ciudad LIKE '%$datoBuscar%'
  18. OR Reg_Empresa LIKE '%$datoBuscar%'
  19. or Reg_Ocupacion LIKE '%$datoBuscar%'
  20. ORDER BY PublicacionID ASC LIMIT $inicio, $limite
  21.  
  22. WHERE Publ_TipoUsuario = 'tipoUsuarioUno'
  23. AND Publ_Conferencia = 'convocatoria'
Add Comment
Please, Sign In to add comment