For Programmers: Free Programming Magazines  


Home > Archive > PHP Programming > May 2007 > Re: still not working: why?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: still not working: why?
vinnie

2007-05-29, 7:00 pm

On May 29, 3:54 am, Erwin Moller
< since_humans_read_this_I_am_spammed_too_
m...@spamyourself.com> wrote:[color=darkred]
> vinnie wrote:
>
>
>
>
>
>
> Hi Vinnie,
>
> Why do you first return something, and then print something on the next
> line?
> What do you think will happen?
> Will the print-statement ever be reached?
>
> Regards,
> Erwin Moller
>

but also if i try to echo $sum, i get nothing, so there must be a
mistake somewhere, and using the 2 books i have it's hard to find
(PHP5 for dummies, and core PHP programming).

Jerry Stuckle

2007-05-29, 7:00 pm

vinnie wrote:
> On May 29, 3:54 am, Erwin Moller
> < since_humans_read_this_I_am_spammed_too_
m...@spamyourself.com> wrote:
>
> but also if i try to echo $sum, i get nothing, so there must be a
> mistake somewhere, and using the 2 books i have it's hard to find
> (PHP5 for dummies, and core PHP programming).
>


First of all, turn on all errors in your php.ini file and display them:

error_reporting = E_ALL
display_errors = On

So you can see your errors. That should help you a little bit.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2010 codecomments.com