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,
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
-
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
- 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
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
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
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
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
, 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
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
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
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
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
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
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
- 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
- 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
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
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
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
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
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
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
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
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);
- 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
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;
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
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
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
$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]
i would like your input on session vs cookies regarding login data like
usernames/passwords ect...
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
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
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
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
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
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,
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
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
40 matches
Mail list logo