[PHP] Table trouble

2003-07-07 Thread phpu
Hello I need help. I'm querying a database then printing the results in a table. I want the result to be in a table with 2 columns per row. something like that ---- -- -- row 1

Re: [PHP] New to PHP

2003-07-07 Thread Kevin Stone
No there are no real pre-requisites to learning PHP. You should be comfortable working with the OS that you're used to, but that goes without saying. PHP is an almost ideal beginner's language. Knowledge of Linux is certainly not required. There are PHP installers for Windows and Mac that are

Re: [PHP] New to PHP

2003-07-07 Thread Steve Keller
At 7/8/2003 03:30 AM, Hiren Mehta wrote: Thnx alot guys You have been of great help :D And don't forget this list! There are a lot of really talented people on this list, so if you're trying to figure something out and haven't been able to find an answer on your own, don't hesitate to ask

Re: [PHP] PHP/Content Management

2003-07-07 Thread Robert Samuel White
Hello, I was just alerted of the issue by another fellow with a way excellent website at saturn5.com :-) I wish I could help you! But I have never heard of the Safari browser and without using it or getting more information about what is causing your problem, I cannot do anything! It is

Re: [PHP] qry not running??

2003-07-07 Thread Jeff Harris
On Jul 7, 2003, Micah Montoy claimed that: |Well, I redid the code a bit but it is still blowing up with the same error |message. I also did the echo bit and it returned Resource id #10. What |ever that is. At least I know its returning something. But when I did |mssql_row_nums($result), it

Re: [PHP] Table trouble

2003-07-07 Thread Kevin Stone
I'd just dump all of the results into an array and do something like this: echo table border=1\n; for($i=0; $icount($array);) { echo \ttr\n; for($j=0; $j2; $j++) { echo \t\ttd.$array[$i]./td\n; $i++; } echo \t/tr\n; } echo /table\n; On odd numbered arrays

Re: [PHP] Table trouble

2003-07-07 Thread Jeff Harris
On Jul 8, 2003, phpu claimed that: |Hello |I need help. |I'm querying a database then printing the results in a table. I want the result to be in a table with 2 columns per row. |something like that | | |-- row 1 --

[PHP] Changing Apache Log/Environment entries

2003-07-07 Thread Guy Davis
Hi all, I have a question which I'll try to convey as best as I can. I want to change the referer variable so when I do a: header(Location: $location); the log files on the resulting location have the information in the referer environment variable that I have set, not what was originally in

Re: [PHP] New to PHP

2003-07-07 Thread Jeff Harris
On Jul 7, 2003, Steve Keller claimed that: |At 7/8/2003 03:30 AM, Hiren Mehta wrote: | | Thnx alot guys You have been of great help :D | |And don't forget this list! There are a lot of really talented people on |this list, so if you're trying to figure something out and haven't been |able to

Re: [PHP] reposting data into forms after confirmation screen

2003-07-07 Thread Dean E. Weimer
Alternately, you could place code similar to this in your first form. echo input type=\text\ name=\data\; if ( isset($_POST['data']) ) { echo value=\.$_POST['data'].\; } echo / When you first access this form it would output: input type=test name=data / And when returning, assuming that your

[PHP] Re: script not stopping

2003-07-07 Thread Thomas Seifert
try that if (!isset($_POST[imgList]) || empty($_POST[imgList])){ for the comparison. Thomas On Mon, 7 Jul 2003 16:02:21 -0600 [EMAIL PROTECTED] (Micah Montoy) wrote: How do I specify it that I just want to check to see if the form field was blank and if so, inform the user? I know I

Re: [PHP] Call by reference to function arguments

2003-07-07 Thread Alain Williams
On Mon, Jul 07, 2003 at 06:20:42PM +0100, David Otton wrote: On Mon, 7 Jul 2003 17:36:26 +0100, you wrote: I want to write a function (as I have written in several other languages) that obtains it's arguments dynamically (using func_get_arg()) and then assigns to that argument. Think of the

Re: [PHP] PHP/Content Management

2003-07-07 Thread Thomas Seifert
Safari is the new Mac-Browser by Apple. Its using the KHTML-component from Konqueror (Linux). Thomas On Mon, 07 Jul 2003 18:06:29 -0400 [EMAIL PROTECTED] (Robert Samuel White) wrote: Hello, I was just alerted of the issue by another fellow with a way excellent website at saturn5.com :-)

Re: [PHP] Table trouble

2003-07-07 Thread phpu
10x but i am new to php and i do not know how to dump all of the results into an array can you help me with this one please? - Original Message - From: Kevin Stone [EMAIL PROTECTED] To: phpu [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, July 08, 2003 1:19 AM Subject: Re: [PHP]

[PHP] Richiedo contributo per sapere come interfacciare php con un server di posta., nel mio caso un server di posta in arrivo(POP).

2003-07-07 Thread Valentina
Salve spero di aver chiarito nell'oggetto del messaggio il problema. Se così non fosse per rendere l'idea : ho un server di posta in arrivo a cui vorrei accedere(avendo le dovute autorizzazioni chiaramente) tramite php e sul quale vorrei poter leggere i messaggi presenti. Nel mio caso mi aspetto

[PHP] Re: Connect Active Directory using LDAP... please help :)

2003-07-07 Thread The.Rock
Try this and see if it works. I had the same problem until I did a little reading. I had to use [EMAIL PROTECTED] as username then I didn't get the credential errors anymore. hope this helps, its very basic but hopefully it gets you started. * Config.php** ?php

Re: [PHP] Table trouble

2003-07-07 Thread phpu
so far i have: $sql=select * from cate order by name asc; $resurs=mysql_query($sql); while ($row=mysql_fetch_array($resurs)) { echo .$row[1].; echo .$row[2].; echo .$row[3].; } how can i put all of this together? echo /table; - Original Message - From: Michael A Smith [EMAIL

[PHP] Re: script not stopping

2003-07-07 Thread Paul Chvostek
Paul Chvostek [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Mon, Jul 07, 2003 at 03:28:27PM -0600, Micah Montoy wrote: if ($_POST[imgList] = ){ You're *assigning* a variable in this condition. On Mon, Jul 07, 2003 at 04:02:21PM -0600, Micah Montoy wrote: How do I

[PHP] php arrays into flash

2003-07-07 Thread Jim McNeely
I know a lot more about php than about flash (which is probably sad) but does anyone know how to take info in an array and pass it into an array in flash? I think they have arrays, but the only thing I can seem to find in flash to get info from php is the loadvariable actionscript step. I

Re: [PHP] php arrays into flash

2003-07-07 Thread Jim Lucas
don't know about loading it directly in flash, but you could always create a javascript array in the page that loads the flash module and then have flash read it or javascript enter it into the flash module. Jim lucas - Original Message - From: Jim McNeely [EMAIL PROTECTED] To: [EMAIL

Re: [PHP] php arrays into flash

2003-07-07 Thread Miles Thompson
Jim, The key words are implode on the PHP side and split on the Flash side. Here's an example: The data is returned from PHP like so, after doing the connect, select, etc. to produce an array of 7 dates for back issues ... no claim that this is optimal code. if( $result mysql_num_rows(

Re: [PHP] php arrays into flash

2003-07-07 Thread Pascal Polleunus
Jim McNeely wrote: I know a lot more about php than about flash (which is probably sad) but does anyone know how to take info in an array and pass it into an array in flash? I think they have arrays, but the only thing I can seem to find in flash to get info from php is the loadvariable

[PHP] Eregi filtering..

2003-07-07 Thread Miranda, Joel Louie M
elseif (eregi(a-ZA-9, $v_tel_filter)) { echo '$v_tel_filter' Telephone Number Contains words; } else { im looking how to verify numbers alone and dash - can that be possible? I have tried using a-ZA-9 but did not work. any ideas? thanks, louie -- Thank you, Louie -- PHP General

RE: [PHP] Eregi filtering..

2003-07-07 Thread Ralph
Here is one of doing this: if(strrpos($v_tel_filter,' ') 0 || strspn($v_tel_filter, 0123456789-) != strlen($v_tel_filter)){ echo '$v_tel_filter' Telephone Number Contains words; } else { } -Original Message- From: Miranda, Joel Louie M [mailto:[EMAIL PROTECTED] Sent:

RE: [PHP] Eregi filtering..

2003-07-07 Thread Miranda, Joel Louie M
Hey ralph, its you again! :) thanks, its now working.. if(strrpos($v_tel_filter,' ') 0 || strspn($v_tel_filter, 0123456789-) != strlen($v_tel_filter)){ echo '$v_tel_filter' Telephone Number Contains words; } else { I'll check on the syntax for strrpos, thanks! -- Thank you, Louie

Re: [PHP] Eregi filtering..

2003-07-07 Thread Mike Migurski
elseif (eregi(a-ZA-9, $v_tel_filter)) { echo '$v_tel_filter' Telephone Number Contains words; } else { im looking how to verify numbers alone and dash - can that be possible? I have tried using a-ZA-9 but did not work. /^[\-\d]+$/ should match a string of just digits and dashes.

Re: [PHP] PHP/Content Management

2003-07-07 Thread Robert Samuel White
I fixed the problem; now works with Safari. =) Richard Baskett wrote: Do you realize that link does not work with the Safari browser? it just shows up blank :( Rick When one door closes, another opens; but we often look so long and so regretfully upon the closed door that we do not see the

RE: [PHP] php arrays into flash

2003-07-07 Thread Ralph
Here is a site you might want to look at: http://polar-lights.com/en/ -Original Message- From: Jim McNeely [mailto:[EMAIL PROTECTED] Sent: Monday, July 07, 2003 4:29 PM To: [EMAIL PROTECTED] Subject: [PHP] php arrays into flash I know a lot more about php than about flash (which is

RE: [PHP] Table trouble

2003-07-07 Thread Ralph
Here's a tutorial on doing this: http://codewalkers.com/tutorials.php?show=15 -Original Message- From: phpu [mailto:[EMAIL PROTECTED] Sent: Monday, July 07, 2003 3:04 PM To: [EMAIL PROTECTED] Subject: [PHP] Table trouble Hello I need help. I'm querying a database then printing the

RE: [PHP] Table trouble

2003-07-07 Thread Ralph
fetchinto? On Mon, 2003-07-07 at 14:42, phpu wrote: 10x but i am new to php and i do not know how to dump all of the results into an array can you help me with this one please? $sql=select * from cate order by name asc; $resurs=mysql_query($sql); while ($row=mysql_fetch_array($resurs))

Re: [PHP] Call by reference to function arguments

2003-07-07 Thread David Otton
On Mon, 7 Jul 2003 23:37:58 +0100, you wrote: On Mon, Jul 07, 2003 at 06:20:42PM +0100, David Otton wrote: On Mon, 7 Jul 2003 17:36:26 +0100, you wrote: I want to write a function (as I have written in several other languages) that obtains it's arguments dynamically (using func_get_arg())

RE: [PHP] New to PHP

2003-07-07 Thread Ralph
Here are some sites for you to get started: http://www.zend.com/developers.php http://www.phpcomplete.com/tutorials.php http://www.evilwalrus.com/articles.php And for books, here are some excellent books I've come across: Programming PHP By Rasmus Lerdorf Web Application Development with PHP

[PHP] problem with 4.3.2

2003-07-07 Thread user
After upgrading from 4.2.3 to 4.3.2 apache fail to load with an error: Invalid command 'php_admin_value', perhaps mis-spelled... php_admin_flag also fails. I tried with and without php.ini. php was compile with --with-apxs --with-mysql --with-gd --with-xml --with-iconv --with-gettext

[PHP] Image verification problem..

2003-07-07 Thread Miranda, Joel Louie M
Im trying the image verification thing I think everything goes well for the generation of the image but when it comes to verifying the text when I typed in any text it just generates and process the form, but when I leave it blank it says the error. I think the session variables for $new_string is

RE: [PHP] Image verification problem..

2003-07-07 Thread Ralph
You should register session for 'new_string' after assigning a value to it. So try placing session_start(); session_register('new_string'); after the rest of your first.php code. That should work. -Original Message- From: Miranda, Joel Louie M [mailto:[EMAIL PROTECTED] Sent:

RE: [PHP] Image verification problem..

2003-07-07 Thread Ralph Guzman
-Original Message- From: Ralph [mailto:[EMAIL PROTECTED] Sent: Monday, July 07, 2003 7:02 PM To: 'Miranda, Joel Louie M'; [EMAIL PROTECTED] Subject: RE: [PHP] Image verification problem.. You should register session for 'new_string' after assigning a value to it. So try placing

RE: [PHP] a recommended FREE PHP shopping cart

2003-07-07 Thread Ralph Guzman
http://www.oscommerce.com -Original Message- From: Noah Solodky [mailto:[EMAIL PROTECTED] Sent: Monday, July 07, 2003 1:54 PM To: [EMAIL PROTECTED] Subject: [PHP] a recommended FREE PHP shopping cart Hello can any one recommended a FREE PHP /MYSQL shopping cart,,that they have set

RE: [PHP] Image verification problem..

2003-07-07 Thread Miranda, Joel Louie M
Ralph, That's what I did on first.php code I wonder why. -- first.php -- session_start(); session_register('new_string'); Header(Content-Type: image/png); $new_string; $im = ImageCreate(200, 50); $white = ImageColorAllocate($im, 255, 255, 255); $black = ImageColorAllocate($im, 0, 0, 0);

RE: [PHP] PEAR

2003-07-07 Thread Ralph Guzman
http://www.appelsiini.net/~tuupola/php/peardoc2/index.html http://www.phpkitchen.com/staticpages/index.php?page=2003041204203962 you might sign up for the pear mailing lists and ask these specific questions: http://pear.php.net/support.php -Original Message- From: [EMAIL PROTECTED]

Re: [PHP] Spammer! ...

2003-07-07 Thread Joel Rees
STOP SPAMING the list. http://www.php.net/mailing-lists.php Has some basic guidelines for list useage. (To the OP, [ANN] or [ANNOUNCEMENT] is a kinder tag.) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Forgotton Command

2003-07-07 Thread Brenton Dobell
Hey all, Im new to this list and fairly new to php, anyways I had a command to get a variable of numbers eg. 14.39287376585639584673 I used to know a command to strip the variable back to 4 digits eg 12.3 But for the life of me i cant remember the command, can anyone please help, ive tried

RE: [PHP] Image verification problem..

2003-07-07 Thread Miranda, Joel Louie M
Well, does post has anything to do with this? I have this code running on a post and I just hide it as a variable and pass it over to another post I have a session that has only on 2 codes w/c is first.php and second.php -- Thank you, Louie -Original Message- From: Miranda, Joel

RE: [PHP] print vs. heredoc

2003-07-07 Thread Ralph Guzman
One way to get around having to edit backslashes is to echo using single quotes. For example: echo 'TABLE BORDER=0 WIDTH=100%TRTD' . $variable . '/TD/TR/TABLE'; -Original Message- From: Greg Donald [mailto:[EMAIL PROTECTED] Sent: Sunday, July 06, 2003 3:48 PM To: Sparky Kopetzky Cc:

RE: [PHP] Forgotton Command

2003-07-07 Thread Ralph Guzman
Are you talking about number_format()? http://www.php.net/number_format or substr(): http://www.php.net/manual/en/function.substr.php -Original Message- From: Brenton Dobell [mailto:[EMAIL PROTECTED] Sent: Monday, July 07, 2003 7:23 PM To: [EMAIL PROTECTED] Subject: [PHP] Forgotton

RE: [PHP] Image verification problem..

2003-07-07 Thread Miranda, Joel Louie M
I was wrong about the post, I addedd the header on the global fields on my code. Header(Content-Type: image/png); session_start(); $new_string; session_register('new_string'); Image verification is now working, hahaha! Yahoo!! Php the best! -- Thank you, Louie -Original Message-

Re: [PHP] print vs heredoc

2003-07-07 Thread Joel Rees
Hi, again!! I thought I saw this post once already. I'm looking for opinions as to which is better/faster, print or heredoc. Well, like the guy said before, it sounds like you've pretty much already made up your mind. I don't use heredocs everywhere, but when I have a fairly large block of

RE: [PHP] Image verification problem..

2003-07-07 Thread Miranda, Joel Louie M
I just wonder, how do you make it fuzzy? I mean the image? On my book, its all plain but how about making it fuzzy? -- Thank you, Louie -Original Message- From: Miranda, Joel Louie M Sent: Tuesday, July 08, 2003 10:55 AM To: 'Ralph'; '[EMAIL PROTECTED]' Subject: RE: [PHP] Image

Re: [PHP] print vs heredoc

2003-07-07 Thread Tom Rogers
Hi, Monday, July 7, 2003, 11:33:38 PM, you wrote: SK Hi, again!! SK I'm looking for opinions as to which is better/faster, print or heredoc. SK print makes the code layout look nice and eazy to debug, where heredoc IS faster but makes the code look like a nightmare with everything jammed

Re: [PHP] error on array loop through foreach?

2003-07-07 Thread Micah Montoy
It did help and I altered the script a bit. It now reads as: $count = 0; //get file size function function fsize($file) { $a = array(B, KB, MB); $pos = 0; $size = filesize($file); while ($size = 1024) { $size /= 1024; $pos++; } return round($size,2). .$a[$pos]; } //loop through all

[PHP] Regular Expression

2003-07-07 Thread Ralph Guzman
I have a form where I have to check whether user is submitting a PO Box as an address. I wrote the following using eregi, but it returns true even when the field is not Po Box. How do I go about doing this properly? if(eregi(^Po Box$, $address)){ $error_message_custom = You cannot use a PO BOX

[PHP] Wrong parameter count for fgets

2003-07-07 Thread Miranda, Joel Louie M
Warning: Wrong parameter count for fgets() in I had this error on of my scripts, any ideas on this part? How come this error occur? -- Thank you, Louie -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

<    1   2