Jump to content

[SOLVED] String Types...


phpSensei

Recommended Posts

This Seemed to work awhile ago but now it just shows up an error:

 

Parse error: syntax error, unexpected ')' in C:\wamp\www\forum_software\index.php on line 68

 

 

code:

if($_GET['forum'] != (int) ){
die(page_error());
}

 

 

I want to check if the "forum" variable that was passed from the URL is an interger or not...

 

Link to comment
https://forums.phpfreaks.com/topic/66200-solved-string-types/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.