Re: [PHP] Line Number function?

2003-02-01 Thread Philip Olson
On Sun, 2 Feb 2003, Michael Sims wrote: > On Sat, 1 Feb 2003 19:59:00 -0800, you wrote: > > >PHP keeps track of what line# is being executed, so that when there's an > >error (say in pg_exec() ) it reports what line the error occured on. > [...] > >Is there a function where I can access this in

Re: [PHP] help with script!!!

2003-02-01 Thread Philip Olson
On Sat, 1 Feb 2003, Karl James wrote: > Hello guys and gals!!! > > can you tell me why i can't get this script to print my > table > > thanks Karl > > please check out the code below > obviously i left my username and passwords blank :-) > > > -

Re: [PHP] Re: Register globals on and off

2003-02-01 Thread Philip Olson
On Sun, 2 Feb 2003, Pat Johnston wrote: > I've read that an include file in each of your pages with the lines below > should do the trick for you with register_globals OFF.. > > Not sure if this is a valid way to go though... > > extract($_SERVER); > extract($_ENV); > extract($_

Re: [PHP] help with script!!!

2003-02-01 Thread Hugh Danaher
echo("| %s | %s | %s | %s | %s |", $array[id], $array[username], $array[password], $array[status], $array[notes]); try echo "| %s | %s | %s | %s | %s |".$array[id]." ".$array[username]." ".$array[password]." ".$array[status]." ".$array[notes]; dots not comas between variables. Hope this helps. Hu

RE: [PHP] using tags with php

2003-02-01 Thread David Freeman
> i am having a problem using tags by using current > values kept in a mysql table. how do you get the values out of the table and > into a form so they show as the value= part of the tag? Start by making a basic test: "; ?> or you could try this: Either should work. Rinse and repe

Re: [PHP] Base64 Encode

2003-02-01 Thread Evan Nemerson
What about $_GET['goto']??? Sounds like another register_globals issue. Also, instead of base64 encoding, you may want to use the rawurlencode and rawurldecode functions. On Saturday 01 February 2003 07:02 pm, Stephen wrote: > I have a PHP script that works on older versions of PHP but on 4.3,

Re: [PHP] Line Number function?

2003-02-01 Thread Michael Sims
On Sat, 1 Feb 2003 19:59:00 -0800, you wrote: >PHP keeps track of what line# is being executed, so that when there's an >error (say in pg_exec() ) it reports what line the error occured on. [...] >Is there a function where I can access this information? Something like >"get_line();" or somethin

[PHP] Re: PHP.ini help on Linux

2003-02-01 Thread Nicole
correction: #!/usr/bin/php -- Nicole URLTrak.com ElixirSafelist.com aeontrek.com "Nicole" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Thank you. Yes, I did chmod my scripts. chmod 754 and tried 755 too. Don't > see why it should be x on the world, though. I

RE: [PHP] using tags with php

2003-02-01 Thread David Freeman
> i want to set up a form that will load values from a table > and make them the > "value" of the edit box... then when people press an update > button then all > of the stuff that changes from the record already in the table gets > changed... anybody know how to make it where you can get th

[PHP] Re: PHP.ini help on Linux

2003-02-01 Thread Nicole
Thank you. Yes, I did chmod my scripts. chmod 754 and tried 755 too. Don't see why it should be x on the world, though. I would think if the script is being called by its owner, then x on the owner and group should be enough, no? I'm even using !#/usr/bin/php ... but then it doesn't even seem to b

[PHP] perl regex help

2003-02-01 Thread Alex
I will be quick. if . matches any character except newline (by default) then what can i use to match any character INCLUDING newline? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] .dat file

2003-02-01 Thread Karl James
hey guys   when you send me attachment, It wont let me view the .dat file what is that?     I tried to open with notepad and dreamweaver but it wont view the code.   Karl   IncrediMail - Email has finally evolved - Click Here

[PHP] help with script!!!

2003-02-01 Thread Karl James
Hello guys and gals!!! can you tell me why i can't get this script to print my table thanks Karl please check out the code below obviously i left my username and passwords blank :-) -

[PHP] Re: emulate callback error for php3

2003-02-01 Thread electroteque
to be a bit less vague , i have a db query wrapper function, and checks for mysql errors if there is one it needs to catch it to a callback function although php3 doesnt handle callback functions so you have to give it the line and file, is there anyway i can try and get away from putting the line

RE: [PHP] php and Mac running 8.6

2003-02-01 Thread Timothy Hitchens \(HiTCHO\)
If you are referring to php etc NO and for Zend NO. Timothy Hitchens (HiTCHO) Web Application Consulting e-mail: [EMAIL PROTECTED] > -Original Message- > From: Bobbi-Lea [mailto:[EMAIL PROTECTED]] > Sent: Sunday, 2 February 2003 2:30 PM > To: [EMAIL PROTECTED] > Subject: [PHP] php and M

RE: [PHP] Turn off PHP for certain directories?

2003-02-01 Thread Timothy Hitchens \(HiTCHO\)
If you don't use -Original Message- > From: Benjamin Smith [mailto:[EMAIL PROTECTED]] > Sent: Sunday, 2 February 2003 3:32 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Turn off PHP for certain directories? > > > Is it possible (using an apache directive, perhaps?) to turn > off php parsing

[PHP] php and Mac running 8.6

2003-02-01 Thread Bobbi-Lea
Howdy ... I've just installed php, zend developer, mysqladmin, and apache on my pc laptop. Are there any available for mac 8.6 ? cheers, bobbi-lea CyberFaerie media :: entertainment m:: 0411 543 554 e:: [EMAIL PROTECTED] a:: 32 acland dr, strathpine,

[PHP] Turn off PHP for certain directories?

2003-02-01 Thread Benjamin Smith
Is it possible (using an apache directive, perhaps?) to turn off php parsing for certain directories within a site? (but not others?) I picture something like (in httpd.conf) AllowOverride All Options FollowSymLinks NoParsePHP Can this be done? How? Perhaps as a php_value entry in the

RE: [PHP] Line Number function?

2003-02-01 Thread Steven Balthazor
I think what you are looking for is: __LINE__ See: http://www.php.net/manual/en/language.constants.predefined.php Cheers, Steven Balthazor -Original Message- From: Benjamin Smith [mailto:[EMAIL PROTECTED]] Sent: Saturday, February 01, 2003 8:59 PM To: [EMAIL PROTECTED] Subject: [PHP] L

Re: [PHP] using tags with php

2003-02-01 Thread Sunfire
ok let me try this question thing again... i am having a problem using tags by using current values kept in a mysql table. how do you get the values out of the table and into a form so they show as the value= part of the tag? i tried just aabout everything and it doesnt work even htmlspecialchars

[PHP] Line Number function?

2003-02-01 Thread Benjamin Smith
PHP keeps track of what line# is being executed, so that when there's an error (say in pg_exec() ) it reports what line the error occured on. This appears to happen even during runtime (not just during compilation). For example: - -- This woul

RE: [PHP] Loading CSV data into MySQL

2003-02-01 Thread Jason Sheets
You could create a integer column with an autoincrement flag, then order the rows by this column, that should give you the data in the order it was inserted into the db. Depending on your database there are other ways to do it. Jason On Sat, 2003-02-01 at 18:07, John W. Holmes wrote: > > On Sat,

Re: [PHP] Using SELECT and MULTIPLE in a form

2003-02-01 Thread Tom Rogers
Hi, Sunday, February 2, 2003, 1:29:30 PM, you wrote: JK> I am displaying a form using values obtained from a database query. JK> One of the elements contains about 20 different values. I want the JK> use to be able to select multiple values before pressing submit. JK> This seems to work, but when

Re: [PHP] Using SELECT and MULTIPLE in a form

2003-02-01 Thread John Nichel
Put empty square brackets (NAME='in_task_descr[]') after the name of your select element. Then all the slections will be in an array called... $_POST['in_task_descr'] or $_GET['in_task_descr'] Depending on your form method. James Kaufman wrote: I am displaying a form using values obtained from

[PHP] Using SELECT and MULTIPLE in a form

2003-02-01 Thread James Kaufman
I am displaying a form using values obtained from a database query. One of the elements contains about 20 different values. I want the use to be able to select multiple values before pressing submit. This seems to work, but when my php script is called, all I see is the last data value assigned to

Re: [PHP] 4.3 Install on Solaris

2003-02-01 Thread Dan Lowe
On Friday, January 31, 2003, at 08:13 PM, Weston Houghton wrote: I seem to be getting a silly error on Solaris when trying to do a PHP 4.3 make. I get an error that looks to me like the liner arguments are just too long. to be honest, I'm a bit stupified as to why this is happening or how to

[PHP] Base64 Encode

2003-02-01 Thread Stephen
I have a PHP script that works on older versions of PHP but on 4.3, it outputs nothing. Here's my code: '."\n" ."\n".'if (document.location == top.location)'."\n" .' top.location="home.php?goto=' .base64_encode($_SERVER["REQUEST_URI"]).'";'."\n" .''; ?> The problem is, when it

[PHP] Re: 4.3 Install on Solaris

2003-02-01 Thread J Smith
Weston Houghton wrote: > > All, > > I seem to be getting a silly error on Solaris when trying to do a PHP > 4.3 make. I get an error that looks to me like the liner arguments are > just too long. to be honest, I'm a bit stupified as to why this is > happening or how to fix it. FWIW, I have compi

[PHP] Re: PHP.ini help on Linux

2003-02-01 Thread Michael Mauch
Nicole <[EMAIL PROTECTED]> wrote: > I am having trouble doing things with PHP such as use the exec, system, > etc. functions. I can't seem to find the correct php.ini to turn safe_mode > off. The one file I did find has safe_mode turned off. When I view phpinfo() > it shows the global column with s

Re: [PHP] Passing Variables

2003-02-01 Thread Beauford.2002
Perfect. Thanks. - Original Message - From: "Philip Olson" <[EMAIL PROTECTED]> To: "Beauford.2002" <[EMAIL PROTECTED]> Cc: "PHP General" <[EMAIL PROTECTED]> Sent: Saturday, February 01, 2003 2:22 PM Subject: Re: [PHP] Passing Variables > On Sat, 1 Feb 2003, Beauford.2002 wrote: > > > Hi,

[PHP] Re: Register globals on and off

2003-02-01 Thread Pat Johnston
I've read that an include file in each of your pages with the lines below should do the trick for you with register_globals OFF.. Not sure if this is a valid way to go though... Regards, Pat "Davy Obdam" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hell

[PHP] emulate callback error for php3

2003-02-01 Thread electroteque
hi sorry to ask so many questions but i have now realised that php3 doesnt handle the callback error handling so i can return the line and file of the error into a function is there a way to emulate this in php3 ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://w

RE: [PHP] Loading CSV data into MySQL

2003-02-01 Thread John W. Holmes
> On Sat, 2003-02-01 at 17:25, John W. Holmes wrote: > > > I'm loading a .csv file into MySQL, done it a million times but for > > some > > > reason it is scrambling the row order. All the fields are making it in > > > correctly but the order of the rows seems to end up totally random. > > I've > >

Re: [PHP] using tags with php

2003-02-01 Thread Philip Olson
On Sat, 1 Feb 2003, Sunfire wrote: > hi.. i took your idea... > i put the error reporting code at the top of the script and ran it as the > problem was still there to see what would happen.. instead i get 0 messages > from the reporting system and all i get is the last 7 chars of the print > line

Re: [PHP] Screen Size detect??

2003-02-01 Thread Martin
you can create a form with hidden fields like this document.screendata.height.value=screen.height; document.screendata.width.value=screen.width; screendata.submit(); bye "Nigel Powell" <[EMAIL PROTECTED]> escribió en el mensaje [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... >

RE: [PHP] Screen Size detect??

2003-02-01 Thread Sean Malloy
index.htm function SubmitForm { document.myform.var.value = javascriptvalue; document.myform.submit(); } or something. I don't even know if that code works... I haven't tested it. but that could be the basis for somehting -Original Message- From: Nigel Powell [mailto:[EM

Re: [PHP] using tags with php (IMPORTANT READ)

2003-02-01 Thread Sunfire
hi.. i took your idea... i put the error reporting code at the top of the script and ran it as the problem was still there to see what would happen.. instead i get 0 messages from the reporting system and all i get is the last 7 chars of the print line and the }?> at the end of the script... so for

Re: [PHP] using tags with php (IMPORTANT READ)

2003-02-01 Thread Philip Olson
On Sat, 1 Feb 2003, Sunfire wrote: > if i do this: > /*all the mysql login stuff here*/ > > $query=mysql_query("select * from members"); > while($new=mysql_fetch_array($query)){ > echo "$new['company']"; > /*so on through the field list*/ > } > on output all i get is the title with a submit butt

Re: [PHP] Re: Loading CSV data into MySQL

2003-02-01 Thread Thomas Seifert
On 01 Feb 2003 18:06:01 -0500 [EMAIL PROTECTED] (Brian V Bonini) wrote: > On Sat, 2003-02-01 at 16:47, Thomas Seifert wrote: > > > > > > I'm loading a .csv file into MySQL, done it a million times but for some > > > reason it is scrambling the row order. All the fields are making it in > > > corr

[PHP] Re: PHP3 Web Architecture Framework

2003-02-01 Thread michael kimsal
Karthikeyan.Balasubramanian wrote: Hi, I browsed the web for many different web architecture and frameworks. I found many Interesting but all wants latest version of PHP at least PHP 4.0.6. I dont want to upgrade the PHP Version(4.0.5) that i have because many clients are using it and i dont

Re: [PHP] Redeclare formatdate

2003-02-01 Thread Miguel Brás
Thx for the help... Miguel "Jason Sheets" <[EMAIL PROTECTED]> escreveu na mensagem [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > This is a good reason to use include_once and require_once. > > Jason > > On Sat, 2003-02-01 at 15:59, John W. Holmes wrote: > > > I have this message coming when cal

RE: [PHP] Redeclare formatdate

2003-02-01 Thread Jason Sheets
This is a good reason to use include_once and require_once. Jason On Sat, 2003-02-01 at 15:59, John W. Holmes wrote: > > I have this message coming when calling the page main.php > > > > Fatal error: Cannot redeclare formatdate() in > > /home/virtual/site239/fst/var/www/html/home/not_main.ph

RE: [PHP] Loading CSV data into MySQL

2003-02-01 Thread Brian V Bonini
On Sat, 2003-02-01 at 17:25, John W. Holmes wrote: > > I'm loading a .csv file into MySQL, done it a million times but for > some > > reason it is scrambling the row order. All the fields are making it in > > correctly but the order of the rows seems to end up totally random. > I've > > done this a

Re: [PHP] Re: Loading CSV data into MySQL

2003-02-01 Thread Brian V Bonini
On Sat, 2003-02-01 at 16:47, Thomas Seifert wrote: > > > > I'm loading a .csv file into MySQL, done it a million times but for some > > reason it is scrambling the row order. All the fields are making it in > > correctly but the order of the rows seems to end up totally random. I've > > done this

RE: [PHP] Redeclare formatdate

2003-02-01 Thread John W. Holmes
> I have this message coming when calling the page main.php > > Fatal error: Cannot redeclare formatdate() in > /home/virtual/site239/fst/var/www/html/home/not_main.php on line 3 > > the code related to this message is: > > // format MySQL DATETIME value into a more readable string >

[PHP] Redeclare formatdate

2003-02-01 Thread Miguel Brás
Hi, I have this message coming when calling the page main.php Fatal error: Cannot redeclare formatdate() in /home/virtual/site239/fst/var/www/html/home/not_main.php on line 3 the code related to this message is: I use this code is some other pages and it works well, but here the c

Re: [PHP] using tags with php

2003-02-01 Thread Sunfire
if i do this: /*all the mysql login stuff here*/ $query=mysql_query("select * from members"); while($new=mysql_fetch_array($query)){ echo "$new['company']"; /*so on through the field list*/ } on output all i get is the title with a submit button..otherwise blank.. same thing with fetch_object()..

Re: [PHP] using tags with php

2003-02-01 Thread janet
In a message dated 2/1/2003 2:02:06 PM Pacific Standard Time, [EMAIL PROTECTED] writes: >i tried getting the values into vars using fetch_array/fetch_object and >fetch_row and tried to put them in variables but for some odd reason it >really doesnt work because when i try to use the vars in the va

RE: [PHP] Loading CSV data into MySQL

2003-02-01 Thread John W. Holmes
> I'm loading a .csv file into MySQL, done it a million times but for some > reason it is scrambling the row order. All the fields are making it in > correctly but the order of the rows seems to end up totally random. I've > done this a million times and never saw this.. So? Why does it matter to

RE: [PHP] Need an explanation as to what this line does...

2003-02-01 Thread John W. Holmes
> $stuffArray[$i][value] = strtr($stuffArray[$i][value], > array_flip(get_html_translation_table(HTML_ENTITIES))); > > To be bluntly honest, I don't understand hardly any of it, and the PHP > Manual isn't helping this time.. maybe I'm weekend-stupid or something.. It converts HTML entities back

[PHP] PHP.ini help on Linux

2003-02-01 Thread Nicole
I am having trouble doing things with PHP such as use the exec, system, etc. functions. I can't seem to find the correct php.ini to turn safe_mode off. The one file I did find has safe_mode turned off. When I view phpinfo() it shows the global column with safe_mode off, but for the local column, i

Re: [PHP] using tags with php

2003-02-01 Thread Sunfire
i tried getting the values into vars using fetch_array/fetch_object and fetch_row and tried to put them in variables but for some odd reason it really doesnt work because when i try to use the vars in the value section instead of printing in the edit box the content of the variable i usually end up

[PHP] Re: Loading CSV data into MySQL

2003-02-01 Thread Thomas Seifert
On 01 Feb 2003 16:47:23 -0500 [EMAIL PROTECTED] (Brian V Bonini) wrote: > Sorry for the OT question: > > I'm loading a .csv file into MySQL, done it a million times but for some > reason it is scrambling the row order. All the fields are making it in > correctly but the order of the rows seems t

[PHP] Re: Possible PHP/MySQL Bug?

2003-02-01 Thread Tim Lan
Thomas, I changed it so that the two connections use different username/password combination, and everything went smoothly. Thank you very much for your rapid response. Tim "Thomas Seifert" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... On Sat, 1 Feb 2003 13:

Re: [PHP] Need to set default parameter || How to do in PHP?

2003-02-01 Thread Noah
Nice Phil. A little more typing than the CF version, but the more I delve into PHP, the more I realize its power and flexibility. Thanks for the speedy reply... --Noah - Original Message - From: "Philip Olson" <[EMAIL PROTECTED]> To: "CF High" <[EMAIL PROTECTED]> Cc: <[EMAIL PR

[PHP] Re: Possible PHP/MySQL Bug?

2003-02-01 Thread Thomas Seifert
On Sat, 1 Feb 2003 13:28:00 -0800 [EMAIL PROTECTED] (Tim Lan) wrote: > The following code is supposed to migrate data from an old database to a new > one, but produces the error: > > Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result > resource in C:\...\convertdb.php on

[PHP] Loading CSV data into MySQL

2003-02-01 Thread Brian V Bonini
Sorry for the OT question: I'm loading a .csv file into MySQL, done it a million times but for some reason it is scrambling the row order. All the fields are making it in correctly but the order of the rows seems to end up totally random. I've done this a million times and never saw this.. Any t

[PHP] Re: Possible PHP/MySQL Bug?

2003-02-01 Thread Tim Lan
and by the way, the query on line 16 (the problematic one) works fine when run directly in MySQL. Tim "Tim Lan" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... The following code is supposed to migrate data from an old database to a new one, but produces the er

[PHP] Re: Possible PHP/MySQL Bug?

2003-02-01 Thread Thomas Seifert
On Sat, 1 Feb 2003 13:28:00 -0800 [EMAIL PROTECTED] (Tim Lan) wrote: > The following code is supposed to migrate data from an old database to a new > one, but produces the error: > > Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result > resource in C:\...\convertdb.php on

[PHP] Need an explanation as to what this line does...

2003-02-01 Thread Phil Powell
$stuffArray[$i][value] = strtr($stuffArray[$i][value], array_flip(get_html_translation_table(HTML_ENTITIES))); To be bluntly honest, I don't understand hardly any of it, and the PHP Manual isn't helping this time.. maybe I'm weekend-stupid or something.. *sigh* Phil

Re: [PHP] any change to see php source?

2003-02-01 Thread Chris Hayes
At 21:36 1-2-2003, you wrote: > I am studying on php. And the book say, when the server see php extension it > is running php file and giving results to the visiting browser. > > But as I see related directories are normal directory, doesn' t like cgi-bin > directories. > > Is there any change t

Re: [PHP] using tags with php

2003-02-01 Thread janet
In a message dated 2/1/2003 12:52:24 PM Pacific Standard Time, [EMAIL PROTECTED] writes: >i want to set up a form that will load values from a table and make them the >"value" of the edit box... then when people press an update button then all >of the stuff that changes from the record already in

[PHP] Possible PHP/MySQL Bug?

2003-02-01 Thread Tim Lan
The following code is supposed to migrate data from an old database to a new one, but produces the error: Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\...\convertdb.php on line 17 The code: '.str_replace(array("('", " '", "',", "')"), array("('", " '

[PHP] Re: Need to set default parameter || How to do in PHP?

2003-02-01 Thread peio popov
to set default vale for $id you may use something like : $id = !empty($_GET["id"])?$_GET["id"]:null; Cf High wrote: Hey all. In cold fusion I was able to define a default value with the tag When I passed the variable "test" via a form or query string, it would over ride the parameter value.

Re: [PHP] Need to set default parameter || How to do in PHP?

2003-02-01 Thread Philip Olson
On Sat, 1 Feb 2003, CF High wrote: > Hey all. > > In cold fusion I was able to define a default value with the "test" default = "myValue"> tag > > When I passed the variable "test" via a form or query string, it would over > ride the parameter value. > > How can I do this in PHP? I looked in

[PHP] Installation Problem

2003-02-01 Thread fdo cruz
I'm trying to install PHP for my first time on a W2000 Server with IIS 5.0, I followed all instructions twice. I added on App Mappings the extension for PHP, etc. etc but always that I try to reach my PHP file I get only a blank page. FAQs say there's some problem with the Web Server and that I

[PHP] Need to set default parameter || How to do in PHP?

2003-02-01 Thread CF High
Hey all. In cold fusion I was able to define a default value with the tag When I passed the variable "test" via a form or query string, it would over ride the parameter value. How can I do this in PHP? I looked in PHP manual for param, default, etc., but could find no equivalent. Any ideas?

[PHP] using tags with php

2003-02-01 Thread Sunfire
hi.. this is what i want to do but dont realy know how to do it... i want to set up a form that will load values from a table and make them the "value" of the edit box... then when people press an update button then all of the stuff that changes from the record already in the table gets changed..

Re: [PHP] any change to see php source?

2003-02-01 Thread Philip Olson
> I am studying on php. And the book say, when the server see php extension it > is running php file and giving results to the visiting browser. > > But as I see related directories are normal directory, doesn' t like cgi-bin > directories. > > Is there any change to see php file source such as f

Re: [PHP] Calling other php scripts from inside a php script.

2003-02-01 Thread Sunfire
it isnt that hard to do.. if you can get "student" and "supervisor" to successfully log into the web pages (even if you dont have anything to display) then all you really need to do is this: suppose that you had $user for username in the form and $password in the form for password... do this: /*aft

[PHP] any change to see php source?

2003-02-01 Thread qt
Dear Sirs, I am studying on php. And the book say, when the server see php extension it is running php file and giving results to the visiting browser. But as I see related directories are normal directory, doesn' t like cgi-bin directories. Is there any change to see php file source such as fil

[PHP] help needed building query string based on which form fields that are filled.

2003-02-01 Thread anders thoresson
Hi,   I've got a html form where not all fields need to be filled by the users. How can I build a MySQL query based on which fields the user have filled?   My guess is that I can do something like this:   if(!empty($f_name)) { some_commands_to_add_$f_name_to_querystring } if(!empty($l_name))

[PHP] selecting items from an array

2003-02-01 Thread Peter Gumbrell
I have a text file which is read into an array $data using fgets(). The data is then split into further arrays by tab delimiter. I would like to find a way of extracting and printing items from $data using a form. The form fields (e.g. grade, subject) are populated from the arrays. When the user se

[PHP] Re: MySQL/PHP Associative Array Insert

2003-02-01 Thread Thomas Seifert
On Sat, 01 Feb 2003 10:26:10 -0600 [EMAIL PROTECTED] (Cditty) wrote: > A co-worker is teaching me to move to the next level in php. I have > started using associative arrays for my scripts, but I am having a problem > using them to do an insert into MySQL. Can someone give me an example of > how t

Re: [PHP] Passing Variables

2003-02-01 Thread Philip Olson
On Sat, 1 Feb 2003, Beauford.2002 wrote: > Hi, > > Is there a way to pass a variable to a PHP script without using a form? I > want to put several links on my main page that when clicked on goes to a PHP > script - depending on what link was selected, will determine what part of > the PHP script

[PHP] Passing Variables

2003-02-01 Thread Beauford.2002
Hi, Is there a way to pass a variable to a PHP script without using a form? I want to put several links on my main page that when clicked on goes to a PHP script - depending on what link was selected, will determine what part of the PHP script gets executed. TIA, Beauford -- PHP General Maili

Re: [PHP] File upload problem

2003-02-01 Thread David Rice
On Saturday, February 1, 2003, at 10:58 AM, Tomator wrote: I tried but I can't upload any file. My form and code are as following: Try looking at: http://www.php.net/manual/en/features.file-upload.php There is a working example there. -- PHP General Mailing List (http://www.php.net/) To uns

RE: [PHP] MySQL/PHP Associative Array Insert

2003-02-01 Thread @ Nilaab
Oops, I forgot the double quotes at the end of the example query from the last email. This is how it should be: Example Query: $query = "SELECT * FROM items WHERE '$item[itemID]'"; > -Original Message- > From: @ Nilaab [mailto:[EMAIL PROTECTED]] > Sent: Saturday, February 01, 2003 1:0

RE: [PHP] MySQL/PHP Associative Array Insert

2003-02-01 Thread @ Nilaab
Yes Chris, When you add the item to the database, make sure to leave out the single quotes inside the brackets of the associative array. For example: Instead Of: $item['itemID'] Do This: $item[itemID] Example Query: $query = "SELECT * FROM items WHERE '$item[itemID]'; Hope that helps. > -

[PHP] Long Email - Array Problems Causing My Baldness

2003-02-01 Thread Guru Geek
Hello Everyone, I've been working on a small pet project of mine. It involves link management for my site. I want to be able to tell the program how many links to display from each of my link files. The program is then to go to that individual link file, randomly pick out how ever many links I'

Re: [PHP] Delete files via PHP

2003-02-01 Thread Miguel Brás
Hi, that's a negative They say that after uploading the file, the temp file on the tmp directory (usual) is deleted, anyway in order to confirm the deletion we should use unlink() function. Reading from one of the books, they say that the temp files are not deleted if a misconfiguration is found

[PHP] File upload problem

2003-02-01 Thread Tomator
I tried but I can't upload any file. My form and code are as following: File:  

Re: [PHP] select unique values from an array

2003-02-01 Thread janet
In a message dated 2/1/2003 9:39:55 AM Pacific Standard Time, [EMAIL PROTECTED] writes: >I am attempting to populate form elements from a text file which has been >read and split into arrays. Some of the items are repeated many times: grade >level, for example. Is there a way of just selecting uni

[PHP] connecting to oracle 9i as user SYS

2003-02-01 Thread Lukas Smith
Hi, The topic says it all: How do you connect to oracle 9i as the user SYS? In the user comments about OCILogon() someone mentions that this is a little problematic with 9i, but doesn't really spell out the solution. Regards, Lukas Smith [EMAIL PROTECTED] ___ Backend

[PHP] select unique values from an array

2003-02-01 Thread Peter Gumbrell
I am attempting to populate form elements from a text file which has been read and split into arrays. Some of the items are repeated many times: grade level, for example. Is there a way of just selecting unique values so that each value is displayed only once in the check boxes or radio buttons? M

RE: [PHP] Screen Size detect??

2003-02-01 Thread Nigel Powell
On a slight side note to this, how can you pass javascript variables to PHP via POST? Newbie Powell On Saturday, February 1, 2003, at 12:21 PM, [EMAIL PROTECTED] wrote: From: "Sean Malloy" <[EMAIL PROTECTED]> Date: Sat Feb 1, 2003 6:48:26 AM Europe/London To: "Dade Register" <[EMAIL PROTECTE

[PHP] Re: Calling other php scripts from inside a php script.

2003-02-01 Thread Greg Beaver
Hi Jason, Better is to use $_POST if your form's method="post" or $_GET if your form's method="get" As long as the user type is available to the new page through a form variable, or request string like newpage.php?username=student, you can access it using $_REQUEST/$_GET/$_POST Take care, Greg

[PHP] MySQL/PHP Associative Array Insert

2003-02-01 Thread CDitty
A co-worker is teaching me to move to the next level in php. I have started using associative arrays for my scripts, but I am having a problem using them to do an insert into MySQL. Can someone give me an example of how to do an insert to the database using these arrays? My array is this...$item['i

[PHP] Sort List But NOT After Date Has Passed.

2003-02-01 Thread Randum Ian
Hi guys, I have a script which looks in a directory, pulls out all the files and sorts them by reverse date order. The file name schema is "mmdd-the rest of the file". Script: --- $interestingFile = array(); $interestingFiles = array(); $dir = opendir('/home/danceportal/www/uk/ian') or die(

Re: [PHP] reading attachmentsl

2003-02-01 Thread Bartosz Matosiuk
hi thanks for advices I haven't ever heard about reformime, what is it? brtek - Original Message - From: "Jason Wong" <[EMAIL PROTECTED]> Newsgroups: php.general To: <[EMAIL PROTECTED]> Sent: Saturday, February 01, 2003 4:40 PM Subject: Re: [PHP] reading attachmentsl > On Saturda

[PHP] Calling other php scripts from inside a php script.

2003-02-01 Thread Jason Howlett
Hi, I am new to PHP and I am writing a script that evaluates input from a form then calls other PHP scripts depending on the input it receives. The login form is very simple and asks the user to enter a username and a password. It is used by two types of users, students and supervisors. In the

Re: [PHP] reading attachmentsl

2003-02-01 Thread Jason Wong
On Saturday 01 February 2003 23:21, Bartosz Matosiuk wrote: > well actually I know what is the mechanism of sending mime messages > with atttachments works, the problem is that I don't know how to to read > attachment. I tried to use Pear decode functions but it only gives me info > that there

Re: [PHP] Using custom "button" form element instead of standard "submit"?

2003-02-01 Thread Durwood Gafford
"Durwood Gafford" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > To make the issues more clear (assuming everyone's not totally burned out > thinking about this one), I will submit links to working, example code in a > followup post. I'm swamped with a proposa

Re: [PHP] reading attachmentsl

2003-02-01 Thread Bartosz Matosiuk
hi well actually I know what is the mechanism of sending mime messages with atttachments works, the problem is that I don't know how to to read attachment. I tried to use Pear decode functions but it only gives me info that there are attachments in the message which is obviosly not enough.

Re: [PHP] Function Stack

2003-02-01 Thread Michael Sims
On Sat, 1 Feb 2003 07:08:05 -0500, you wrote: >Is there any way to access the Function Stack from php? Starting with PHP 4.3.0 you can use debug_backtrace(), which returns an array of caller stack information. You might want to build a wrapper around it which formats the information the way you

Re: [PHP] pause_script($int)??

2003-02-01 Thread Stephan Seidt
what about sleep() ? OjMyStEr wrote: Hi, Does anyone know if there is a way for me to produce a function in PHP to pause the processing of the script for 3 seconds for example without eating up the CPU bandwidth. I could do with quite accurate control. Is there a better way that doing it like thi

RE: [PHP] question on listbox.

2003-02-01 Thread Leonard Burton
Might this be better? print "\n"; print "Select Category"\n //Query $sql="SELECT DISTINCT CategoryName From Categories ORDER BY CategoryName"; $result=mysql_query($sql); if ($result) { While($Category=mysql_fetch_array($result)) { Print"$Category['name']\n"; } mys

Re: [PHP] Time Delay?

2003-02-01 Thread Jason Wong
On Saturday 01 February 2003 21:27, OjMyStEr wrote: > Hi, > Does anyone know if there is a way for me to produce a function in PHP to > pause the processing of the script for 3 seconds for example without eating > up the CPU bandwidth. I could do with quite accurate control. Is there a > better way

[PHP] pause_script($int)??

2003-02-01 Thread OjMyStEr
Hi, Does anyone know if there is a way for me to produce a function in PHP to pause the processing of the script for 3 seconds for example without eating up the CPU bandwidth. I could do with quite accurate control. Is there a better way that doing it like this: The output is: The current time i

[PHP] Time Delay?

2003-02-01 Thread OjMyStEr
Hi, Does anyone know if there is a way for me to produce a function in PHP to pause the processing of the script for 3 seconds for example without eating up the CPU bandwidth. I could do with quite accurate control. Is there a better way that doing it like this: The output is: The current ti

  1   2   >