On 19 Nov 2008, at 15:39, Terion Miller wrote:
I've been trying to catch on to php on the fly, I started with Cold fusion
years ago then did asp for a long time, for some reason php gives me
problems, it doesn't at all seem intuitive to me or even logical for that
matter....guess I'm just used to the easy stuff.

when I use the var_dump as suggested I get:
*Parse error*: syntax error, unexpected '<' in *
C:\Inetpub\wwwroot\WorkOrderSystem\WorkOrder.php* on line *136*

My guess would be that you've pasted the code Todd gave you into an existing code block (think <% %> from ASP and use <?php ?> instead for PHP). Remove the <?php and ?> from the code you pasted and try again. If that's still not right we'll need to see the code.

And might I suggest you find a beginners tutorial for PHP before continuing? This stuff is pretty fundamental and it would be well- worth your while taking the time to get the basics before you do any flying.

-Stut

--
http://stut.net/

On Wed, Nov 19, 2008 at 8:51 AM, Boyd, Todd M. <[EMAIL PROTECTED]> wrote:

Taking this back on-list...


From: Terion Miller [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 19, 2008 8:44 AM
To: Boyd, Todd M.
Subject: Re: [PHP] Invalid Arguements

I don't know how to run is_array this is the problem I'm a designer that
is stuck doing a coders job


On Wed, Nov 19, 2008 at 8:36 AM, Boyd, Todd M. <[EMAIL PROTECTED]> wrote:
-----Original Message-----
From: Terion Miller [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 19, 2008 8:32 AM
To: php-general@lists.php.net
Subject: [PHP] Invalid Arguements

I am still getting the Invalid arguement error on this implode:

if (isset($_POST['BannerSize'])){$BannerSize =
implode(',',$_POST['BannerSize']);} else {$BannerSize = "";}

I have moved the ',', from the beginning to the end of the statement
and
nothing works is there any other way to do this, basically there is a
form
and the people entering work orders can select different sized banners
they
need, which goes into the db as text ....so...argh...

Take the time to read what people have suggested. I seem to remember
people asking you if you had run is_array() on your so-called array.
Well, if you didn't, and it's NOT an array, and therefore will NOT work
with implode(), then feel free to facepalm ahead of time.

---

<?php
      if(is_array($myvar)) {
              $newvar = implode(',', $myvar);
      } else {
              echo 'Cats and dogs living together! Mass hysteria!';
      }
?>

I believe something to that effect was posted, with fully intact code, on the list. Not to be rude, but if you're tasked with PHP programming
and you don't understand what it is to run a function, you should
probably bone up on procedural fundamentals and PHP in general before
you go much further... or you're going to SERIOUSLY screw something up and be at a loss as to what you did (or how to fix it). Again--I'm not
trying to be rude. I am giving honest advice.

http://www.w3schools.com/php

Hope this helps (sincerely),


// Todd



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to