ce to help
someone else next time. :-)
"Steve Edberg" <[EMAIL PROTECTED]> wrote in message
news:p05100300b943f2a7feef@[168.150.239.37]...
> At 3:27 PM -0700 6/29/02, Brad Melendy wrote:
> >Hi All,
> >I've stumped myself here. In a nutshell, I have a function tha
array. Anyway, I'm going to
revisit the mysql_fetch_array function right now. Thanks for your help, it
is greatly appreciated.
...Brad
"Steve Edberg" <[EMAIL PROTECTED]> wrote in message
news:p05100300b943f2a7feef@[168.150.239.37]...
> At 3:27 PM -0700 6/29/02, Brad Mele
Hi All,
I've stumped myself here. In a nutshell, I have a function that returns my
array based on a SQL query and here's the code:
-begin code---
function getCourses($UID)
{
global $link;
$result = mysql_query( "SELECT C.CourseName FROM tblcourses C, tblusers U,
tb
...Brad
"Erik Price" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> On Tuesday, June 25, 2002, at 06:07 PM, Brad Melendy wrote:
>
> > Well, I have traced this down to line 4 in the following code
> > '
> (unless output buffering is on).
>
> ---John Holmes...
>
> > -Original Message-
> > From: Brad Melendy [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, June 25, 2002 10:39 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: [PHP] Re: One more 'Headers Already Sent'
Hi All,
I know this has come up before and I've read some posts so far, but this is
still eluding me.
I have come to understand that typically, if you are getting an error
message about your headers having already been sent to the browser, you are
writing bad code. Now, I want to right good code
what role the last "1" has in the above expression,
but it works so I'm not gonna complain. But if anyone wants to explain it
to me, that's wonderful. The info for STRRCHR at php.net is a tad light to
say the least on this particular function. Thanks again.
Brad
"
t get what's between the and .
>
> http://php.net/preg_match for more info.
>
> miguel
>
> On Mon, 13 May 2002, Brad Melendy wrote:
> > Thanks Philip. This gives me everything before the "'>" that I'm
looking
> > for but I believ
x27;m guessing a little. Thanks for your help.
...Brad
"Philip Hallstrom" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> $string1 = "Here's the Schedule";
> ereg(">(.*)", $string1, $matches);
Hello,
I'm pretty stuck here. I wish to assign a variable the value of a
particular substrint of text from a second variable. It's HTML so I've got
something like:
$string1 = "Here's the Schedule"
I want to create a variable $string2 and assign it the value of whatever is
between ">" and "".
Hello,
Other than the fact that sometimes, you just can't get raw HTML to process
properly by dropping out of PHP code, what are the pros and cons of using
RAW HTML or just ECHOING everything in PHP? Thanks for any insights.
..Brad
--
PHP General Mailing List (http://www.php.net/)
To unsubsc
n the
proper condition was met in the If Else statement.
Brad
"Brad Melendy" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hello,
> I'm trying to execute some HTML in an IF ELSE statement. I'm trying
> someth
Hello,
I'm trying to execute some HTML in an IF ELSE statement. I'm trying
something like:
Basically, it works great without the form I'm trying to insert, but with
the form after the IF statement, it fails. Is what I want to do against the
rules? I'm converting an ASP scr
Ok, it works!! Thanks to everyone for their suggestions and answers. This
group is a great resourse. Thanks again
...Brad
"Brad Melendy" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Thanks James,
> I tried a regular ex
... but I'd tend to go for a regex as a solution to what you're after,
> which involves less code:
>
>
> if (preg_match("/^-|-$/s", $string)) {
> echo "You cannot have a \"-\" character at the beginning or end of your
> string.";
>
or end of your string.";
> }
>
>
> (They reflect me thinking that you just had a logic mix-up, and I
> simplified the call to substr() ... the strlen() was overkill.)
>
> g.luck,
> ~Chris /"\
> \ /
Hello,
Ok, this works:
if (substr($sString,(strlen($sString)-1)!="-")) {
print "You can't have a dash at the end of your string.";
}
and this works:
if (substr($sString,0,1)!="-") {
print "You can't have a dash at the beginning of your string.";
}
But, this doesn't work for any case:
if ((subst
Oops, I spoke too soon. I wasn't getting the results I thought I was until
I used "==" instead of "=" at the very end of my IF statement. Thanks very
much for pointing that out.
Brad
"Brad Melendy" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROT
TECTED]> wrote in message
3bd15547.14743496@localhost">news:3bd15547.14743496@localhost...
> On Fri, 19 Oct 2001 21:46:29 -0700 impersonator of [EMAIL PROTECTED] (Brad
> Melendy) planted &I saw in php.general:
>
> >arrh! I don
ould it be the semi colon at the end of the 'if' line, at '... $nChar =
> 45); { ...' ? Looks like the if statement ends there, the ' { print
> "OK."; } ' is a block on it's own and the 'else' is now out of context.
>
> -Origi
Hi All,
I'm stumped. I've got the following code:
47 And $nChar < 58) or ($nChar > 96 And $nChar < 123) or
$nChar = 45);
{
print "OK.";
}
else
{
print "Not OK.";
}
}
}
?>
What's got me beat is that this code fails on the ELSE statement. Now, if I
comment out the ELSE sta
21 matches
Mail list logo