PHP calling Problem

Posted on 2006-05-28
Last Modified: 2006-11-18
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?
Question by:dereksheahan
    LVL 142

    Accepted Solution

    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

    Author Comment

    that did it! thanks so much angelIII

    Featured Post

    Free Trending Threat Insights Every Day

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Join & Write a Comment

    A colleague recently asked me about how to give his client a small part of the web site that could be completely under the client's control.  Since I have done this sort of thing before to add emergency banners to a web site, I decided I would creat…
    Introduction Many web sites contain image galleries; a common design for these galleries includes a page with a collection of thumbnail images.  You can click on each of the thumbnail images to see the larger version of the image.  This is easily i…
    Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
    The viewer will learn how to count occurrences of each item in an array.

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now