Re: [PHP] Pulling two field from mysql table into an array

2004-02-02 Thread Toby Irmer
How 'bout ? $query = SELECT field_name, user_id FROM table; $result = mysql_query($query); while($line = mysql_fetch_assoc($result) { $array[$line[user_id]] = $line[field_name]; } ? - Original Message - From: Richard Kurth [EMAIL PROTECTED] To: Richard Kurth [EMAIL

[PHP] read file only half the file loads ...

2004-02-02 Thread Philip J. Newman
loadimage.php has the following code in it. ?php $myimage=d:/website/images/no_access_php.jpg; // above is the file and the location is verified. header(Content-type: image/jpeg); readfile($myimage) ; ? Only half the image is shown ... it stops loading the image or the image wont'

Re: [PHP] PHP and XML.

2004-02-02 Thread Mark Ackroyd
Rolf Brusletto wrote: The only thing I can think of is apache/you_webserver_here is limiting the amount of memory.. still an odd problem though, depending on the size of the xml.. The XML is tiny, 12 lines. I got round the problem by chopping up someone elses PHP XML parser script, so that

[PHP] Re: read file only half the file loads ...

2004-02-02 Thread DvDmanDT
The server or the connection seems to be the problem.. :s -- // DvDmanDT MSN: dvdmandt¤hotmail.com Mail: dvdmandt¤telia.com Philip J. Newman [EMAIL PROTECTED] skrev i meddelandet news:[EMAIL PROTECTED] loadimage.php has the following code in it. ?php

Re: [PHP] Nested PHP

2004-02-02 Thread Jon Bennett
you can also do stuff like this... ?php if ($someVar == true) { ? html titlesomeVar appears to be true/title ?php } else { ? html titlesomeVar appears to be false/title ?php } ? Thanks, Jon jon bennett | [EMAIL PROTECTED] new media creative _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

[PHP] Print page with default margins

2004-02-02 Thread Narcis Florea
Hi, I'm using Apache/PHP/MySQL in my business project My big problem now is: How can I print a page on a standard page format, like Letter, left margin: 0.25 inch, etc.) When I print, I must every time set page margin manually, and I want this being made by php or javascript automatically on load

Re: [PHP] Print page with default margins

2004-02-02 Thread Marek Kilimajer
Narcis Florea wrote: Hi, Hello, I'm using Apache/PHP/MySQL in my business project Thank you for using php! My big problem now is: How can I print a page on a standard page format, like Letter, left margin: 0.25 inch, etc.) When I print, I must every time set page margin manually, and I want this

[PHP] php header information

2004-02-02 Thread Angelo Zanetti
HI all I have a page that has been written by someone else and when I run it and click on a button to valid the username and password to login it sends me back the same page with the following: Warning: Cannot modify header information - headers already sent by (output started at c:\program

php-general Digest 2 Feb 2004 13:50:31 -0000 Issue 2566

2004-02-02 Thread php-general-digest-help
php-general Digest 2 Feb 2004 13:50:31 - Issue 2566 Topics (messages 176539 through 176570): Re: php version difference - local installation very strict 176539 by: DvDmanDT 176543 by: Jason Wong Re: Nested PHP 176540 by: Russell Shaw 176567 by: Jon Bennett

Re: [PHP] Can't delete cookies

2004-02-02 Thread Marek Kilimajer
Are you sure that the cookie is not unset? You might have an old cookie with / as its path that you see now. Andrew Wood wrote: Can anyone fathom out why I can't get the setcookie function to delete a cookie? I'm calling it with the same arguments as I used to set it originally, but with a

Re: [PHP] php header information

2004-02-02 Thread James E Hicks III
On Monday 02 February 2004 08:57 am, Angelo Zanetti wrote: HI all I have a page that has been written by someone else and when I run it and click on a button to valid the username and password to login it sends me back the same page with the following: Warning: Cannot modify header

[PHP] finding news stories in a selection of months

2004-02-02 Thread Michael Hill
Hi everyone, I have made written some code (really bad code,I'm sure), that finds the earliest month that has a news story, and the latest month that has a news story. the code is below. I now need to loop through somehow, to build an array, that gives me the month (JAN,FEB,MAR) and the year it

Re: [PHP] finding news stories in a selection of months

2004-02-02 Thread Miles Thompson
Michael, Let the database do the work. Check your MySQL docs (assuming you are using MySQL, otherwise check what you have ) for the month() function. Use this in your SELECT, aliasing it so that you do not use the term month, say pub_month. Your SQL would then look like this $strSQL =

Re: [PHP] Can't delete cookies

2004-02-02 Thread Marek Kilimajer
Please, reply to the whole list, you will have a better chance you will get the right answer. Andrew Wood wrote: No because even if I manually delete all the cookies in the browser from my domain, then reload the page to set them again, then run the PHP code to delete them they're still

RE: [PHP] Re: OOP methodology

2004-02-02 Thread chris . neale
Thanks - very useful way of looking at things. I think I'll opt for applying this principle to the way I plan to improve my system. Currently far too bulky. Of course, now the project has progresse, finding time to refactor and effectively build most of it from scratch, is quite hard. Cheers

[PHP] Zlib Compression || Implementation || Bandwidth Savings?

2004-02-02 Thread CF High
Hey all. Having a good problem -- our hockey report site has jumped from 10 gigs/month to 30+ gigs/month growing. We're getting killed in bandwidth fees at the moment; barring switching to another host, will utilizing ZLIB compression significantly reduce bandwidth? Also, in terms of ZLIB

[PHP] Re: How check credit card or magnetic card number.

2004-02-02 Thread Pedro
Hi, how i can check credit card or magnetic card number for a site of electronic commerce that i have to design. Sorry for my english. Pedro. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Flash interface to CLI PHP Script vs GTK

2004-02-02 Thread chris . neale
I'm sure people have had wilder ideas, but this is what I'm trying to do. I'm disappointed by the lack of clear documentation and examples for GTK and the strange way the package insists on using its own binary php.exe (for win32) instead of being just a simple extension. And I've yet to find a

[PHP] Str_Replace Command

2004-02-02 Thread Christopher J. Crane
I have never had this problem before and it is probably something simple... Please take a look at the two foreach statements. I am at a loss as to why the second line does not actually remove the quotes. The first foreach statement does so how are they different. $StockURL =

RE: [PHP] The PHP Problem

2004-02-02 Thread chris . neale
I was in the same shoes a few years ago and used this. http://www.net-language.com/workshops/Default.asp?workshop=21 It's a good guide, shows you how to set up a web server, php and mysql on your own PC (win32). As it's for a slightly older version of PHP some parts of the guide don't no longer

Re: [PHP] Str_Replace Command

2004-02-02 Thread Jason Wong
On Tuesday 03 February 2004 00:14, Christopher J. Crane wrote: $StockURL = http://finance.yahoo.com/d/quotes.txt?s=xrx,ikn,dankyf=sl1e=.txt;; $StockResults = implode('', file($StockURL)); $Rows = split(\n, $StockResults); foreach($Rows as $Row) { echo str_replace('',,$Row).br\n; }

Re: [PHP] Str_Replace Command

2004-02-02 Thread Christopher J. Crane
Ok I got around it by the following, but now I have a new problem. I can not get the two dimensional array working. I want to later be able to output a variable like this $TickerData[IKN] and it will output the associated $Price. $StockURL =

Re: [PHP] Str_Replace Command

2004-02-02 Thread Jason Wong
On Tuesday 03 February 2004 00:52, Christopher J. Crane wrote: Ok I got around it by the following, but now I have a new problem. I can not get the two dimensional array working. I want to later be able to output a variable like this $TickerData[IKN] and it will output the associated $Price.

Re: [PHP] Str_Replace Command

2004-02-02 Thread Christopher J. Crane
Well this is it and it is really got me... Echoing out the $Symbol and $Price works just fine one row about the $TickerData array assignment. Yet it outputs nothing. Array ( [] = ) is what I get. If I change the line to $TickerData = array ($Symbol = $Price); I get nothing, or the same result. If

Re: [PHP] Str_Replace Command

2004-02-02 Thread Jason Wong
On Tuesday 03 February 2004 01:09, Christopher J. Crane wrote: Well this is it and it is really got me... Echoing out the $Symbol and $Price works just fine one row about the $TickerData array assignment. Yet it outputs nothing. Array ( [] = ) is what I get. If I change the line to

Re: [PHP] Str_Replace Command

2004-02-02 Thread Matt Matijevich
snip $StockURL = http://finance.yahoo.com/d/quotes.txt?s=xrx,ikn,dankyf=sl1e=.txt;; $StockResults = implode('', file($StockURL)); $Rows = split(\n, $StockResults); foreach($Rows as $Row) { list($Symbol, $Price) = split(,, $Row); $Symbol = str_replace('', , $Symbol); echo $Symbol.

[PHP] Re: Directory Browse Concept

2004-02-02 Thread Paul Furman
Well, I'm installing post-nuke to see what that can do. I'm not sure I like the blog look that most sites have but I guess it has a lot of options. Probably more practical to just learn enough php to hack existing code to suit my needs. I had hoped to build something simpler myself which

[PHP] Reliable remote IPs in SSL?

2004-02-02 Thread Geoff Caplan
Hi folks, I'm trying to do session-tracking with a get variable as securely as possible. Obviously, this is an inherently insecure technique, but I am trying to mitigate the risks. I see in a paper by the MIT Lab for Computer Science that Yahoo say they use the remote address for session

RE: [PHP] Str_Replace Command

2004-02-02 Thread Crane, Christopher
Matt: This worked perfect. Thank you. I didn't realize it was reassigning, I thought it would work similar to array_push and add to the existing data. I get it now, thanks to you. Thanks again. I had been so frustrated I was losing my objectivity. Christopher J. Crane Network Manager -

[PHP] Re: How check credit card or magnetic card number.

2004-02-02 Thread Jas
Pedro wrote: Hi, how i can check credit card or magnetic card number for a site of electronic commerce that i have to design. Sorry for my english. Pedro. ?php //Check credit card date on HTML form if(empty($_POST['cc']) || (empty($_POST['ccd'])) { echo Credit card and date fields not

RE: [PHP] Re: How check credit card or magnetic card number.

2004-02-02 Thread craig
Hi, how i can check credit card or magnetic card number for a site of electronic commerce that i have to design. Sorry for my english. Pedro. I think this should work for you, but it's not production tested yet. -Craig function verifyCC($name='', $type='', $number='', $expmonth='',

[PHP] PHP and MS SQL ?

2004-02-02 Thread Mark
We are running PHP 4.3.4 with an IIS 5 server on WIN 2K server. PHP works fine on the server, the problem is connecting to a MS SQL database. When I try to access the site I get the following message: Fatal error: Call to undefined function: mssql_connect() in

[PHP] Re: Zlib Compression || Implementation || Bandwidth Savings?

2004-02-02 Thread rush
Cf High [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Having a good problem -- our hockey report site has jumped from 10 gigs/month to 30+ gigs/month growing. We're getting killed in bandwidth fees at the moment; barring switching to another host, will utilizing ZLIB compression

Re: [PHP] PHP and MS SQL ?

2004-02-02 Thread John Nichel
Mark wrote: We are running PHP 4.3.4 with an IIS 5 server on WIN 2K server. PHP works fine on the server, the problem is connecting to a MS SQL database. When I try to access the site I get the following message: Fatal error: Call to undefined function: mssql_connect() in

[PHP] Regular expression help?

2004-02-02 Thread Jas
Not sure if anyone knows of a good way to match strings of this type... 00:02:8b:0c:2f:09 I have tried this but its not working. !eregi(^[0-9a-fA-F]{2}\:[0-9a-fA-F]{2}\:[0-9a-fA-F]{2}\:[0-9a-fA-F]{2}\:[0-9a-fA-F]{2}\:[0-9a-fA-F]{2}$,$_POST['mac']) so it should match 2 characters 0-9a-fA-F

Re: [PHP] PHP and MS SQL ?

2004-02-02 Thread John Nichel
Mark wrote: I restarted the server and the extension was added by default. Was there a need to do the compile? No, I don't think so. You should only have to compile it if you're on a *nix machine. I'm not too familiar with Windows and IIS, but it sounds like the dll isn't getting loaded.

[PHP] Help for code to 'sort list' please

2004-02-02 Thread EastLothianDirectory
I have the following sql query in my Php code: $sql = SELECT id, date_day, date_month, date_year, title, content FROM $table_name ORDER BY date_year desc; The rest of the php code is just a simple db connection with a bullet list and 'while' loop with an 'echo result' request. This shows a

[PHP] Re: Regular expression help?

2004-02-02 Thread Matthew Weier O'Phinney
* Jas [EMAIL PROTECTED]: Not sure if anyone knows of a good way to match strings of this type... 00:02:8b:0c:2f:09 I have tried this but its not working.

Re: [PHP] Help for code to 'sort list' please

2004-02-02 Thread John Nichel
EastLothianDirectory wrote: I have the following sql query in my Php code: $sql = SELECT id, date_day, date_month, date_year, title, content FROM $table_name ORDER BY date_year desc; The rest of the php code is just a simple db connection with a bullet list and 'while' loop with an 'echo

Re: [PHP] Help for code to 'sort list' please

2004-02-02 Thread EastLothianDirectory
Thank you for reply. I already have 'ORDER BY year desc'. But as I mentioned how do I get the months and day in order too on the same list. Thank you in advance Original Message From: John Nichel Date: Mon 2/2/04 19:31 To: EastLothianDirectory Cc:

Re: [PHP] Help for code to 'sort list' please

2004-02-02 Thread John Nichel
EastLothianDirectory wrote: Thank you for reply. I already have 'ORDER BY year desc'. But as I mentioned how do I get the months and day in order too on the same list. Thank you in advance snip Read the documentation for ORDER BY in MySQL. You can sort on multiple columns. Basically, you

Re: [PHP] Regular expression help?

2004-02-02 Thread Adam Bregenzer
On Mon, 2004-02-02 at 14:15, Jas wrote: I have tried this but its not working. !eregi(^[0-9a-fA-F]{2}\:[0-9a-fA-F]{2}\:[0-9a-fA-F]{2}\:[0-9a-fA-F]{2}\:[0-9a-fA-F]{2}\:[0-9a-fA-F]{2}$,$_POST['mac']) so it should match 2 characters 0-9a-fA-F each block of 2 characters

[PHP] Pulling unique data from database into an array

2004-02-02 Thread Richard Kurth
I am pulling data from a database that list the Language a person speaks and the id number. It is in a format like this. user_idfield_value 6English||Spanish 2English 8English||Portuguese||Finnish 5English||Japanese||German 3

Re: [PHP] Help for code to 'sort list' please

2004-02-02 Thread Hugh Danaher
Chris, It looks like your data in date_year is not in a format that supports a simple DESC sort. Look into getting the column formatted in -mm-dd order (see the mysql manual for this). Read the data in your column, format it, pump it back into the database, then change the column type to

[PHP] Urgent: PHP Programmer

2004-02-02 Thread Cesar Cordovez
REQ-2004-01 Programmer I Position reference #166370 Job will go offline on 2/26/2004 ALeNet, Inc. is a privately held firm based in Coral Gables, Florida. We are a leading provider of enterprise system consulting services in the areas of eBusiness, enterprise resource planning (ERP) and customer

[PHP] Need Help - extract unstructured data for parse reformat and import into DB

2004-02-02 Thread Sophia Morgan
I need to get some guidance on a project. I have to extract unstructured data from a .CSV file and reformat the data to import into MSSQL. The unstructured data is basically in some kind of sub summary report. Note: the files will include a range from 1 to 12 months of information (month to

[PHP] Re: Zlib Compression || Implementation || Bandwidth Savings?

2004-02-02 Thread CF High
H Looks like the majority of sent bandwidth is html, not image files ratio is at least 10:1 html to images. With that in mind, setting zlib compression to ON seems the way to go. Question is, how to implement compression? Is it enough to just ini_set() zlib compression to ON? i.e.

[PHP] POST required header info

2004-02-02 Thread Scott Birksted
I'm attempting to have some java code send a post request to a php script, but the variables are not being assigned correctly. The request comes through fine, but the vars keep coming up empty. The java code works fine with a perl script that grabs the post vars, as well as from a simple html

Re: [PHP] Help for code to 'sort list' please

2004-02-02 Thread Jochem Maas
EastLothianDirectory wrote: I have the following sql query in my Php code: $sql = SELECT id, date_day, date_month, date_year, title, content FROM $table_name ORDER BY date_year desc; ... Although it lists in year order descending (in fact what I asked it to do) I would like to learn to sort

Re: [PHP] Help for code to 'sort list' please

2004-02-02 Thread EastLothianDirectory
Thank you for replying again but I have already been on the Mysql.com website and although I did ascertain the correct syntax ie ORDER BY date_day, date_month, date_year desc ORDER BY date_day, date_year, date_month desc ORDER BY date_month, date_day, date_year desc ORDER BY date_month,

[PHP] Retrieving class names in a static method

2004-02-02 Thread Adam Bregenzer
I'm looking for a way to find the class name of an object within a static method. class_name($this) works for instances, but in a static method $this does not exist. Also, __CLASS__ isn't inheritable so isn't really a solution for what I am looking for. Has anybody done this before? Here's a

Re: [PHP] Need Help - extract unstructured data for parse reformat and import into DB

2004-02-02 Thread Matt Matijevich
snip Would PHP be a good program to use for this project? Has anyone had to reformat unstructured data to insert into a database? If anyone has any suggestions or examples please let me know. J /snip If you have not already, look at regular expressions. imho, by far the best way to parse

Re: [PHP] Help for code to 'sort list' please

2004-02-02 Thread Jochem Maas
refering to my previous mail: I really don't think its a good idea to store the months as names in the DB (I recommend a datetime field to store the complete date info). but if you must then you will have to define an array which you can use as a sort key e.g. array( 1 = 'January',

Re: [PHP] Pulling unique data from database into an array

2004-02-02 Thread Jochem Maas
// given an array in the form: $arrX = array( '6' = 'English||Spanish' '8' = 'English||Portuguese||Finnish' // ...etc... ); // define a new array loop thru $arrX like so: $arrTmp = array() foreach ($arrX as $langs) { $arrTmp = array_merge($arrTmp,

[PHP] Help with mail() function

2004-02-02 Thread Pooya Eslami
Hi, I'm new to php and this newsletter. I have a form on my webpage and a php file to email it to me but the contents of the text area are not emailed to me. Can anyone help me with this? here is the code for my html and php files: html headtitleTest/title/head body form action=textareamail.php

Re: [PHP] Help with mail() function

2004-02-02 Thread Matt Matijevich
[snip] ?php if ($TextArea=) { echo You have to fill out the entire form, go back and try again.; } else { $to = [EMAIL PROTECTED]; $from = From-Test; $subject = Subject-Test; $message = $TextArea; mail($to, $subject, $message,From: $from); echo Thankyou; } ? [/snip] What is happening when the

Re: [PHP] Help with mail() function

2004-02-02 Thread Matt Matijevich
ahh, I have to correct myself replace this: if ($_POST['TextArea']=) { with this: if ($_POST['TextArea']==) { -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Help for code to 'sort list' please

2004-02-02 Thread EastLothianDirectory
Was just reading your previous reply and my months are indeed in text and therein lies the problem. I will have to completely rewrite the online form which will add a(mysql type) date to add it and all the fields to the DB. I will research the 'PHPs array sorting functions' that you mention.

Re: [PHP] POST required header info

2004-02-02 Thread Stuart
Scott Birksted wrote: I'm attempting to have some java code send a post request to a php script, but the variables are not being assigned correctly. The request comes through fine, but the vars keep coming up empty. The java code works fine with a perl script that grabs the post vars, as well as

RE: [PHP] Help with mail() function

2004-02-02 Thread Matt Matijevich
did you replace ($TextArea=) with ($TextArea==) ? ($TextArea=) will reassign $TextArea to Pooya Eslami [EMAIL PROTECTED] 2/2/2004 3:00:32 PM Well the problem is not that it won't get executed, its that every thing will be sent except the message in the textarea! subject, to and from are

[PHP] Sendmail wrapper

2004-02-02 Thread Federico Petronio
Hi all... I have a chrooted Apache/PHP on Solaris 8 working fine except for one PHP function, mail(). I read that in Unix environments there is not possible to make PHP use a remote SMTP and it needs to find a sendmail executable un the path. Since including Postfix in the chrooted env. does

RE: [PHP] Help with mail() function

2004-02-02 Thread Pooya Eslami
Well the problem is not that it won't get executed, its that every thing will be sent except the message in the textarea! subject, to and from are sent fine -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] My PHP file is not parsed

2004-02-02 Thread Reem M.
I have installed Apache 2.0.43 (win32) on my XP machine, together with PHP 4.2.3. I have configured the server to recognise PHP, local directories etc. Apache starts - no errors, and will accept PHP documents from my browser. But when I run my PHP pages, php is not parsed. I've put syntax

Re: [PHP] My PHP file is not parsed

2004-02-02 Thread John W. Holmes
From: Reem M. [EMAIL PROTECTED] I have installed Apache 2.0.43 (win32) on my XP machine, together with PHP 4.2.3. I have configured the server to recognise PHP, local directories etc. Apache starts - no errors, and will accept PHP documents from my browser. But when I run my PHP pages,

Re: [PHP] Regular expression help?

2004-02-02 Thread Jas
Adam Bregenzer wrote: On Mon, 2004-02-02 at 14:15, Jas wrote: I have tried this but its not working. !eregi(^[0-9a-fA-F]{2}\:[0-9a-fA-F]{2}\:[0-9a-fA-F]{2}\:[0-9a-fA-F]{2}\:[0-9a-fA-F]{2}\:[0-9a-fA-F]{2}$,$_POST['mac']) so it should match 2 characters 0-9a-fA-F each block of 2 characters

Re: [PHP] Regular expression help?

2004-02-02 Thread Justin Patrin
Jas wrote: Adam Bregenzer wrote: On Mon, 2004-02-02 at 14:15, Jas wrote: I have tried this but its not working. !eregi(^[0-9a-fA-F]{2}\:[0-9a-fA-F]{2}\:[0-9a-fA-F]{2}\:[0-9a-fA-F]{2}\:[0-9a-fA-F]{2}\:[0-9a-fA-F]{2}$,$_POST['mac']) so it should match 2 characters 0-9a-fA-F each

[PHP] [Stats] PHP Net List: January 2004

2004-02-02 Thread Bill Doerrfeld
-- Searchable archives for this list are available at http://www.listsearch.com/phplist.lasso --

[PHP] Adding one month to a given date

2004-02-02 Thread merlin
Hi there, I am trying to add one month to a given date. Somehow I am lost inbetween mktime, date and unix timestamps ;-( Can anybody give me a hint on that? The date format I do have is: 2003-10-19 Guess this does not work: $ptm = '2003-10-19'; $ptm = 1 + mktime('YmdHis',$ptm); Thanx for any

RE: [PHP] Adding one month to a given date

2004-02-02 Thread Vail, Warren
I've found the following works best for me, takes into consideration leapyears and daylight savings time, etc. $datetime = date(Y-m-d H:i:s,strtotime($inputdatetime. + 1 month)); http://www.php.net/manual/en/ref.datetime.php Warren Vail -Original Message- From: merlin [mailto:[EMAIL

Re: [PHP] Adding one month to a given date

2004-02-02 Thread Jochem Maas
here's a thought: - // using strtotime() you can turn your date into a unixtimestamp. e.g. $unixTimeStamp = strtotime('2003-10-19'); // using getdate($unixTimeStamp) you can get the consituent parts of the // date. e.g. $dateParts = getdate($unixTimeStamp); // then create a

Re[2]: [PHP] Pulling unique data from database into an array

2004-02-02 Thread Richard Kurth
Hello Jochem, I tried what you suggested and it work just perfect as long as i made the array by hand. But when I try to generate the array using the database I can not get it to work. How would I create the array $arrX from the mysql database. I have tried this but it does not work properly while

Re: Re[2]: [PHP] Pulling unique data from database into an array

2004-02-02 Thread Matt Matijevich
[snip] while (!$recordSet-EOF) { $arrX = $recordSet-fields['user_id'] = $recordSet-fields['field_value']; $recordSet-MoveNext(); [/snip] while (!$recordSet-EOF) { $arrX[$recordSet-fields['user_id']] = $recordSet-fields['field_value']; $recordSet-MoveNext(); } -- PHP General Mailing List

[PHP] Thumbnail Page

2004-02-02 Thread PETCOL
I think I'm having a Bad Hair Day I have a table in my database with all my thumbnail filenames in it. My query pull that out, now I want to display the images in a table, I can get it to go down the page row by row, but I want it to say do five columns of different images and then go down the

[PHP] looking for a way to manually free memory in the middle of a script

2004-02-02 Thread kumar mcmillan
Hi. I'm running PHP 4.3.4 with bundled GD 2.0.1.5 Here is the problem: I'm running a PHP shell script to fix about a thousand image files that were uploaded to a server without much error checking. I'm skipping all the obvious problems like wrong file types and insanely large jpeg files but

[PHP] auto forms from mysql database

2004-02-02 Thread Justin French
Hi all, I've been wanting to try building user forms for a CMS straight from what I know about a mysql table before, but have never got around to it. I've discovered that I can find out A LOT about each column using the mysql_field_*() functions, which is great. However, where I'm stuck is

[PHP] problem with upload don't understand

2004-02-02 Thread tony
hi, i have the following script to dowload upload file into a webserver I know i don't need copy but i used it to know if this way works or not $att = $_FILES['att']['name']; $temp = $_FILES['att']['tmp_name']; if($att){ $uploadfile = $uploaddir.$att; print yo GOT $att and temp is $temp,

[PHP] Re: looking for a way to manually free memory in the middle of a script

2004-02-02 Thread Justin Patrin
Kumar McMillan wrote: Hi. I'm running PHP 4.3.4 with bundled GD 2.0.1.5 Here is the problem: I'm running a PHP shell script to fix about a thousand image files that were uploaded to a server without much error checking. I'm skipping all the obvious problems like wrong file types and insanely

[PHP] Re: auto forms from mysql database

2004-02-02 Thread Justin Patrin
Justin French wrote: Hi all, I've been wanting to try building user forms for a CMS straight from what I know about a mysql table before, but have never got around to it. I've discovered that I can find out A LOT about each column using the mysql_field_*() functions, which is great. However,

Re: [PHP] Help with mail() function

2004-02-02 Thread Russell Shaw
Pooya Eslami wrote: Hi, I'm new to php and this newsletter. I have a form on my webpage and a php file to email it to me but the contents of the text area are not emailed to me. Can anyone help me with this? here is the code for my html and php files: html headtitleTest/title/head body form

Re: [PHP] Re: auto forms from mysql database

2004-02-02 Thread Justin French
On Tuesday, February 3, 2004, at 12:19 PM, Justin Patrin wrote: Sounds like you want to look into some of the PEAR projects. DB_DataObject knows about field types and can do required fields and such. DB_DataObject_FormBuilder can give you a form to edit fields which can be customized in *any*

Re: [PHP] auto forms from mysql database

2004-02-02 Thread Kelly Hallman
On Tue, 3 Feb 2004, Justin French wrote: So, looks like I'm back to PHP logic. I considered that I could store a simple array of required/etc field names to which I could check against when building the form from the mysql data, but my hope is that someone else has tackled something like

Re: [PHP] auto forms from mysql database

2004-02-02 Thread Justin Patrin
Kelly Hallman wrote: On Tue, 3 Feb 2004, Justin French wrote: So, looks like I'm back to PHP logic. I considered that I could store a simple array of required/etc field names to which I could check against when building the form from the mysql data, but my hope is that someone else has tackled

Re: [PHP] Re: auto forms from mysql database

2004-02-02 Thread Justin Patrin
Justin French wrote: On Tuesday, February 3, 2004, at 12:19 PM, Justin Patrin wrote: Sounds like you want to look into some of the PEAR projects. DB_DataObject knows about field types and can do required fields and such. DB_DataObject_FormBuilder can give you a form to edit fields which can

[PHP] Question about dates

2004-02-02 Thread Renan G. Galang
I just need a confirmation, when the getdate() function is invoked inside a PHP script, the date returned will be the server hosting the pages' date and not the client requesting the page, right? or am i wrong in my assumption? Thanks guys.

Re: [PHP] Question about dates

2004-02-02 Thread John Nichel
Renan G. Galang wrote: I just need a confirmation, when the getdate() function is invoked inside a PHP script, the date returned will be the server hosting the pages' date and not the client requesting the page, right? or am i wrong in my assumption? Thanks guys. Correct. -- By-Tor.com It's all

Re: [PHP] [Stats] PHP Net List: January 2004

2004-02-02 Thread John Nichel
Bill Doerrfeld wrote: snip Top 20 Contributors by Number of Posts -- Richard Davey 80 John Nichel 75 John W. Holmes

[PHP] Retrieve specific data from MySQL

2004-02-02 Thread Matt Hedges
Hello, I have a basic question I can't figure out. My site lets people enter in their information... I now want to be able for a user to search the database. For example, enter in firstname or lastname in a text box, hit submit, and have the results returned. How do I write this in PHP? I've

Re: [PHP] Question about dates

2004-02-02 Thread John W. Holmes
Renan G. Galang wrote: I just need a confirmation, when the getdate() function is invoked inside a PHP script, the date returned will be the server hosting the pages' date and not the client requesting the page, right? or am i wrong in my assumption? Thanks guys. Yes, you are not wrong in

Re: [PHP] Retrieve specific data from MySQL

2004-02-02 Thread John Nichel
Matt Hedges wrote: Hello, I have a basic question I can't figure out. My site lets people enter in their information... I now want to be able for a user to search the database. For example, enter in firstname or lastname in a text box, hit submit, and have the results returned. How do I write

Re: [PHP] Retrieve specific data from MySQL

2004-02-02 Thread Jochem Maas
$lastname = (string) $_POST['lastname']; // probably want to do some sanity checks on the input // e.g. watch out for names like O'Reilly $lastname = str_replace(','',$lastname); // the contents of variable must be inside single quotes $sql = SELECT * FROM table WHERE lastname='$lastname'; //

[PHP] Re: Retrieve specific data from MySQL

2004-02-02 Thread Matt Hedges
Thank you for your replies... I have it showing the last name... but what I can't figure out is how for it to reference to the whole entry. So, for example, when someone enters to search for the last name Smith, all the Smiths are pulled up, sorted by first name and linked by id. How do I do

Re: [PHP] Re: Retrieve specific data from MySQL

2004-02-02 Thread John Nichel
Matt Hedges wrote: Thank you for your replies... I have it showing the last name... but what I can't figure out is how for it to reference to the whole entry. So, for example, when someone enters to search for the last name Smith, all the Smiths are pulled up, sorted by first name and linked by

[PHP] Re: Retrieve specific data from MySQL

2004-02-02 Thread Jochem Maas
its not clear to me what exactly you are asking but it sounds like you would do well to read up on some MySQL syntax - specifically 'JOIN' syntax and 'ORDER BY' syntax. --- if you mean 'Smith' should match 'Smith', 'Smiths' 'Smithson' then use the wildcard syntax (e.g LIKE '%Smith%' )

[PHP] SQL Query Not Kosher?

2004-02-02 Thread Mr. Austin
Hi all: I am trying to get this to work, but always get the same error: that the resource in mysql_affected_rows() is not valid. Anyone see why this would be? All variables have been tested for accuracy. $query = mysql_query(UPDATE stories SET status='approved' WHERE story_id={$id});

Re: [PHP] SQL Query Not Kosher?

2004-02-02 Thread Mr. Austin
That would explain why it displays the second message saying it was not successful. But why then does it still display this warning? Warning: mysql_affected_rows(): supplied argument is not a valid MySQL-Link resource in c:\apache\htdocs\admin\stories.php on line 112 Mr. Austin - Original

[PHP] Re: Retrieve specific data from MySQL

2004-02-02 Thread Matt Hedges
Thanks, ya'll! Got it working. Matt Hedges [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello, I have a basic question I can't figure out. My site lets people enter in their information... I now want to be able for a user to search the database. For example, enter in

Re: [PHP] Re: looking for a way to manually free memory in the middle of a script

2004-02-02 Thread kumar mcmillan
On Feb 2, 2004, at 7:15 PM, Justin Patrin wrote: Kumar McMillan wrote: If this does happen to be a GD or PHP memory leak, I would suggest writing a driver script which calls a sub-script which does the processing. Have the driver keep track of all of the files and hand one (or some number) to

Re: [PHP] [Stats] PHP Net List: January 2004

2004-02-02 Thread Raditha Dissanayake
A late burs in the last week got me in. :-) John Nichel wrote: Bill Doerrfeld wrote: snip Top 20 Contributors by Number of Posts -- Richard Davey 80 John Nichel

[PHP] Selling PHP Code? PHP Careers?

2004-02-02 Thread Galen
Hi PHP list, I seem to have a knack for really powerful, creative PHP code. With a little effort, I have yet to find any real limitations I cannot overcome with PHP/MySQL/PostgreSQL. Not that there aren't any, just that almost (emphasis on almost) anything web related, I can do. I'm pretty

[PHP] Re: [PHP-DB] Re: [PHP] Oracle + PHP

2004-02-02 Thread Luis Moran Ochoa
Ok, thanks I will try it. Michael Mauch wrote: Luis Moran Ochoa wrote: ORACLE_SID=OWEB ;export ORACLE_SID; ORACLE_HOME=/usr/oracle/product; export ORACLE_HOME; TNS_ADMIN=/usr/oracle/product/network/admin; export TNS_ADMIN; ORACLE_BASE=/usr/oracle;

  1   2   >