Solved

is this possible ?

Posted on 2000-03-16
2
167 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

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…
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…
Learn the basics of strings in Python: declaration, operations, indices, and slicing. Strings are declared with quotations; for example: s = "string": Strings are immutable.: Strings may be concatenated or multiplied using the addition and multiplic…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

624 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