Jump to content

Recommended Posts

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

Link to comment
https://forums.phpfreaks.com/topic/136372-unexpected-t_string/
Share on other sites

<?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

Link to comment
https://forums.phpfreaks.com/topic/136372-unexpected-t_string/#findComment-711495
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.