Re: [PHP] USB Question Not PHP Related, so if you don't want to read this you don't have to

2006-09-13 Thread benifactor
you should try to search for a headset with a splitter. i dont know if this would work for your needs, but it would allow multiple connectons and require only one port. - Original Message - From: Jay Blanchard [EMAIL PROTECTED] To: php-general@lists.php.net Sent: Wednesday, September 13,

[PHP] class usage

2006-09-29 Thread benifactor
ok, about five minutes ago i decided to learn classes and delve into php's oop side. what i came up with was this... //start example code class newsletter { function send ($email,$subject,$message) { if ($email) { echo(the following message was sent to: $email br

Re: [PHP] class usage

2006-09-29 Thread benifactor
- From: Richard Lynch [EMAIL PROTECTED] To: benifactor [EMAIL PROTECTED] Cc: php php-general@lists.php.net Sent: Friday, September 29, 2006 9:07 AM Subject: Re: [PHP] class usage On Fri, September 29, 2006 4:35 am, benifactor wrote: ..and this seems to work fine, i could easily add the mail

Re: [PHP] Help on objects

2006-10-05 Thread benifactor
- Original Message - From: Robert Cummings [EMAIL PROTECTED] To: Satyam [EMAIL PROTECTED] Cc: Deckard [EMAIL PROTECTED]; php-general@lists.php.net Sent: Thursday, October 05, 2006 2:16 AM Subject: Re: [PHP] Help on objects On Thu, 2006-10-05 at 07:04 +0200, Satyam wrote: I've seen

Re: [PHP] Help on objects [with reply]

2006-10-05 Thread benifactor
i may be wrong, but your use of the class to me seems pointless... the reuse aspect of your database connection could be done with a simple include... maybe your need is different from what i suspect, being a beginner myself... here is what i do, and maybe the list can tell me if it would be

Re: [PHP] Testing people

2006-10-05 Thread benifactor
how are you getting the answers? are they hard coded in html? are you pulling them from a database? if from a database, just order them randomly.. mysql_query(select answers from table where question = '10' ORDER BY RAND() ); i think this would randomize all of the results in the answer colum of

Re: [PHP] Help on objects [with reply]

2006-10-05 Thread benifactor
yea, thanks for the input... but do you think my solution would be better for original poster? - Original Message - From: Dave Goodchild [EMAIL PROTECTED] To: benifactor [EMAIL PROTECTED] Cc: Robert Cummings [EMAIL PROTECTED]; Satyam [EMAIL PROTECTED]; Deckard [EMAIL PROTECTED]; php

Re: [PHP] ECHO $variable

2006-10-08 Thread benifactor
you should try this... $saved_message_title = '1 Peter 5:7 Cast all your cares on Him for He cares about you'; - Original Message - From: Ron Piggott (PHP) [EMAIL PROTECTED] To: PHP General php-general@lists.php.net Sent: Saturday, October 07, 2006 11:39 PM Subject: [PHP] ECHO $variable

Re: [PHP] ECHO $variable

2006-10-08 Thread benifactor
, October 08, 2006 1:41 AM Subject: Re: [PHP] ECHO $variable On Mon, 9 Oct 2006 00:23:00 -0700, benifactor [EMAIL PROTECTED] wrote: you should try this... $saved_message_title = '1 Peter 5:7 Cast all your cares on Him for He cares about you'; - Original Message - From: Ron Piggott

Re: [PHP] ECHO $variable

2006-10-10 Thread benifactor
thank you for schooling me :) i learn something new everyday! - Original Message - From: Richard Lynch [EMAIL PROTECTED] To: benifactor [EMAIL PROTECTED] Cc: php-general@lists.php.net Sent: Monday, October 09, 2006 11:02 AM Subject: Re: [PHP] ECHO $variable On Mon, October 9, 2006 7

Re: [PHP] pass value to next page

2006-11-07 Thread benifactor
you could also do this all on one page... with different if statments to direct which part of the process your actually in. if (processone) { blah... blah... } if (processtwo) { blah... blah... } this is how all of my pages work, to an extent, and it make things much easier not having to

Re: [PHP] Staff log-in

2006-11-09 Thread benifactor
give us (the list) the website address. - Original Message - From: Brynjar Guðnason [EMAIL PROTECTED] To: php-general@lists.php.net Sent: Thursday, November 09, 2006 11:16 AM Subject: [PHP] Staff log-in Hi, I need a little php script. Staff log in by entering username and password

Re: [PHP] Staff log-in

2006-11-10 Thread benifactor
i actually just started my own non profit org... so now you can all give me things for free. :) p.s. i also accept donations via paypal :) - Original Message - From: Jochem Maas [EMAIL PROTECTED] To: tedd [EMAIL PROTECTED] Cc: php-general@lists.php.net Sent: Friday, November 10, 2006

[PHP] Mysql Rows

2006-03-03 Thread benifactor
i need to find a way to find out what number of a row is in a database... for example: //this is the database Username: Chuck Password: adsasa Username: jimmy Password: adsf Username: stewart Password: dfds the information i need is what row jimmy resides on.. this is what i tried: function

Re: [PHP] Mysql Rows

2006-03-03 Thread benifactor
Ettinger [EMAIL PROTECTED] To: benifactor [EMAIL PROTECTED] Cc: php php-general@lists.php.net Sent: Friday, March 03, 2006 3:52 PM Subject: Re: [PHP] Mysql Rows define $1 = 0 outside your loop. i'm curious why you are relying on row-order in the database? Typically you'd have a PRIMARY KEY

Re: [PHP] Mysql Rows

2006-03-04 Thread benifactor
- Original Message - From: Robert Cummings [EMAIL PROTECTED] To: tedd [EMAIL PROTECTED] Cc: PHP-General php-general@lists.php.net; benifactor [EMAIL PROTECTED]; Murray @ PlanetThoughtful [EMAIL PROTECTED]; Anthony Ettinger [EMAIL PROTECTED] Sent: Saturday, March 04, 2006 9:41 AM Subject

Re: [PHP] Mysql Rows

2006-03-04 Thread benifactor
- Original Message - From: benifactor [EMAIL PROTECTED] To: Robert Cummings [EMAIL PROTECTED]; tedd [EMAIL PROTECTED] Cc: PHP-General php-general@lists.php.net; Murray @ PlanetThoughtful [EMAIL PROTECTED]; Anthony Ettinger [EMAIL PROTECTED] Sent: Saturday, March 04, 2006 2:29 PM Subject

[PHP] deleting muliple feilds from a table using an array

2006-03-24 Thread benifactor
example code: //implode the value of the submitted form //$del will look like 38, 40, 43 $del = implode(,, $idd); //create query for the deletion of values from submited form $query = delete From news where id = '$del'; //execute query mysql_query($query) or die(mysql_error()); //echo sucess

Re: [PHP] deleting muliple feilds from a table using an array

2006-03-24 Thread benifactor
thanks all, very helpful! - Original Message - From: Brady Mitchell [EMAIL PROTECTED] To: benifactor [EMAIL PROTECTED]; php php-general@lists.php.net Sent: Friday, March 24, 2006 1:21 PM Subject: RE: [PHP] deleting muliple feilds from a table using an array -Original Message

[PHP] mysql and php

2006-04-14 Thread benifactor
i was wondering what is the most secure way to use mysql in php. is there a certain way it should be done or a way that is more secure than another? iv'e seen it done many ways and was wondering if it was just preference or a if there was a reason behind it. if you guys could post some

Re: [PHP] how to reload a PHP page via PHP code

2006-04-14 Thread benifactor
i reload my pages with a function using a meta tag... ?php // $sec is the amount of seconds you want to wait before it redirects //$url id the pace you want it to redirect to function redirect ($sec, $url) { ? meta http-equiv=refresh content=?=$sec;?;URL=?=$url;? ?php } //to use to refresh a

Re: [PHP] Delete

2006-06-03 Thread benifactor
when you insert each blog into your database, im assuming your not doing this by hand each and every time, assign each blog an id. in the place you want to delete the blog entries, list all of the blogs titles and ids. and then use mysql(delete); example: ? //create a variable for the delete

Re: [PHP] Mail sending program (beginner)

2006-06-10 Thread benifactor
i don't really understand what your trying to do here but if im correct there is a much easier way... if you are trying to make a newletter sign up this is simple. there is no reason to send the email to the database simply have the enter thier email address, use regex to check it, if it passes

[PHP] string size in bytes

2006-02-12 Thread benifactor
can someone point me in the right direction... i need to know how many bytes are in a string example: $string = blah; string == how many bytes also i need to know how to find out how fast a page renders example; page rendered in 1.114 seconds any help would be greatly appreciated thank

[PHP] archiving?

2006-02-17 Thread benifactor
i have a question about what i beleive to be called archiving... i am building a news script and would like to limit post to be displayed per page i have done this successfully. what i am having probplems with is displaying the next set of news. here is my code: ?php include(core.php);

Re: [PHP] Parse Error

2006-02-21 Thread benifactor
- Original Message - From: Ray Cantwell [EMAIL PROTECTED] To: php-general@lists.php.net Sent: Tuesday, February 21, 2006 1:27 PM Subject: [PHP] Parse Error Hi all, I am a noob and super confused right now. I have some really simple code and i am getting an error that reads: *Parse

[PHP] who is online?

2007-02-05 Thread benifactor
i have built a function to tell me how many users are on my site at any given time... ? //define function function bc_who ($who, $location) { //first we erase any expired entries //entries will expire after 5 mins $whoTime = time(); $whoTime = $whoTime - 300;

Re: [PHP] who is online?

2007-02-05 Thread benifactor
sorry if you misunderstood, i just wanted to know if it could be done with php alone. - Original Message - From: Stut [EMAIL PROTECTED] To: benifactor [EMAIL PROTECTED] Cc: php-general@lists.php.net Sent: Monday, February 05, 2007 5:18 AM Subject: Re: [PHP] who is online? benifactor

Re: [PHP] who is online?

2007-02-05 Thread benifactor
hmm it was obvious to me, tis why i asked. just had to be sure. thank you for your help. - Original Message - From: Stut [EMAIL PROTECTED] To: benifactor [EMAIL PROTECTED] Cc: php-general@lists.php.net Sent: Monday, February 05, 2007 5:30 AM Subject: Re: [PHP] who is online

Re: [PHP] who is online?

2007-02-05 Thread benifactor
more intelligent discussions regarding php/site development technologies that integrate with php, this is the place for it!! peace.. -Original Message- From: Stut [mailto:[EMAIL PROTECTED] Sent: Monday, February 05, 2007 5:31 AM To: benifactor Cc: php-general@lists.php.net Subject: Re

Re: [PHP] Re: How to call image from mySql to php file

2007-02-23 Thread benifactor
$query = mysql_query(SELECT logos FROM table WHERE sno = '$sno' limit 1) or die(mysql_error()); while ($result = mysql_fetch_array($query)) { $sno = $result[logos]; } ? img src=?php echo($sno); ?/img hope it helps - Original Message - From: Fahad Pervaiz [EMAIL PROTECTED]

[PHP] input on sessions vs cookies

2007-02-24 Thread benifactor
i would like your input on session vs cookies regarding login data like usernames/passwords ect...

Re: [PHP] input on sessions vs cookies

2007-02-24 Thread benifactor
as of right now, when the user logs in, i have a cookie storing username... then on all of the pages i need data i have it query the database and using the cookie data to retrieve user information.. is there a more secure way to do this? -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] audio CAPTCHA - was Combining sound files

2007-02-26 Thread benifactor
tried, and failed. got this error: Notice: Undefined variable: captcha in /home/httpd/vhosts/sperling.com/httpdocs/a/c/index.php on line 29 and no captcha was displayed. - Original Message - From: tedd [EMAIL PROTECTED] To: php-general@lists.php.net Sent: Monday, February 26, 2007

Re: [PHP] audio CAPTCHA - was Combining sound files

2007-02-26 Thread benifactor
yea, same for me... but maybe the variable needs to be defined for anything to happen, as we are probably supposed to press that before we speak tha captcha.. - Original Message - From: Németh Zoltán [EMAIL PROTECTED] To: benifactor [EMAIL PROTECTED] Cc: php-general@lists.php.net

Re: [PHP] audio CAPTCHA - was Combining sound files

2007-02-26 Thread benifactor
i was just trying again, and entered 406 via keyboard and pressed submit, and it said i was successful, then i pressed back on my browser and no longer had the error. it displayed the captcha at the top of the page where the error was. -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Re: What sripts,helpers to use for AJAX

2007-03-08 Thread benifactor
im using http://www.prototypejs.org/ and have had no problems thus far. - Original Message - From: Mikey [EMAIL PROTECTED] To: php-general@lists.php.net Sent: Thursday, March 08, 2007 10:02 AM Subject: [PHP] Re: What sripts,helpers to use for AJAX Otto Wyss wrote: I want to add some

Re: [PHP] MD5 bot Question

2007-04-08 Thread benifactor
hmm, why don't you md5 more then once.. for example, use a condition that will change with every visitor. like the third num in $_SERVER['REMOTE_ADDR']; or something of the sort. then make a loop.. say the third num in my ip address is 5 the person that visits after me would get my value,

Re: [PHP] MD5 bot Question

2007-04-08 Thread benifactor
indeed. i was just throwing out the idea of ever changing values. Robert Cummings wrote: On Sun, 2007-04-08 at 04:38 -0700, benifactor wrote: hmm, why don't you md5 more then once.. for example, use a condition that will change with every visitor. like the third num in $_SERVER

Re: [PHP] MD5 bot Question

2007-04-08 Thread benifactor
but most people have different ones :) you could also use a random position :) fooeee. Robert Cummings wrote: On Sun, 2007-04-08 at 05:41 -0700, benifactor wrote: indeed. i was just throwing out the idea of ever changing values. Except IP addresses aren't ever changing ;) Cheers