[PHP] Re: functions and

2003-03-03 Thread Martin Johansson
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

Re: [PHP] Re: functions and

2003-03-03 Thread Martin Johansson
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

RE: [PHP] Dollar signs in values

2003-03-06 Thread Martin Towell
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

Re: [PHP] what the hell in this sql

2003-03-12 Thread Martin Mandl
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

Re: [PHP] PDF - PHP (on the fly using templates??)

2003-03-12 Thread Martin Mandl
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

[PHP] Re: how to uploads files

2003-03-12 Thread Martin Mandl
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

[PHP] string validating

2003-03-12 Thread Martin Dziura
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

[PHP] Re: need a new challenge

2003-03-14 Thread Martin Mandl
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

Re: [PHP] Re user Identifying

2003-03-14 Thread Martin Mandl
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

RE: [PHP] Calculating if number is multiple of another number

2003-07-02 Thread Martin Towell
($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

[PHP] PHP5 classes

2003-07-02 Thread Martin Towell
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

Re: [PHP] about writing permissions

2003-07-08 Thread Martin Hudec
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." -

RE: [PHP] Object assignment

2003-07-08 Thread Martin Towell
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

RE: [PHP] how to force variables declaration??

2003-07-08 Thread Martin Towell
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

RE: [PHP] do i need to output headers on parsed CSS files?

2003-07-23 Thread Martin Towell
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

[PHP] problem: creating global alias inside function

2003-07-28 Thread Martin Peck
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

Re: [PHP] uploading a file from a form

2003-07-28 Thread Martin Peck
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

RE: [PHP] Strip Numbers

2003-07-29 Thread Martin Towell
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

[PHP] strange foreach behaviour

2003-08-05 Thread Martin Peck
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

[PHP] Re: strange foreach behaviour

2003-08-05 Thread Martin Peck
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

RE: [PHP] error: cannot redeclare ()

2003-08-07 Thread Martin Towell
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

RE: [PHP] Still can't pass variable through url

2003-08-08 Thread Martin Towell
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

RE: [PHP] postmaster@hanmir.com

2003-08-08 Thread Martin Towell
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 [

RE: [PHP] Still can't pass variable through url

2003-08-10 Thread Martin Towell
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

RE: [PHP] Calling to a page without having to load it

2003-08-14 Thread Martin Towell
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

[PHP] segmentation faults

2003-08-14 Thread Martin Peck
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

[PHP] error: cannot redeclare ()

2003-08-14 Thread Martin Towell
($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

Re: [PHP] segmentation faults

2003-08-14 Thread Martin Peck
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

Re: [PHP] segmentation faults

2003-08-14 Thread Martin Peck
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

Re: [PHP] Correct Coding

2003-08-14 Thread Martin Peck
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

RE: [PHP] If you ever had a Vic20

2003-08-15 Thread Martin Towell
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:

[PHP] howto set locale only once

2003-08-15 Thread Martin Leja
ebian system. -- Regards, martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] If you ever had a Vic20

2003-08-18 Thread Martin Towell
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

RE: [PHP] window.open("hai.php?id="one");

2003-08-18 Thread Martin Towell
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

RE: [PHP] window.open("hai.php?id="one");

2003-08-18 Thread Martin Towell
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

RE: [PHP] unexpected date results

2003-08-20 Thread Martin Towell
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

[PHP] mb_send_mail displays boundary marker

2003-08-26 Thread Martin Towell
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 <

[PHP] Getting linux server's country

2003-03-18 Thread 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

RE: [PHP] Getting linux server's country

2003-03-19 Thread Martin Towell
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

RE: [PHP] Zero Fill -> Number Format

2003-03-19 Thread Martin Towell
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;

RE: [PHP] strip single quotes

2003-03-19 Thread Martin Towell
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

RE: [PHP] Zero Fill -> Number Format

2003-03-20 Thread Martin Towell
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

RE: [PHP] multiple foreach

2003-03-20 Thread Martin Towell
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

RE: [PHP] echo

2003-03-20 Thread Martin Towell
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

RE: [PHP] echo

2003-03-20 Thread Martin Towell
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

RE: [PHP] Why this script doesn't work?

2003-03-27 Thread Martin Towell
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

RE: [PHP] sript doesn't work

2003-03-27 Thread Martin Towell
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

RE: [PHP] date math question

2003-03-27 Thread Martin Towell
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:

RE: [PHP] delete lines from text file

2003-06-05 Thread Martin Towell
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:

RE: [PHP] using a for loop but it is not working how come

2003-06-05 Thread Martin Towell
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

[PHP] static vars question

2003-05-31 Thread Martin Helie
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

Re: [PHP] static vars question

2003-05-31 Thread Martin Helie
> 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,

Re: [PHP] static vars question

2003-05-31 Thread Martin Helie
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 >

Re: [PHP] static vars question

2003-05-31 Thread Martin Helie
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

[PHP] Re: Adding graphics library

2003-05-31 Thread Martin Helie
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

[PHP] Re: Long screen display cut short.

2003-05-31 Thread Martin Helie
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

Re: [PHP] Re: Adding graphics library

2003-06-01 Thread Martin Helie
[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

RE: [PHP] String containing PHP Code

2003-06-16 Thread Martin Towell
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

RE: [PHP] String containing PHP Code

2003-06-16 Thread Martin Towell
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

RE: [PHP] Can't pass query string from HTML to PHP

2003-06-19 Thread Martin Towell
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

RE: [PHP] Month name

2003-06-24 Thread Martin Towell
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

RE: [PHP] pdf routine - good local / bad online

2003-06-25 Thread Martin Towell
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

RE: [PHP] Converting Array

2003-06-25 Thread Martin Towell
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'

[PHP] defect tracking systems

2003-06-26 Thread Martin Balcar
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

Re: [PHP] defect tracking systems

2003-06-26 Thread Martin Balcar
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 [/

Re: [PHP] defect tracking systems

2003-06-26 Thread Martin Balcar
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

RE: [PHP] Formating datevariables...

2002-07-22 Thread Martin Towell
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

RE: [PHP] Problem with Not displaying HTML if data not found

2002-07-22 Thread Martin Towell
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

RE: [PHP] redirecting after login

2002-07-22 Thread Martin Towell
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

RE: [PHP] Problem with Not displaying HTML if data not found

2002-07-22 Thread Martin Towell
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

RE: [PHP] Passing Special Characters In url

2002-07-22 Thread Martin Towell
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

RE: [PHP] Re: Using fopen()/fread()/fscanf()

2002-07-22 Thread Martin Towell
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

Re: [PHP] control structure question

2002-07-23 Thread Martin Clifford
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

Re: [PHP] Using PHP with MySQL - Can I supress MySQL errors?

2002-07-23 Thread Martin Clifford
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/ >>> &

Re: [PHP] PHP creating table for HTML layout

2002-07-23 Thread Martin Clifford
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

RE: [PHP] Re: Credit card checks?

2002-07-23 Thread Martin Towell
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 +=

RE: [PHP] Banner Ad Serving...

2002-07-23 Thread Martin Towell
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

Re: [PHP] Re-directing

2002-07-24 Thread Martin Clifford
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

Re: [PHP] Re-directing

2002-07-24 Thread Martin Clifford
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

Re: [PHP] PHPMyAdmin interface

2002-07-24 Thread Martin Clifford
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

Re: [PHP] MySQL Backup and Restore

2002-07-24 Thread Martin Clifford
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 >>

Re: [PHP] Help with msql_fetch_array()

2002-07-24 Thread Martin Clifford
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'

Re: [PHP] Hitting return in a textarea box...

2002-07-24 Thread Martin Clifford
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

Re: [PHP] Help with msql_fetch_array()

2002-07-24 Thread 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

RE: [PHP] RE: create object from variable class.

2002-07-24 Thread Martin Towell
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

RE: [PHP] Numbers with leading zero...

2002-07-24 Thread Martin Towell
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

Re: [PHP] PHP Meetup, how many of you have signed up?

2002-07-25 Thread Martin Clifford
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)

Re: [PHP] pulling records from mysql

2002-07-25 Thread Martin Clifford
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

Re: [PHP] Paying Job...

2002-07-25 Thread Martin Clifford
<> 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

Re: [PHP] pulling records from mysql

2002-07-25 Thread Martin Clifford
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 :

Re: [PHP] How can I get my session variable to pass to anotherpage?

2002-07-26 Thread Martin Clifford
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 >&

RE: [PHP] php redirect

2002-07-26 Thread Martin Clifford
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

Re: [PHP] (newbie) questions abot vars and args

2002-07-26 Thread Martin Clifford
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

Re: [PHP] still on sessions

2002-07-26 Thread Martin Clifford
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

RE: [PHP] Oracle 8i SQL Problem..

2002-07-28 Thread Martin Towell
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

RE: [PHP] Re: Table formatting

2002-07-28 Thread Martin Towell
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:[

Re: [PHP] Array variable in Javascript & PHP

2002-07-29 Thread Martin Clifford
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

Re: [PHP] Help Please

2002-07-29 Thread Martin Clifford
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:

Re: [PHP] OT - javascript question..

2002-07-29 Thread Martin Clifford
\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

Re: [PHP] Help Please

2002-07-29 Thread Martin Clifford
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

<    1   2   3   4   5   6   7   8   9   10   >