Solved

is this possible ?

Posted on 2000-03-16
2
159 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Introduction This tutorial will give you a fast look what you can do with WhizBase. I expect you already know how to work with HTML at least, and that you understand the basics of the internet and how the internet works. WhizBase is a server-s…
This article will show, step by step, how to integrate R code into a R Sweave document
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

747 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

12 Experts available now in Live!

Get 1:1 Help Now