vinpkl Posted December 10, 2008 Share Posted December 10, 2008 hi all i m starting my code with the following code line <?php $url = 'products.php?dealer_id=. $leftrow['dealer_id'] . "&category_id=" . $leftrow['category_id'].'; ?> but it is giving me error Parse error: syntax error, unexpected T_STRING in E:\xampp\htdocs\vineet\url.php on line 2 there is no other code on this page. this is starting line vineet Quote Link to comment https://forums.phpfreaks.com/topic/136372-unexpected-t_string/ Share on other sites More sharing options...
premiso Posted December 10, 2008 Share Posted December 10, 2008 <?php $url = 'products.php?dealer_id='. $leftrow['dealer_id'] . "&category_id=" . $leftrow['category_id']; ?> Corrected. YOu were missing ' after _id= and had an extra .' after the category_id which was not necessary. Quote Link to comment https://forums.phpfreaks.com/topic/136372-unexpected-t_string/#findComment-711483 Share on other sites More sharing options...
Maq Posted December 10, 2008 Share Posted December 10, 2008 $url = "products.php?dealer_id=" . $leftrow['dealer_id'] . "&category_id=" . $leftrow['category_id'] .""; Quote Link to comment https://forums.phpfreaks.com/topic/136372-unexpected-t_string/#findComment-711487 Share on other sites More sharing options...
vinpkl Posted December 10, 2008 Author Share Posted December 10, 2008 <?php $url = 'products.php?dealer_id='. $leftrow['dealer_id'] . "&category_id=" . $leftrow['category_id']; ?> Corrected. YOu were missing ' after _id= and had an extra .' after the category_id which was not necessary. hi premiso thanks it worked vineet Quote Link to comment https://forums.phpfreaks.com/topic/136372-unexpected-t_string/#findComment-711495 Share on other sites More sharing options...
vinpkl Posted December 10, 2008 Author Share Posted December 10, 2008 $url = "products.php?dealer_id=" . $leftrow['dealer_id'] . "&category_id=" . $leftrow['category_id'] .""; hi Maq Thanks . i tried it and it worked. vineet Quote Link to comment https://forums.phpfreaks.com/topic/136372-unexpected-t_string/#findComment-711497 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.