RE: [PHP] Getting the last record in a mysql table FINALLY!!

2002-01-18 Thread Chris Schneck

Also, PHP has a built in function for finding the ID of the last insert 
query. ill show some brief code.

$query = (insert into tbl_blah (fld_blargh) values ('$roar'));
$result = mysql_query($query) or die (mysql_error());

$last_id = mysql_insert_id();

echo $last_id;

this should print out whatever the primary key # of the last insert query 
performed.

This help at all?

From: Niklas Lampén [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: Php-General [EMAIL PROTECTED]
Subject: RE: [PHP] Getting the last record in a mysql table FINALLY!!
Date: Fri, 18 Jan 2002 10:05:35 +0200

Well, ofcourse you have to have the table + field names right. ;)


Niklas

-Original Message-
From: hugh danaher [mailto:[EMAIL PROTECTED]]
Sent: 18. tammikuuta 2002 9:38
To: [EMAIL PROTECTED]
Cc: Php-General
Subject: Re: [PHP] Getting the last record in a mysql table FINALLY!!



Niklas,
I needed to change the statement slightly, but it did put me on the
right track. Thanks again, Hugh

$result=mysql_query(SELECT id FROM my_table ORDER BY id DESC, id limit
1); $id=mysql_result($result,0);

- Original Message -
From: Niklas Lampén [EMAIL PROTECTED]
To: Php-General [EMAIL PROTECTED]
Sent: Thursday, January 17, 2002 10:29 PM
Subject: RE: [PHP] Getting the last record in a mysql table


  If you have ID that is a incrementing number, you could just query
  like
  this:
  'SELECT ID FROM MY_TABLE ORDER BY ID DESC, LIMIT 1'
 
  And there you have just one result, the last (biggest) ID number.
 
 
  Niklas
 
 
  -Original Message-
  From: hugh danaher [mailto:[EMAIL PROTECTED]]
  Sent: 18. tammikuuta 2002 7:37
  To: Php-General
  Subject: [PHP] Getting the last record in a mysql table
 
 
  Help!
  I thought this would be easy but it ain't.  What I want is the id
  number of the last record in a table.  I've tried a number of
  variations to the following but am getting no where!  Any help will be

  greatly appreciated. Hugh
 
 
  $results=mysql_query( SELECT last_insert_id() FROM MY_TABLE );
  $row=mysql_fetch_assoc($results);  while
  ($row=mysql_fetch_row($results))
{
print tr;
foreach($row as $field)
 {
 if ($field==)
  {
  $field=nbsp;;
  }
 print td align=centerh5.$field./h5/td;
 }
print /tr;
}
   print /table/td/tr/table;
 
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED] To
  contact the list administrators, e-mail: [EMAIL PROTECTED]
 


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED] To
contact the list administrators, e-mail: [EMAIL PROTECTED]


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]





_
Chat with friends online, try MSN Messenger: http://messenger.msn.com


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Fw: [PHP] fired!

2001-09-21 Thread Chris Schneck

where have you been, I was layed off last november? your behind the times
man, you should have been unemployed months ago.

- Original Message -
From: Aniceto Lopez [EMAIL PROTECTED]
To: PHP list [EMAIL PROTECTED]
Sent: Friday, September 21, 2001 2:49 AM
Subject: [PHP] fired!


 dot.com crissis reaches me!!
 I've been fired, anyway I'll be in that nice PHP list

 (any job for me?)

 Aniceto Lopez
 www.laMundial.net
 download our free music


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Fw: [PHP] fired!

2001-09-21 Thread Chris Schneck

I worked at www.forestindustry.com , everything was fine until one day a
staff of 30 was reduced to a staff of 5. Unemployment isnt funny anywhere.
- Original Message -
From: [EMAIL PROTECTED]
To: PHP list [EMAIL PROTECTED]
Sent: Friday, September 21, 2001 4:20 AM
Subject: [PHP] fired!


 funny Chris, I was working in www.latinia.com in Barcelona
 (Spain), the company is going on but only sms bussines,
 not web portals

 unemployment is not so funny in Spain

  where have you been, I was layed off last november?
  your behind the times man, you should have been
  unemployed months ago.


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Fw: [PHP] make CGI in own directory on FreeBSD, error no space left on device

2001-09-13 Thread Chris Schneck

Usually yould have a quota set by your admin, to see how much space you have
used and how much is left just type quota at the command prompt. Unless you
are the admin?


- Original Message -
From: Chrisy [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, September 13, 2001 5:59 PM
Subject: [PHP] make CGI in own directory on FreeBSD, error no space left on
device



 Help.
 I'm no good at installing on unix systems.

 But now i have to make a PHP4 cgi on a FreeBSD server.
 The provider is still in PHP3. Yes, shame shame. xs4all.nl

 website is at /usr/local/WWW/www.ourname.org/WWW

 mysql works at /home/j/j_ourname/mysql

 i tried

 configure --with-mysql=/home/j/j_ourname/mysql
 --with-config-file-path=/home/j/j_ourname/php4
 --enable-track-vars
 --enable-force-cgi-redirect
 --prefix=/home/j/j_ourname/php4

 (in one line). It still complained that i did not give a mysql path
 (which i did!?)

 Is the --prefix= valid? I want it to instal here and not in the
 default location.

 Then MAKE goes along untill

 
   Making all in regex
   Making all in .
 /bin.sh /home/j/j_ourname/php4/php4.0.6/libtool  []
 -lreso
 lv
 ar: .libs/libphp4.a: No space left on device
 *** error code 1

 Stop.
 *** error code 1

 Stop.

 ---

 I have no idea how to see how much space i've got.

 Anyone wants to make me a cookbook


 Chris
 [EMAIL PROTECTED]





 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] array in and out

2001-08-19 Thread Chris Schneck

Since i have little experience with arrays, and the manuals / readme files
online havent been able to help me, I was wondering if anyone had any ideas
why this code doesnt work?

// get the keywords from db
$keyquery = (select fld_keyword_word from tbl_keyword order by
rand());
$keyresult = mysql_query($keyquery) or die (couldnt randomize
words);
// put them into an array

while ($keyrow = mysql_fetch_array($keyresult))
{
$keyword[] = '$keyrow[fld_keyword_word]';
}

// print the keywords with a function
$mykeywords = implode(, , $keyword);

function print_keywords()
{
echo ($mykewords);
}


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Fw: [PHP] Re: option tags and WHILE

2001-08-19 Thread Chris Schneck

Thanks to CC Zona and David Robley for their help in gettin this code out.
This code is really nice for satisfying search engines. It offers different
page content every time you refresh and if you feel like spamming, just use
print_keywords(); here and there to be more relevant :) I'll post the code
in case anyone else wishes to use it.

// get the keywords from db
$keyquery = (select fld_keyword_word from tbl_keyword order by
rand());
$keyresult = mysql_query($keyquery) or die (couldnt randomize
words);

// put them into an array
while ($keyrow = mysql_fetch_array($keyresult))
{
$keyword[] = $keyrow[fld_keyword_word];
}
$mykeywords = implode(, , $keyword);

// print the keywords with a function
function print_keywords()
{
global $mykeywords;
echo ($mykeywords);
}


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Fw: [PHP] Display Image

2001-08-18 Thread Chris Schneck

echo img src=\.$row[picture].\ . $row[description] . 


- Original Message - 
From: Andonny [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, August 18, 2001 7:27 PM
Subject: [PHP] Display Image


 Hi,
 I tried below to display the picture on the webpage. I have in the pcture
 column a http address.
 
 echo img src=\$row[picture]\ . $row[description] . 
 
 and I get this:
 
 Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or
 `T_NUM_STRING'
 
 Your help is very much appreciated.
 Andonny
 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Fw: [PHP] Display Image (correcting myself) :P

2001-08-18 Thread Chris Schneck


echo img src=\.$row[picture].\ . $row[description] . ;

- Original Message -
From: Chris Schneck [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, August 18, 2001 7:29 PM
Subject: Fw: [PHP] Display Image


 echo img src=\.$row[picture].\ . $row[description] . 


 - Original Message -
 From: Andonny [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Saturday, August 18, 2001 7:27 PM
 Subject: [PHP] Display Image


  Hi,
  I tried below to display the picture on the webpage. I have in the
pcture
  column a http address.
 
  echo img src=\$row[picture]\ . $row[description] . 
 
  and I get this:
 
  Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or
  `T_NUM_STRING'
 
  Your help is very much appreciated.
  Andonny
 
 
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  To contact the list administrators, e-mail: [EMAIL PROTECTED]
 


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Fw: [PHP] Sorry... but a good PHP editor for Linux/Unix

2001-08-01 Thread Chris Schneck

Joe has always been my favorite linux text editor.

- Original Message -
From: Augusto Cesar Castoldi [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, July 31, 2001 7:07 PM
Subject: [PHP] Sorry... but a good PHP editor for Linux/Unix


 Sorry about talking about this subject, but a really wanna know if any one
 nows a good editor for linux/unix.

 Sometimes I need to work by SSH and I have to use the program pico.

 I can't use vi, to use it, i'll need to see the manual!!

 thanks,

 Augusto



 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Fw: [PHP] php.net's index.php

2001-07-29 Thread Chris Schneck

Just so you know, you can also list them off in order you want them to
appear.

DirectoryIndex index.php index.html default.php
etc. etc.

Your Systems administrator for whomever you host with should be able to take
care of this, he probably should have already :)


- Original Message -
From: Ryan Fischer [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Sunday, July 29, 2001 8:21 AM
Subject: Re: [PHP] php.net's index.php


 You wrote:
  I was wondering what I would have to do in order to have index.php
 load up
  automatcially when someone went to my domain.  IE if they go to
  www.mydomain.com and I have index.html or index.htm there then those
 pages
  get loaded first.  How could I do it so index.php, index.php3,
 index.phtml
  were default as well?

 Create a file called .htaccess with this in it:

 DirectoryIndex index.php

 Upload it to the directory you want it to affect.

 This assumes you're using Apache, of course.

 HTH!  :)

 --
  -Ryan :: ICQ - 595003 :: GigaBoard - http://www.gigaboard.net/



 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] netBIOS, Windows, Sockets, fsockopen help

2001-07-21 Thread Chris Schneck

Try messing around with the popular linux package samba, in particual
smbmount. You may also need to read up on ports 137, 138, 139.

- Original Message -
From: ReDucTor [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, July 21, 2001 4:47 PM
Subject: [PHP] netBIOS, Windows, Sockets, fsockopen help


 Hey,
   I am wondering if any one has any details on netBIOS, and stuff, so then
i
 can browse shared files and folders on another computer, with in php i
have
 tried looking up the commands sent, but haven't managed to find any...
   - James ReDucTor Mitchell


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] netBIOS, Windows, Sockets, fsockopen help

2001-07-21 Thread Chris Schneck

Try messing around with the popular linux package samba, in particual
smbmount. You may also need to read up on ports 137, 138, 139.

- Original Message -
From: ReDucTor [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, July 21, 2001 4:47 PM
Subject: [PHP] netBIOS, Windows, Sockets, fsockopen help


 Hey,
   I am wondering if any one has any details on netBIOS, and stuff, so then
i
 can browse shared files and folders on another computer, with in php i
have
 tried looking up the commands sent, but haven't managed to find any...
   - James ReDucTor Mitchell


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Paypal and PHP

2001-07-19 Thread chris schneck

theexchangeproject.org has a module built into their store that works
directly with paypal, ive set up and succesfully used it to tie into a
paypal account. Although it might be a little more powerful than what you
want, the code there shows which variables to be passed to paypal to make a
transaction. That information is also on paypal's website.
- Original Message -
From: ReDucTor [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, July 19, 2001 7:12 AM
Subject: [PHP] Paypal and PHP


Hey,
does any one know a way to use paypal with php?
  - James ReDucTor Mitchell



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] limiting text output

2001-07-19 Thread chris schneck

To anyone else who had the same problem, I thought i'd share the solution
that was passed on to me. It was suggested that counting the # of characters
in a string would work, and it does, but a better way to do it as not to cut
yourself off in mid sentence is to count the # of actual words.

-- snipity snip --
function make_newsbite($body, $len){ // $body is
article $len is maxwords
 $words = Array();
 preg_match_all('/([^ ]*) */', $body, $words); // separate
string into words array
 for($n = 0; $n = $len; $n++){ // for count words to len
 $newsbite .= $words[0][$n] . ' '; // append words
to $newsbite
 }
 return $newsbite;
}
-- snipity snip --

use it like

$lilnews = make_newsbite($bignews, 80);

Hope this solution helps others.

A big thanks to Don Read for this code.

if ( strlen($foo)  100) {
echo substr($foo,0,100), ' A HREF=/showmore.phpMore .../A';
} else {
echo $foo;
}


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] a good PHP editor

2001-07-19 Thread chris schneck

I've never heard windows 95 and great in the same sentence.

- Original Message -
From: Christopher Allen [EMAIL PROTECTED]
To: Michael Champagne [EMAIL PROTECTED]; doug
[EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Thursday, July 19, 2001 10:26 AM
Subject: Re: [PHP] a good PHP editor


 I wonder if Emacs runs on win2k it ran on win95 great...

 -ca
 - Original Message -
 From: Michael Champagne [EMAIL PROTECTED]
 To: doug [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Sent: Thursday, July 19, 2001 12:16 PM
 Subject: Re: [PHP] a good PHP editor


  VIM on Windows.  Free and awesome.  www.vim.org
 
   Hiya everybody,
   I'm relatively new to PHP and I'm looking for a good text editor
on
   win2k for creating/manipulating php pages. Notepad is great if your in
a
   bind, and I've tried phpedit and activestate's Komodo and both seem to
 have
   problems (crashing etc...). Anybody got any suggestions? Free/small
fee
   programs doesn't matter Thanks
  
   Doug Henry
  
  
  
 
  --
  Michael Champagne, Software Engineer
  Capital Institutional Services, Inc.
  wk: [EMAIL PROTECTED]
  hm: [EMAIL PROTECTED]
 
 
 
  **
  This communication is for informational purposes only.  It is not
  intended as an offer or solicitation for the purchase or sale of
  any financial instrument or as an official confirmation of any
  transaction, unless specifically agreed otherwise.  All market
  prices, data and other information are not warranted as to
  completeness or accuracy and are subject to change without
  notice.  Any comments or statements made herein do not
  necessarily reflect the views or opinions of Capital Institutional
  Services, Inc.  Capital Institutional Services, Inc. accepts no
  liability for any errors or omissions arising as a result of
  transmission.  Use of this communication by other than intended
  recipients is prohibited.
  **
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  To contact the list administrators, e-mail: [EMAIL PROTECTED]
 


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Paypal and PHP

2001-07-19 Thread chris schneck

I think this is the complete form i use for paypal, might be an old version.
check the paypal.com website in the button generator section they give the
variables to be passed.

FORM ACTION=https://www.paypal.com/cgi-bin/webscr; METHOD=POST
INPUT TYPE=hidden NAME=cmd VALUE=_xclick
INPUT TYPE=hidden NAME=business VALUE=[EMAIL PROTECTED]
INPUT TYPE=hidden NAME=return VALUE=http://www.yourhost.com/;
INPUT TYPE=hidden NAME=undefined_quantity VALUE=1
INPUT TYPE=hidden NAME=item_name VALUE=item name
INPUT TYPE=hidden NAME=item_number VALUE=[sku or unique product
number]
INPUT TYPE=hidden NAME=amount VALUE=[dollar value of product goes
here]
INPUT TYPE=hidden NAME=shipping VALUE=[shipping value]
INPUT TYPE=hidden NAME=no_shipping VALUE=1
INPUT TYPE=hidden NAME=cancel_return VALUE=http://www.yourhost.com/;
/form

- Original Message -
From: ReDucTor [EMAIL PROTECTED]
To: chris schneck [EMAIL PROTECTED]
Sent: Thursday, July 19, 2001 11:49 AM
Subject: Re: [PHP] Paypal and PHP


 have you used paypal system before?
 if so how did you set it up, because i don't wish to sort thro all the
 includes, work out what does what, etc
 - James ReDucTor Mitchell
 - Original Message -
 From: chris schneck [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Friday, July 20, 2001 12:27 AM
 Subject: Re: [PHP] Paypal and PHP


  theexchangeproject.org has a module built into their store that works
  directly with paypal, ive set up and succesfully used it to tie into a
  paypal account. Although it might be a little more powerful than what
you
  want, the code there shows which variables to be passed to paypal to
make
 a
  transaction. That information is also on paypal's website.
  - Original Message -
  From: ReDucTor [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Thursday, July 19, 2001 7:12 AM
  Subject: [PHP] Paypal and PHP
 
 
  Hey,
  does any one know a way to use paypal with php?
- James ReDucTor Mitchell
 
 
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  To contact the list administrators, e-mail: [EMAIL PROTECTED]
 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] limiting text output

2001-07-18 Thread chris schneck

Hey all,
was curious if anyone has had experience with limiting the amount of text
pulled from a database and placing a link and the end of the excessive text
line.
ie. the description of a product could be 800 characters long, how can it be
shortened to 50 -100 characters with a link to read more at the end. I was
fiddling with strlength and an if else statement, but i cant really get
things happenin. Any and all help would greatly be appreciated.

Regards


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] whatever.php

2001-07-18 Thread chris schneck

Did you make sure you had the ?? tags in the whatever.php enclosing the
content?



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] whatever.php

2001-07-18 Thread chris schneck

did you missplace an echo or printf somewhere?
- Original Message - 
From: Jeremy Morano [EMAIL PROTECTED]
To: chris schneck [EMAIL PROTECTED]
Sent: Wednesday, July 18, 2001 11:23 AM
Subject: RE: [PHP] whatever.php


 I checked and double checked... its in the tags
 
 -Original Message-
 From: chris schneck [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, July 18, 2001 2:05 PM
 To: [EMAIL PROTECTED]
 Subject: Re: [PHP] whatever.php
 
 
 Did you make sure you had the ?? tags in the whatever.php enclosing the
 content?
 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] variable

2001-07-18 Thread chris schneck

$foo = foo definition;

- Original Message -
From: Jeremy Morano [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, July 18, 2001 1:55 PM
Subject: [PHP] variable


 hi
 is there any way I can pass a variable without using require() or
include()?

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] php/mysql ecommerce solution

2001-07-18 Thread chris schneck

The Exchange Project is by far my favorite.
www.theexchangeproject.org

- Original Message -
From: Duane Douglas [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, July 18, 2001 2:59 PM
Subject: [PHP] php/mysql ecommerce solution


 hi gang!

 i'm looking for a php/mysql ecommerce solution.  i want something that is
 ready made and fully customizable.  i'm looking at phpShop:
 http://www.phpshop.org.  has anyone used this solution?  if so, what
 where your experiences?  can anyone suggest or recommend another solution
 that fits my requirements?

 tia

 if (duane.douglas) { technologies = asp  php  cgi_perl  cold fusion
  xml  xsl  sql server  mysql  javascript }

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] install help

2001-07-07 Thread chris schneck

Usually after a ./configure there is a make then a make install,
sometimes even a make test before a make install
- Original Message -
From: Evan Nemerson [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, July 07, 2001 3:02 PM
Subject: [PHP] install help


 I am trying to install PHP 4.0.6 with Apache 1.3.20 on Linux Mandrake 8. I
 finally managed to get throught ./configure, then typed 'make install'.

 Here's the last few lines:

 Inf file included from main.c:26:
 php.h:285:30: tsrm_virtual_cwd.h: No such file or directory
 make[2]: *** [main.lo] Error 1
 make[2]: Leaving directory '/root/Desktop/php-4.0.6/main'
 make[1]: *** [install-recursive] Error 1
 make[1]: Leaving directory 'root/Desktop/php-4.0.6/main'
 make: *** [install-recursive] Error 1

 Anybody have any ideas (I already thought of smashing my computer, but
ruled
 it out...)? One I just had is to tell apache to look for the PHP module on
my
 Windoze partition (which has been installed sucessfully for months). Would
 this work? I doubt it, but anything's possible... besides I would like to
 avoid that since I plan on installing a few libs later (specifically,
mcrypt
 and pdf...) and this is entirely too difficult for windoze.

 Time to go watch cartoons! Be back in 1/2 hr.


 -Evan Nemerson

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] apache toolbox

2001-05-04 Thread Chris Schneck

SSL, I forgot to compile the snakeoil cert before hand :/

-Original Message-
From: Jerry Lake [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 03, 2001 9:49 AM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] apache toolbox


Just out of curiosity, what problems did
you have ?

Jerry Lake- [EMAIL PROTECTED]
Interface Engineering Technician
Europa Communications - http://www.europa.com
Pacifier Online - http://www.pacifier.com


-Original Message-
From: Chris Schneck [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 02, 2001 5:00 PM
To: [EMAIL PROTECTED]
Subject: [PHP] apache toolbox


This might be a useful link for some people who are having problems with the
combination of apache + ssl / php / mysql. I've used it and I had a couple
problems, but after I actually read the README, everything was smooth :)

www.apachetoolbox.com


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] apache toolbox

2001-05-02 Thread Chris Schneck

This might be a useful link for some people who are having problems with the
combination of apache + ssl / php / mysql. I've used it and I had a couple
problems, but after I actually read the README, everything was smooth :)

www.apachetoolbox.com


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Hosts.

2001-05-01 Thread Chris Schneck

Good luck, let me know how your search goes. I would also like to find
someone who would do that.

-Original Message-
From: David Bruce [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 01, 2001 7:02 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Hosts.


My host is Windows 98, Xitami and unstable MySQL and Perl/CGI.

I'm looking for a *free* host, with CGI, Perl 5+, MySQL access, SSI 
PHP.

Thanks,
Owen


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] PDF online

2001-05-01 Thread Chris Schneck

I'd actually like to see a site that uses php to create PDF's, anyone have
any good examples?


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] count() problem :D

2001-04-27 Thread Chris Schneck

hey all, this is my first message to this group, im gonna print it out :)

anywho, im having problems getting data out of the count() function i've
implemented, could anyone lend a hand?

$query = select count(fld_gender) from tbl_survey;

how exactly is it that you output data retrieved from a count()
implementation?






-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]