[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 178
  • Last Modified:

PHP calling Problem

Hi Guys,
So I have a variable where I want certain information stored in it.
When I try the following:
$itemname = "Remote Server Unlock: \n\n
Brand: $row_rsModels['type_type_name'] \n   //line 98
Model: $row_rsModels['mod_model_name'] \n
";

It gives me the following error:
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/reachate/public_html/Remote/remotelivereturn.php on line 98

Why can I not call the recordset in this way?
Thanks,
D
0
dereksheahan
Asked:
dereksheahan
1 Solution
 
Guy Hengel [angelIII / a3]Billing EngineerCommented:
please try this:

$itemname = "Remote Server Unlock: \n\n
Brand: {$row_rsModels['type_type_name']} \n   //line 98
Model: {$row_rsModels['mod_model_name']} \n
0
 
dereksheahanAuthor Commented:
that did it! thanks so much angelIII
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now