Ok to make it simplier, this is what I wanna do!
Logout";
function logout()
{
.
}
?>
How do I do it!!!
/M
> Hi
> I want to call a function logout() inside an statement:
>
> \">logout
>
> function logout()
> {
>
> }
> ?>
>
> but this doesnt work.. how shall I do it
> /M
>
>
--
P
it logs somone out of a session..
"Ray" <[EMAIL PROTECTED]> skrev i meddelandet
news:[EMAIL PROTECTED]
does the function logout() log someone out of a session, or does it return
the url for where they go to logout?
and what about it isn't working?
On Monday 03 March 2003 16:32, you wrote:
> Ok t
code snippets would be helpful
-Original Message-
From: Liam Gibbs [mailto:[EMAIL PROTECTED]
Sent: Friday, March 07, 2003 5:07 PM
To: php list
Subject: Re: [PHP] Dollar signs in values
> Escape them with a backslash:
>
> $text = "The amount is \$400.-";
All that does is print \$ in
Nevertheless the $ looks weard ...
George Pitcher wrote:
Firstly,
This isn't a php question and should be directed at a sql list or to php-db
Have you lokked at erro 1064 in the manual? What does it say?
There are several things that you should do before coming to the list with a
problem.
Witho
it's not possible (at the moment) to manipulate existing pdf-files with
fpdf.
Rives Sergio Sofrecom wrote:
maybe the link didn't work... www.fpdf.org
sorry
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
try the following ...
http://www.faqts.com/knowledge_base/index.phtml/fid/62
Luis A wrote:
hi every one :)
how can i uploads files to my server by php script ?
any hand on that i realy apreciate
Thanks
__
Luis Atala
Profetional
was trying chr() to change all unwanted chars.
TIA
Martin
_
STOP MORE SPAM with the new MSN 8 and get 2 months FREE*
http://join.msn.com/?page=features/junkmail
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe
there were some nice threads last week:
- formating the input of a name:
eg: stuart o'neil -> Stuart O'Neil
RONALD MCDONALD -> Ronald McDonald
serge d'avignon -> Serge d'Avignon
von Braun -> von Braun
... implementing that for all possible langugae struktur
The problem you are describing is implemented in a quite amazing GPL
shop. You might want to have a look: www.oscommerce.org
Regards Martin
Peter Goggin wrote:
I did not make my request for information clear. The two scenarios which I
have to cover:
1. The user registers as a customer with the
($spacer % $number == 0)
Martin
-Original Message-
From: jwulff [mailto:[EMAIL PROTECTED]
Sent: Thursday, 3 July 2003 11:04 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Calculating if number is multiple of another number
How would I calculate if a $number is a multiple of $spacer?
--
PHP
I've just been playing around with PHP5 beta for windows to get used to the
new way it does classes and constuctors, etc, and have found the
following...
I have a base class which has both a constructor and a destructor. I have a
second class that extends the first. I then instantiate the second c
its configuration
file to group).
like
rw-rw-r-- user group test.php
I hope I have explained it a bit to you.
--
Martin Hudec
:@: [EMAIL PROTECTED]
:w: http://www.corwin.sk
:m: +421.907.303.393
"In google non est, ergo non est."
-
Since I can't see the source for append_child(), I'll assume you're using
the $key as the index??
If so, try changing it to just a numeric index, ie, 0, 1, 2, etc.
HTH
Martin
-Original Message-
From: Matt Grimm [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 9 July 2003 10:3
change your error reporting level to E_ALL
You'll then get a warning|notice (can't remember which)
-Original Message-
From: mack paul [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 9 July 2003 11:10 AM
To: [EMAIL PROTECTED]
Subject: [PHP] how to force variables declaration??
hi to all.
i wo
If I remember correctly, it'd be
header("Content-Type: text/css");
HTH
Martin
-Original Message-
From: Justin French [mailto:[EMAIL PROTECTED]
Sent: Thursday, 24 July 2003 12:42 PM
To: php
Subject: [PHP] do i need to output headers on parsed CSS files?
Hi all,
I
The following code illustrates a problem I've got with references (running
on PHP 4.3.2). Can anyone explain it for me? Thanks in advance for any
assistance!
Martin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
mysql_query($add_image_query) or die("Update Failed!");
As Curt Zirzow has suggested, it looks to me like your mysql syntax is at
fault here. mysql_error() will have told you about it. You have a ', '
where you shouldn't have one
Martin
- Original Message
You could use two substr()s or an ereg_replace()
$result = substr($str, 0, 2) . substr($str, 5);
or
$result = ereg_replace("([0-9][0-9])990([0-9][0-9])", "\\1\\2",
$str);
Both are not tested, but should work
Martin
-Original Message-
From: Joe H
I have come up against a very strange problem. I currently have no idea how
to even approach attempting to fix it...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
hp4 on line 58
I have no comprehension how it is that the two var_dump() commands can
produce different outputs. Can anyone suggest what sort of thing I need to
be looking at?!
Any help very gratefully received,
regards,
Martin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
thnx - I'll see if this help..
-Original Message-
From: Joe Harman [mailto:[EMAIL PROTECTED]
Sent: Thursday, 7 August 2003 4:38 PM
To: 'Martin Towell'; [EMAIL PROTECTED]
Subject: RE: [PHP] error: cannot redeclare ()
Hi Martin... I am guessing you have a nested functio
This _might_ be causing you problems...
$month=march;
strings should be quoted (unless you've define("march", "march")'ed it...)
$month='march';
Martin
-Original Message-
From: Joe Harman [mailto:[EMAIL PROTECTED]
Sent: Friday, 8
Yep - I did with me previous email
And I guess I'll get one with this email too :/
-Original Message-
From: Joe Harman [mailto:[EMAIL PROTECTED]
Sent: Thursday, 7 August 2003 4:43 PM
To: [EMAIL PROTECTED]
Subject: [PHP] [EMAIL PROTECTED]
Hey is every one getting a returned message from
[
See if changing it to
page.php?year=$year&month=$month
works
The separator between the page and the query string is "?"
The separator between each key/value pair is just "&"
-Original Message-
From: Jack [mailto:[EMAIL PROTECTED]
Sent: Friday, 8 August 2003 4:30 PM
To: [EMAIL PRO
You could use a "hidden" image
Or use an external javascript file that's really the php file
HTH
Martin
-Original Message-
From: Creative Solutions New Media [mailto:[EMAIL PROTECTED]
Sent: Friday, 8 August 2003 1:51 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Calling to
s
started causing me grief. People on this list have surely had similar
problems at some stage or other? What should I do?
Martin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
($sql,$count=0)
There are only two lines before this that contain code (the rest are
comments) and they are:
if (!$__GEN_HIR_FUNCTIONS_INCLUDE){
$__GEN_HIR_FUNCTIONS_INCLUDE=1;
TIA
Martin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
or now ...
thanks again for the response,
regards,
Martin
- Original Message -
From: "Mike Migurski" <[EMAIL PROTECTED]>
To: "Martin Peck" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Sunday, August 10, 2003 8:57 PM
Subject: Re: [PHP] seg
spect cause
it! Hopefully I'll have a bit of time to see what I can do, though.
cheers,
Martin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
thing. I
would have said that
if ("Add" == $Task) { Do something }
would always be fine - what am I missing?
Martin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
way you don't need to go through all the other records if it's
found near the start...
[OT] - Vic-20 - hmmm, them were the days...
Martin
-Original Message-
From: John Taylor-Johnston [mailto:[EMAIL PROTECTED]
Sent: Friday, 15 August 2003 4:52 PM
To: [EMAIL PROTECTED]
Subject:
ebian system.
--
Regards, martin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
while ($mydata = mysql_fetch_object($news))
{
if ($mydata->StudentId == $StudentId)
{do this; $found = 1; break;}
}
if (!$found){do that}
Martin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hiya,
1. Turn off the address bar
or
2. Create a form with hidden elements, with method=post
open a window to a blank page, and name the window
submit the form to the newly, named, window
HTH
Martin
-Original Message-
From: murugesan [mailto:[EMAIL PROTECTED]
Sent
MAIL PROTECTED]
Sent: Tuesday, 19 August 2003 4:14 PM
To: Martin Towell; [EMAIL PROTECTED]
Subject: Re: [PHP] window.open("hai.php?id="one");
I have made the value hidden. How can I retrieve it in the next page in
php.
-murugesan
- Original Message -
From: "Martin Tow
But for the reason why one is showing GMT and the other Oz time, I don't
know...
HTH though
Martin
-Original Message-
From: Cody Phanekham [mailto:[EMAIL PROTECTED]
Sent: Thursday, 21 August 2003 3:42 PM
To: [EMAIL PROTECTED]
Subject: [PHP] unexpected date results
Ive got a pre
27;', '', $body,
$headers))
This is the contents of $headers
- START -
X-Mailer: SEE-IT's PHP email_class (c)2001
Mime-Version: 1.0
Subject: Saturday Lotto - 2003-08-02 - $19m
Sensitivity: normal
Importance: normal
X-Message-Flag:
Reply-By:
Expiry-Date:
To: Martin Towell <
e doesn't seen to be one.
I'm using PHP 4.0.6
TIA
Martin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
So noone has any ideas at all ? Surely not ?
If my question's too vague, please let me know and I'll try to expand on
it...
-Original Message-----
From: Martin Towell [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 19, 2003 4:40 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Getting linu
sprintf/printf("%7d", $num)
-Original Message-
From: Harry.de [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 20, 2003 10:09 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Zero Fill -> Number Format
How can I put out a Zero Fill for numbers
The result should be
$something=26;
echo $something;
try this
$address2 = str_replace("'", "''", $address)
-Original Message-
From: Daniel McCullough [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 20, 2003 1:48 PM
To: [EMAIL PROTECTED]
Subject: [PHP] strip single quotes
I'm trying to query the database using a string pulled out of the dat
oops, sorry - try this instead
sprintf/printf("%07d", $num)
-Original Message-
From: Boaz Yahav [mailto:[EMAIL PROTECTED]
Sent: Friday, March 21, 2003 8:23 AM
To: Martin Towell; Harry.de; [EMAIL PROTECTED]
Subject: RE: [PHP] Zero Fill -> Number Format
wouldn't thi
try this...
for ($i = 0; $i < count($charge); $i++)
{
$c = $charge[$i];
$s = $size[$i];
$sql = "UPDATE products_to_sizes SET surcharge = '$c'
WHERE product_id = '$products_id' AND size_id = '$s'";
mysql_query($sql) or die ("Couldn't update rows".MYSQL_ERROR());
print $sql.'';
}
-Origi
is this what you're after ?
flush();
wait(5); // I think wait() is in seconds
echo "blah";
-Original Message-
From: Sebastian [mailto:[EMAIL PROTECTED]
Sent: Friday, March 21, 2003 2:54 PM
To: php list
Subject: [PHP] echo
hello all,
is it possible to delay an echo say by 5 seconds
sorry - sleep(5);
-Original Message-
From: Sebastian [mailto:[EMAIL PROTECTED]
Sent: Friday, March 21, 2003 3:58 PM
To: Martin Towell; php list
Subject: Re: [PHP] echo
php has a wait function? I didn't know that... But i get:
Fatal error: Call to undefined function: wait()
I
have you got register_globals turn on or off ?
-Original Message-
From: J. P. [mailto:[EMAIL PROTECTED]
Sent: Monday, March 24, 2003 5:26 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Why this script doesn't work?
I'm using Apache 2.0.44 with Win XP and PHP version 4.3.1!
--
PHP General M
same question as before:
have you got register_globals turn on or off ?
-Original Message-
From: J. P. [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 25, 2003 10:57 AM
To: [EMAIL PROTECTED]
Subject: [PHP] sript doesn't work
Hello!
I am using Apache 2.0.44 and WinXP. I have PHP 4.3.1.
Whe
I think there's problems doing that when daylight savings starts/ends
Just something to keep in mind...
-Original Message-
From: Leo Spalteholz [mailto:[EMAIL PROTECTED]
Sent: Friday, March 28, 2003 4:32 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] date math question
On March 27, 2003 09:
I think you'll have to read the file manually (file() would prob be the best
bet) and manually find/delete the line and then rewrite the file.
Martin
-Original Message-
From: Matt Palermo [mailto:[EMAIL PROTECTED]
Sent: Friday, June 06, 2003 1:54 PM
To: [EMAIL PROTECTED]
Subject:
try changing
$numbers = array($numbers);
to
$numbers = explode(",", $numbers);
HTH
Martin
-Original Message-
From: Richard Kurth [mailto:[EMAIL PROTECTED]
Sent: Friday, June 06, 2003 2:42 PM
To: [EMAIL PROTECTED]
Subject: [PHP] using a for loop but it is not w
and test() is invoked
again, the current function call executes all the way through to echoing
"I'm here".
I would've thought current execution would be terminated as soon as the
function is called again, and that I'd get "I'm here" only once we're out o
> Why? The "I'm here" line is outside the conditional. The function will
> still complete independent of the conditional. If $i is greater than ten,
> the pointer just skips the contents of the if/then and continues on the
> next line after it. Here's a better illustration:
In my test() function,
Hi Steve,
yes, I am familiar with these concepts; I am just starting to experiment
with recursive functions and static variables. Thanks for explaining that
once the function is called and completed, the rest of the first call
continues executing normally. That is what surprised me.
Martin
>
Ernest,
I'm not _that_ clueless :-)
As I said, since I was recursing through the function by calling it numerous
times in the middle of its execution, and since the function didn't
explicitly return, I didn't expect it to continue past each call. That's
all!
Martin
Ernest E
Well, not necessarily, since gd is included with php 4.3.x. You'll probably
still want to get libjpeg and libpng, and link against them with the proper
configure options.
<[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> --with-gd and of oucrce you need the GD library.
>
> "Todd Car
g the code to
avoid using an array solved the problem. Have not had the problem since
upgrading php.
Martin
Floyd Baker <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> Hello...
>
> I have a routine that works fine on local win98 but when it runs on
> linux online
[EMAIL PROTECTED]
<<<
You'll probably
still want to get libjpeg and libpng, and link against them with the proper
configure options.
>>>
What is the correct syntax to do all of the suggestions?
Todd
Martin Helie wrote:
Well, not necessarily, since gd is included with p
you can use exec() but be sure that the code you're executing is not
malicious first
-Original Message-
From: Suhas Pharkute [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 17 June 2003 9:46 AM
To: [EMAIL PROTECTED]
Subject: [PHP] String containing PHP Code
Hello,
I have a php script w
oops - yeah, not exec() as in my previous email - sorry about that :/
-Original Message-
From: Steve Keller [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 17 June 2003 10:06 AM
To: Suhas Pharkute; [EMAIL PROTECTED]
Subject: Re: [PHP] String containing PHP Code
At 6/16/2003 05:45 PM, Suhas Phar
check your php.ini file to see if you have register_globals set to "on" or
"off" (probably "off")
You can either turn it "on" or use $_GET["name"]
-Original Message-
From: Robby Ku [mailto:[EMAIL PROTECTED]
Sent: Friday, 20 June 2003 4:06 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Can't pass
date("F", mktime(0, 0, 0, $mm, $dd, $));
http://au2.php.net/manual/en/function.date.php
http://au2.php.net/manual/en/function.mktime.php
-Original Message-
From: cavagnaro [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 25 June 2003 4:31 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Month name
Is the pdf module being loaded on the linux machine ?
What is the error message (if any) that's displayed at the "create handle"
bit ?
Martin
-Original Message-
From: Floyd Baker [mailto:[EMAIL PROTECTED]
Sent: Thursday, 26 June 2003 10:32 AM
To: [EMAIL PROTECTED]
Sub
what about (untested)?
$example_data = array();
foreach ($blah_array as $key=>$value)
{
$example_data[] = array($key, $value);
}
-Original Message-
From: John Wulff [mailto:[EMAIL PROTECTED]
Sent: Thursday, 26 June 2003 11:37 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Converting Array
I'
Hi,
I want to begin to use some of bug tracking systems. I think it can help me
with developing more robust applications and make an easier communication
with my clients. I have tried to use Bugzilla, but It was a little bit
complicated system.
Please help me to choose some
Regards
Martin
Hm, good answer ;)
Can you recommend one of them? Do you have experience with some of these
systems?
I don't want to try them all....
Martin
"Jay Blanchard" <[EMAIL PROTECTED]> píse v diskusním
príspevku news:[EMAIL PROTECTED]
[snip]
Please help me to choose some
[/
My fault...
I would run it on Apache, mySQL using PHP technology
And the system should be simple.
I admire Bugzilla project, but it seems to be very complicated ;(
Martin
"Jay Blanchard" <[EMAIL PROTECTED]> píse v diskusním
príspevku news:[EMAIL PROTECTED]
[snip]
Hm, good an
As Demitrious said, use mysql to do it.
But if you want to use php, just use substr(), since all the numbers are
there, there's no point converting to unix time, just to convert it back
again... unless you're going to do some maths of it
-Original Message-
From: Demitrious S. Kelly [mail
what about
if (strlen($result["FLRPLAN_3"]) > 0)
-Original Message-
From: markbm [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 23, 2002 2:02 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Problem with Not displaying HTML if data not found
I am trying to develop a page that, in certain pla
se it much, it's one of those tags that takes me ages to get the
syntax right (I could chuck it into a code repository somewhere, but I'm too
lazy to do that...)
Failing the above two methods, you could put a hidden form that gets
auto-submitted when the page loads
HTH
Martin
-O
cally, the
first time, without data in the field...it works fine and the is not
displayed, but when I add data back into the field, nothing changes...its
like it does not recognize that something is back in the field. I did a
commit on the db each time, and cleared the browser cache, etc.
Mark
I think the proper way of sending an ampersand is to use &
-Original Message-
From: Ricky [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 23, 2002 2:30 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Passing Special Characters In url
Hi,
I am having problems passing variables in a url specifica
I'm thinking that you need to remove the:
$contents = fread($filename, 100);
line. This is probably making the file pointer point to the end of the file.
-Original Message-
From: Jason Soza [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 23, 2002 4:17 PM
To: David Robley; [EMAIL PRO
t is what section of code will execute.
Hope that helps!
Martin Clifford
Homepage: http://www.completesource.net
Developer's Forums: http://www.completesource.net/forums/
>>> "Javier Montserat" <[EMAIL PROTECTED]> 07/23/02 10:03AM >>>
is there a more pro
Put an ampersat symbol (@) in front of the function name to suppress errors.
$link = @mysql_connect("host", "user", "pass");
Martin Clifford
Homepage: http://www.completesource.net
Developer's Forums: http://www.completesource.net/forums/
>>> &
PHP is server-side, so it can't do anything that would help with the layout of HTML on
the client-side. You might want to look into Cascading Style Sheets (CSS) to format
the page so that it validates the way you want it to :o)
HTH!
Martin Clifford
Homepage: http://www.completesourc
Try this:
function do_mod_10($num)
{
// The Luhn formula works right to left, so reverse the number.
$num = strrev($num);
$total = 0;
for ($i = 0, $j = 1; $i < strlen($num); $i++, $j=3-$j)
{
$digit = $num[$i] * $j;
if ($digit > 9) $digit -= 9;
$total +=
use the auto_append or auto_prepend directives in the php.ini file
-Original Message-
From: Dave at Sinewaves.net [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 24, 2002 1:48 PM
To: PHPlist
Subject: [PHP] Banner Ad Serving...
Is there any way of automatically adding a certain bit of c
trick. But like I said, once the parser begins to write HTML to the
browser, then you can no longer send HTTP headers.
Martin Clifford
Homepage: http://www.completesource.net
Developer's Forums: http://www.completesource.net/forums/
>>> "Roberts, Mark" <[EMAIL PROTECTED
Awesome! Learn something new everyday!
That's why I love this list :o)
Martin Clifford
Homepage: http://www.completesource.net
Developer's Forums: http://www.completesource.net/forums/
>>> "Chris Sharkey" <[EMAIL PROTECTED]> 07/24/02 11:01AM >>&g
yours.
BTW, I hadn't intended this to become a chapter, but it did... sorry for the length :o)
Martin Clifford
Homepage: http://www.completesource.net
Developer's Forums: http://www.completesource.net/forums/
>>> <[EMAIL PROTECTED]> 07/24/02 12:46PM >>>
I have ju
With phpMyAdmin, just scroll down until you see the dumping section. Select the
appropriate information, tick the "save as file" box, then "Go". It'll prompt you to
save the file. You just use that file, then, as a query to your next database.
Martin
>>
Shouldn't it be:
$result = mysql_query($sql, $link_id);
PHP will be quick to tell you that there is a missing link identifier in the
mysql_query() call. It's happened to me plenty of times. HTH!
Martin Clifford
Homepage: http://www.completesource.net
Developer'
I've never had a problem with this. Even using a textbox with only the required
parameters works fine as far as hitting the return key to get a newline. If you're
talking about hitting the return key to submit, that's something else entirely, hehe.
Martin Clifford
It is on whatever installation my host is running :o) I know it's 4.x, though I
should really make them upgrade.
>>> "Phillip S. Baker" <[EMAIL PROTECTED]> 07/24/02 02:34PM >>>
At 11:26 AM 7/24/2002 Wednesday, Martin Clifford wrote:
>Shouldn't
This should work
$object = new $classname;
Martin
-Original Message-
From: Michiel ten Hagen [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 24, 2002 11:17 PM
To: 'Mathieu Dumoulin'
Cc: [EMAIL PROTECTED]
Subject: [PHP] RE: create object from variable class.
Thx
you could use: printf("%02d", ++$Num);
or if you want to put it back into $Num, use the sprintf() version
-Original Message-
From: vins [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 25, 2002 10:44 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Numbers with leading zero...
Hi.
I've got this
Sign up now if you
haven't all!
Martin Clifford
Homepage: http://www.completesource.net
Developer's Forums: http://www.completesource.net/forums/
>>> "Jay Blanchard" <[EMAIL PROTECTED]> 07/25/02 10:15AM >>>
Top 10 Locales --
Washington DC (9 members)
BY id ASC LIMIT 15
The functions you'll want to look into are mysql_connect(), mysql_select_db(),
mysql_query() and mysql_fetch_array(). They can be found at http://www.php.net, do a
search for any one of the functions ;o)
HTH
Martin
>>> "Tyler Durdin" <[EMAIL P
<>
Why didn't you just say, "Charge by whichever will screw the client the worst."?
Jesus.
Martin
>>> Tyler Longren <[EMAIL PROTECTED]> 07/25/02 11:44AM >>>
Charge by which ever will get you the most money.
tyler
On Thu, 25 Jul 2002 11:46:38
Yes, that will indeed return the rows specified, but the result is very unstable. By
it's nature, MySQL does not have to conform to any sorting method unless you specify
it. So it's very good practice when retrieving multiple rows to ALWAYS order them.
Just my thoughts :
You have to have session_start() in each page in order to carry over session
variables. :o)
Martin Clifford
Homepage: http://www.completesource.net
Developer's Forums: http://www.completesource.net/forums/
>>> "DonPro" <[EMAIL PROTECTED]> 07/26/02 04:06PM >&
are going to use the header() function without
output buffering, then it should be just like this:
—--top of text editor
—-- End of text editor
Martin Clifford
Homepage: http://www.completesource.net
Developer's Forums: http://www.completesource.net/forums/
>>> "Ty
1) To echo the variables name instead of it's value, surround it instead by single
quotes, not double.
echo '$var' OUTPUTS $var
echo "$var" OUTPUTS the contents of $var
2) Checkout the func_get_args() function.
http://www.php.net/manual/en/function.func-g
I always just register an extra variable to track logged in users. If the user has
logged in, it is set to TRUE, if not, FALSE. Then I just do comparisons on that
variable.
Something along those lines.
>>> "Tyler Durdin" <[EMAIL PROTECTED]> 07/26/02 03:28PM >>>
alrigh I have switched eve
You'll prob. need to use the (+) to join
like this
SELECT grp.grpdescrip, grp.grp, grp.createcust, grp.auth1, grp.auth2,
usergrp.userid, users.userdescrip
FROM grp, usergrp, users
WHERE grp.grp = usergrp.grp (+)
AND usergrp.userid=users.userid (+)
ORDER BY grp.grp
-Original Message-
From
try changing these two lines
$num_rows = mysql_num_rows($result);
$num_cols = 2;
to this
$num_cols = 2;
$num_rows = mysql_num_rows($result) / $num_cols;
this isn't the full solution, but will help you on your way...
HTH
Martin
-Original Message-
From: César Aracena [mailto:[
element. That string is then passed to
the PHP page, where it can be parsed (ala implode/explode) and put into a new array.
I hope that made some sense :o)
Martin Clifford
Homepage: http://www.completesource.net
Developer's Forums: http://www.completesource.net/forums/
>>> &quo
You can't send headers after the page has left the server. If you try to write to the
HTML file in ANY way, even a hard return in your code, then you are telling the server
that the headers have been completed and should be sent to the client (browser).
Martin Clifford
Homepage:
\n\n";
?>
Something similar will work fine.
Martin Clifford
Homepage: http://www.completesource.net
Developer's Forums: http://www.completesource.net/forums/
>>> Kelly Meeks <[EMAIL PROTECTED]> 07/29/02 04:00PM >>>
Sorry for the off topic post, but thi
or as before, since a hard return was entered before the
parser began it's work, therefore finishing the headers and sending the data to the
client for rendering. Hope this clears something up :o)
Martin Clifford
Homepage: http://www.completesource.net
Developer's Forums: http://www.com
101 - 200 of 1954 matches
Mail list logo