Solved

is this possible ?

Posted on 2000-03-16
2
164 Views
Last Modified: 2013-12-25
Hi there,

I've got some variables that I want to write on one single line like this:
$test="test" $test2="test2" $test3="test3";

If I'm testing this I'm getting a error 500. If I test it with each variable on a different line it works fine but it takes up more drive space then. Is there anyway to put them on one single line without getting an error message ?
0
Comment
Question by:quickbasic
2 Comments
 
LVL 2

Accepted Solution

by:
mattrope earned 25 total points
ID: 2624969
Just put a semicolon after each assignment:

$test="test"; $test2="test2"; $test3="test3";

The assignments are actually separate commands, so you need semicolons between them.
0
 

Author Comment

by:quickbasic
ID: 2625577
Why didn't I think of that ? Excellent, thanks...
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Making a simple AJAX shopping cart Couple years ago I made my first shopping cart, I used iframe and JavaScript, it was very good at that time, there were no sessions or AJAX, I used cookies on clients machine. Today we have more advanced techno…
This article will show, step by step, how to integrate R code into a R Sweave document
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

829 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