airbus Posted July 7, 2009 Report Share Posted July 7, 2009 Parse error: syntax error, unexpected T_STRING in C:\AppServ\www\up2.php on line 5 5rinda; $id2 = mysql_query("select * from ibf_members where id = ".$_GET['lietotaja_id'].""); Quote Link to comment Share on other sites More sharing options...
GeRik Posted July 7, 2009 Report Share Posted July 7, 2009 $id2 = mysql_query("select * from ibf_members where id = '.$_GET['lietotaja_id'].'"); Pamegini shadi Quote Link to comment Share on other sites More sharing options...
airbus Posted July 7, 2009 Author Report Share Posted July 7, 2009 neka... Quote Link to comment Share on other sites More sharing options...
mounkuls Posted July 7, 2009 Report Share Posted July 7, 2009 tikai bez tiem punktiem:) vai arī ....id='".$mainīgais."' Quote Link to comment Share on other sites More sharing options...
marrtins Posted July 7, 2009 Report Share Posted July 7, 2009 (edited) divas pēdiņas - "" ui, tām pēdiņām jābūt ok. Apskaties, kas ir pirms tās rindiņas un pēc. Iespējams, trūkst kāds semikols. Edited July 7, 2009 by marrtins Quote Link to comment Share on other sites More sharing options...
GeRik Posted July 7, 2009 Report Share Posted July 7, 2009 paradi kadu error izmet Quote Link to comment Share on other sites More sharing options...
airbus Posted July 7, 2009 Author Report Share Posted July 7, 2009 Paldies, ar k4y jau izlabojam eroru var vert ciet Quote Link to comment Share on other sites More sharing options...
indoom Posted July 8, 2009 Report Share Posted July 8, 2009 $id2 = mysql_query("select * from ibf_members where id = '.$_GET['lietotaja_id'].'"); Pamegini shadi GeRik, pats savā kodā neredzi neko nepareizu? Quote Link to comment Share on other sites More sharing options...
Turecky Posted July 8, 2009 Report Share Posted July 8, 2009 To pieprasījumu šādi nebūtu loģiskāk rakstīt? $user_id = $_GET['lietotaja_id']; $user_id = intval($user_id); if($user_id>0) { $id2 = mysql_query("select * from ibf_members where id = '$user_id'"); } Quote Link to comment Share on other sites More sharing options...
Kemito Posted July 8, 2009 Report Share Posted July 8, 2009 Kļūda šajā gadījumā vienozīmīgi ir ar semikolu ; !! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.