SOCORRO! Problema passando query stream :(

Enviada por elsilva0 
elsilva0
SOCORRO! Problema passando query stream :(
15 de December de 2014 às 01:20PM
I use ...

Code: [Select]

<?php

$pag = isset( $_GET['pag'] ) ? $_GET['pag'] : null;
switch ( $pag )

{
case 'webscript_top_albums':
include "webscript_top_albums.php";
break;

case 'webscript_top_songs':
include "webscript_top_songs.php";
break;

etc...
}
?>


Everything worked but when i added the web_script_requst page, when i click to add buttom to requst aa song it doesn't redirect to the mesage and name form. it goes to the home page., i think go to home page because home page is the default case in my page content.php (code above)

Code: [Select]


<?php

Deprecated: mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead. in C:\wamp\www\home\webscript_request.php on line 217
Call Stack
# Time Memory Function Location
1 0.0020 200400 {main}( ) ..\webscript_request.php:0
2 0.0910 257336 mysql_escape_string ( ) ..\webscript_request.php:

?>


How can i solve this issue?
Lucas Tiago de Moraes
Re: SOCORRO! Problema passando query stream :(
23 de January de 2015 às 01:07PM
O erro esta falando que você esta usando uma função obsoleta e esta te indicando a usar uma nova função.

Acredito se você tivesse traduzido o erro você teria encontrado a solução, que é:

Troque a função mysql_escape_string() por mysql_real_escape_string() que esta no arquivo webscript_request.php na linha 217


Falou.
Você precisa estar logado no PHPBrasil.com para poder enviar mensagens para os nossos fóruns.

Faça o login aqui.