echo querystring
#1

hy guys! I dont know with php, and my firend sended me UCP, and where i need to add this to can see errors,
Код:
echo querystring[]; exit;
THANKS!
Reply
#2

http://www.php.net/manual/en/errorfu...rror-reporting
Reply
#3

i added this:
Код:
echo querystring[]; exit;
session_start();
and error:
Код:
Parse error: syntax error, unexpected '[', expecting ',' or ';' in /home/a1396719/public_html/ucp/index.php on line 6
What now?
Reply
#4

Quote:
Originally Posted by Dusan01
Посмотреть сообщение
i added this:
Код:
echo querystring[]; exit;
session_start();
and error:
Код:
Parse error: syntax error, unexpected '[', expecting ',' or ';' in /home/a1396719/public_html/ucp/index.php on line 6
What now?
Now you ask from the wise php people @ http://forums.phpfreaks.com/forum/13-php-coding-help/ . I've seen you posting several questions regarding php help but people don't tend to like it around here. I personally don't have anything against it - would be nice having web dev. section.
Reply
#5

Firstly I didn't understand what's your problem exactly. If you can post the source code or show it personally I can help you out.
Reply
#6

I assume you mean $querystring is an array (looking at the []), either way this works for everything.

PHP код:
if(is_array($querystring)) {
    foreach(
$querystring as $string) {
        echo 
$string ."<br />";
    }
} else {
    echo 
$querystring;
}
exit; 
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)