I have researched this and can't find an answer. Maybe I am just looking
in the wrong places or not putting the correct keywords into the search
engines. So any help would be greatly appreciated. I am using MySQL with PHP.
I have some PHP scripts that create tables in a database that are mea
Thank You so much John and Michael. SHOW TABLES LIKE 'a%' worked like a
charm and was exactly what I was looking for. I guess my searches were
using the wrong keywords. Kind of figures. Some of my searches were
turning up 1000's of results.
How do you know whether it's an "active" a* table
PHP version 4.2.2
I sure hope that I can get somebody to help me figure this one out. I have
a multi-dimensional array that I need to sort. Here is the code that I
have so far:
function gettourndivs(){
GLOBAL $sea_id,$PHP_SELF;
$result=get_mysql_query("SELECT * FROM `games` WHERE sea_id = '$se
Ahhhfinally did it with usort. Thanks to those who gave me that
answer. Now here is a question for that. I would like to re-use my "cmp"
function without having to rewrite it each time. Can it be written so that
instead of "divname" being hard coded, that I can pass the sort field in
th
This would work (and might still if I changed things), but the part that
calls it is in another function also.
Steve
At 02:35 PM 2/20/2003 +, you wrote:
> -Original Message-
> From: Steve Buehler [mailto:[EMAIL PROTECTED]]
> Sent: 20 February 2003 05:25
>
> Ahhh...
The following "Seems" to work. But does anybody know how reliable this
might be? Baically, I have a multi-dimensional array and want to sort by
one column first, than another than another. Right now, I am using a
temporary table in MySQL, but want to speed things up if possible. The
command
I have a form that has input for minutes. My problem is that I am trying
to test to see if the field is blank or not and if they enter a "0" (zero),
my test always show it as blank. I have tried !$timemb and
!is_numeric($timemb).
Thank You
Steve
--
PHP General Mailing List (http://www.php.net
There we go. Thank You so much. I also found that I had another error in
my script and !is_numeric($timemb) did work after all.
Steve
At 10:41 AM 2/28/2003 -0800, you wrote:
See isset() and empty()
-Original Message-
From: Steve Buehler [mailto:[EMAIL PROTECTED]
Sent: Friday
Not sure if there is a function that I missed when I did a search on this
at php.net, but here is the situation:
I have an array that looks something like this:
12:00:00
12:05:00
12:10:00
12:15:00
Bascially, it just has all times in it for a day in 5 minute
increments. This is more of a templat
I am not sure how to go about this and hope that someone can help here. I
have a variable like the following:
$team_name="BV Stars Black";
it has two spaces between the words Stars and Black. What I am trying to
do is to take this variable, check for and strip the following:
1. Leading space
Figures, right after I emailed this, I found it after looking for over an
hour. Here is the result and some people had emailed me parts of this:
$team_name=" BV Stars Black";
wsstrip($team_name);
function wsstrip(&$str)
{
$str=ereg_replace (' +', ' ', trim($str));
$str=ereg_repl
I have PHP/Apache/MySQL installed on my WinXP laptop. I do this so that I
can write programs when not connected to the Internet (like when
traveling). I am trying to set a cookie from the http://localhost site on
my computer and it doesn't get set. Does this sound like something wrong
in my
Sorry about that. Here is my code:
if(isset($coach_access[login_id])){
}elseif(($lusername) && ($lpassword)) {
if(($lusername=="me") AND ($lpassword=="apass")){
$cookhost=$_SERVER["HTTP_HOST"];
setcookie ("coach_access[login_id]",
"coach",0,
h. This seemed to set the cookie just fine. Does this mean that
either localhost in the browser or Apache/PHP on a windows box has to set
the cookie differently than on RedHat/Apache/PHP? I am going on vacation
next week and need to keep working on a project that is working fine on the
R
hm. Looks like on my localhost I can't seta cookie like this:
setcookie ("coach_access[login_id]", "coach",0,"/","$cookhost");
if I change it to just:
setcookie ("coach_access_login_id", "coach",0,"/","$cookhost");
it will work. But then my script won't work without a lot of re-writing
becau
That still won't work for me for some reason. I am just going to rewrite
parts of the script to use a cookie name with out a [something] IN the
name. I will rename it to ca_id or something like that.
Thanks for your help
Steve
At 01:38 PM 7/30/2003 -0700, you wrote:
--- Steve Buehler &l
At 04:37 PM 7/30/2003 -0400, you wrote:
You'd be better of if you re-wrote your code to make it correct, but you
could just put:
$coach_access['login_id'] = $_COOKIE['coach_access[login_id]'];
I guess I will rewrite my code. I still can't understand it working on the
RedHat and not the Windows,
I have a program that I am writing in PHP/MySQL. I have made some upgrades
to the database and like an idiot, forgot to write down the changes or to
make the changes in several other databases for the other clients that are
using the program also. What I am trying to do is to have a program,
I still can't figure something out. I am using WinXP/Apache 1.3.24/PHP
4.2.3 on my laptop and my cookies still don't work like they
should. Hopefully someone can explain to me why.
$cookhost=$_SERVER["HTTP_HOST"];
header("Set-Cookie: aa_host=$cookhost;");
setcookie ("aa_host", "$cookhost",0,"/
main name to my
laptop and put that domain name in the "string domain" parameter and it
still didn't work.
Steve
At 05:53 PM 7/31/2003 -0500, Steve Buehler wrote:
I still can't figure something out. I am using WinXP/Apache 1.3.24/PHP
4.2.3 on my laptop and my cookies s
Something else I found out now. I think it was Cpt John W. Holmes (not
sure though) that said I couldn't have a cookie as an array like this the
following. So i am not sure if it is something that is going away or not.
setcookie ("admin_access[host]", "$cookhost",0,"/","$cookhost");
setcookie (
e the results of the search:
Buehler, Steve
Buehler, Steve
Teste, Teste
a, a
asdf, adsf
asdf, asdf
dsdlkj, sd
Here is the code to sort:
$GLOBALS[sortterm]="cont_name";
usort($logins, "cmp");
function cmp ($a, $b) {
GLOBAL $sortterm;
return strcmp($a[$sortterm], $b[$sortterm]
Ok. Now I REALLY feel like an idiot. Thanks so much for your help.
Steve
At 05:46 PM 8/26/2003 +0200, you wrote:
It right there under your nose:
strcasecmp()
Steve Buehler wrote:
I am using the following function for a sort on an array. I hope someone
can help me out here and let me know
I am having problems sorting a multi-dimensional array. I am hoping that
somebody can help me figure out what I am doing wrong. It should sort on
the "field" than on the "fac". Here is my code:
-start code-
$sortterm;
get_locations();
function cmp ($a, $b) {
GLOBAL $sortterm;
retu
Hopefully someone has done this and has an easy answer. I know that I can
do what I need with a LOT of code, but am trying to come up with something
a little shorter that 50 lines of code. Here is the problem. I have 4
variables that each have a number in them. I need to find which one has
Another option might be to create a directory in your web space to hold
your file and open up just that directory as 777.
Steve
At 08:17 AM 6/26/2003 -0400, you wrote:
From: "frank reeves" <[EMAIL PROTECTED]>
> I have an account on shared server and am trying to
> write a logfile (a dump of an e
h. Ok. Can somebody explain this one? Why won't it work correctly?
for($m=1;$m<=5;$m++){
$div_idd[$m]=${'row->sub' . $m . 'd'};
}
Can it not be done with a 3 parter? The columns in the table that $row
gets, are sub1d, sub2d, sub3d, sub4d and sub5d. Or is it the "->" that is
me
}
From Martin:
for($i =0; $i < 5; $i++) {
$offset = $m + 1;
$divid[$m] = $div_id{$offset};
}
At 10:55 PM 7/26/2002 +0300, you wrote:
>- Original Message -
>From: "Steve Buehler" <[EMAIL PROTECTED]>
>To: "PHP" <[EMAIL PROTECTED]>
>Sent: Fr
Ok. That makes since.
Thanks
Steve
At 04:20 PM 7/26/2002 -0500, you wrote:
>var names can only be letters, numbers, and underscores.
>
>Jim Grill
>Support
>Web-1 Hosting
>http://www.web-1hosting.net
>- Original Message -
>From: "Steve Buehler" <
Can anyone tell me what I am doing wrong?
I am essentially trying to do this:
$divid[1] = $div_id1;
$divid[2] = $div_id2;
$divid[3] = $div_id3;
$divid[4] = $div_id4;
$divid[5] = $div_id5;
But I was looking for a tighter way, like the following (which does not work):
for($m=1;$m<=5;$m++){
Install PHP on your desktop. You will need a web server too. I use
PHP/MySQL/Apache on my Laptop, Desktop, Servers and workstations.
Steve
At 07:56 AM 7/27/2002 -0700, you wrote:
>I guess I should reiterate;
>
>"What is the easiest way to test locally (on my desktop) without having to
>upload
That did the trick. Thank you SO MUCH.
Steve
At 03:48 AM 7/29/2002 -0500, Richard Lynch wrote:
> >h. Ok. Can somebody explain this one? Why won't it work correctly?
> >
> >for($m=1;$m<=5;$m++){
> > $div_idd[$m]=${'row->sub' . $m . 'd'};
> >}
> >
> >Can it not be done with a 3 parter? Th
I am using PHP with MySQL and have a timestamp field in my db table. What
would be the easiest way to get the newest timestamp out of the db?
Thanks in Advance
Steve
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
ow3
--
PHP G
m";}
if($hour > 12){$hour = $hour-12;}
if(!$month){
return "nothing";
}else{
return "$month-$day-$year $hour:$min $ap";
}
*/
}
Thank Again
Steve
At 08:28 AM 8/28/2002 -0700, you wrote:
>Steve
>
Info: Lynx has nothing to do with supporting or not supporting PHP. PHP is
not a client side language, it is a server side language, so the browser
that you use does not even know or need to know that it is running PHP.
Solutions (hopefully): Take out the space between the "-" and the word
"d
I have been trying to figure something out here and am having
problems. What I have is a problem with outputting some info in a
table. Here is what I have and the problem is in the "getstart_end"
function. This should be a working copy if you want to run it and I have
put in some sample time
nd
echo $row->min . " - "; // print this
time as new start
}
$i = $tmp; // keep this new time for next loop
}
}
echo $row->min ."\n"; // print last row
}
At 07:09 PM
}
$i = $tmp; // keep this new time for next loop
}
}
echo $row->min ."\n"; // print last row
}
At 07:09 PM 11/14/2002 +0100, you wrote:
Untested, but should work
Steve Buehler wrote:
function getstart_end(){
$result=mysql_quer
}
$i = $row->min; // keep this new time for next loop
}
//echo $i." - $tmp --tmp\n";
//echo $row->min."\n";
}
echo $i ."\n"; // print last row
}
Steve Buehler wrote:
Ok. That outp
would help. We have some people that work for
us JUST for web/server space.
Steve Buehler
IT Director
Internet Business Applications, LLC
11638 W. 90th St.
Overland Park, Kansas 66214
913-438-3074 x 7
steve @ vespro.com
Using PHP and MySQL.
I have looked and can't find the answer to this problem. What I am trying
to do is to copy a mysql table to a new table name in a PHP script. The
reason for this is to keep the original table the way it is and editing the
copy. Now, I know that I can go through a loop rea
Is there doc somewhere to would tell how to install PHP as a command line
interpreter (like perl) without messing up the installation of PHP that is
installed as a module in/for Apache? Basically, I want to have both on the
same server. Or can this even be done?
Thank You
Steve
--
PHP Gen
I have a php script in an .htaccess protected directory. Is there a way
that PHP could find out what login was used?
Steve
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
can ever figure out how to do this, I will try to post the
results to the lists so other people can use it and improve it as they see fit.
Thanks
Steve
At 09:08 PM 6/3/2002 -0500, Bret Hughes wrote:
>On Mon, 3 Jun 2002, Steve Buehler wrote:
>
> > Does anybody know of any software all
I get this when running that command:
tr: only one string may be given when deleting without squeezing repeats
I looked at the tr man pages and it didn't help much. I also tried using
'\r' and `\r` and just \r , but always get the same result.
Steve
At 11:07 PM 6/8/2002 +0200, you wrote:
>wh
Ok guys. Please take this OFF THIS LIST. Your fight, in itself, has
nothing to do with PHP. If you want service, than be smart and don't go to
a free service. If you do go to a free service, than don't expect great
service. Actually, if you go to a free service, you don't have a right
(IM
I have looked through php.net and the books that I have and I am confused,
so I hope that someone can help me out here. I am trying to sort an array
that I have. I use a while statement to fill the array:
$teams[++$i][team_id]=$row->team_id;
$teams[$i][name]=$row1->name;
$teams[$i][team_sea_id
I hope that someone will be kind enough to help me on this.
I have some variables on a page that are dynamic. I can run this to view
the variables (from a POST) for testing:
Foreach($HTTP_POST_VARS as $key=>$value) echo("$key => $value");
and the results are:
-results-
team_number_1 =>
I have been running several servers using the ensim software and have had
no problem with PHP and/or MySQL. Well, none that was the fault of PHP or
MySQL. Neither one should give you a problem upgrading, except that you
will have to edit the httpd_vwh.conf file by hand since both PHP and MySQ
I have a new RedHat Linux v.9 server that gets its php through
'up2date'. I want the ability to use mcrypt with php. I thought that I
read somewhere a way to do this without having to recompile PHP. Can
anybody point me to the right place or explain to me how to do this?
Thanks
Steve
--
PHP
I have an "if" statement that I would like to make a little bit more
generic. This is how the statement looks now.
if($k2b=="/etc/bind/options.conf.wp" || $k2b=="/etc/bind/rndc.conf.wp" ||
$k2b=="/etc/bind/keys.conf.wp"){
do this1
}else{
do this2
}
What I would like to do is to have an array
To Brad, Marek and Curt (and anybody who responds after this)
Thank you so much for your help. This is going to help me out so
much in a lot of my scripts. It will sure make them a little.Noa
LOT more portable now.
Thanks
Steve
At 11:26 AM 9/30/2003, you wrote:
Steve Buehler
At 06:34 PM 10/5/2003, Roy W wrote:
Is there a way to attach a file with the mail() function?
Thanks!
Yes. Take a look at http://www.php.net/mail
Steve
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I am running PHP/MySQL for a program that I am writing. We will have
100's or 1000's of databases that will be duplicates in structure. The
problem is when I make a change to the database, I have to go to every
database manually and make the change. All of the databases start with
"a_" and
If you want it to work with \n, then you will need to use the
tags. Otherwise you need to translate the \n's into tags. \n is NOT
an html tag so when you print them to the browser, it adds lines to the
source, but as you might already know, a new line in the source of an html
page does NOT
Do what I do, use both the \n and the tags. I am not worried about
anybody else thinking the source is nice looking, I do it for debugging so
that I can see how the source comes out in a readable format.
Steve
At 06:48 AM 10/13/2003, you wrote:
Ok, Now I see what happen (maybe).
So, the "\n"
To give tabs in html, you might want to try using
instead of \t
Steve
At 06:57 AM 10/13/2003, you wrote:
Wang Feng wrote:
The page source shows:
The problem might be right here --+
(closing html tag)
I have upgraded my mysql version to 3.23.58 and am coming up with a couple
of errors using phpmyadmin to "Insert data from a textfile into table" I
didn't get this on the previous versions of mysql. Here are the errors:
SQL-query :
LOAD DATA INFILE '/tmp/phpKFlQ2b' INTO TABLE `annsubscribers
Check your php.ini file and see where it is trying to save your sessions
at. I "think" it is trying to save them to /tmp. You might have to make
sure that directory exists. You might also have to put it in as the full
path. ex.C:\tmp. Make sure to restart your apache, or whatever Web
S
I am using PHP/MySQL and am having a problem. We have some names and
addresses in the database that have single quotes in them. For
instance. There is a town around here called "Lee's Summit". Also names
like "O'connel". When I pull from the database it skips these because of
the quotes.
I am using PHP 4.3.4 and am trying to come up with a function that will
step through the alphabet so that I get a menu/links that can be clicked on
like below:
A
B
C
etc...
I am sure that this has been done and is probably pretty easy. Any help
here would be appreciated. I know that I
Yes, I found that the loop was written kind of backwards and would create a
never ending loop. I never thought to try setting $letter='A' before. I
didn't think you could loop through the Alphabet like that. But I did a
little changing to your loop and it works fine like this now:
$le
uot;;
Hope this helps
The for loop is backwards
for ($letter = 'A'; $letter <= 'Z'; $letter++)
However, I don't think that will work, you probably need to do something
like this (untested)
for ( $letter = 'A', $i = 0; $i <= 25; $letter++, $i++ )
St
','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z');
foreach($letters as $let
Does anybody know if there is a way for php to get the operating system
type from a linux box? I know how to get the kernel version, but not the
operating version/type.
example. RedHat Linux 6.1 or 6.2 or 7.1, etc
Thank You
Steve
--
PHP General Mailing List (http://www.php.net/)
To un
TYPE"] or $_ENV["OSTYPE"] should work for
>you.
>
>---John Holmes...
>
>- Original Message -
>From: "Steve Buehler" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Thursday, April 25, 2002 1:31 PM
>Subject: [PHP] operating
I am running php version 4.06
Steve
At 01:05 PM 4/25/2002, Nathan wrote:
>What version of PHP?
>
>- Original Message -
>From: <mailto:[EMAIL PROTECTED]>Steve Buehler
>To: <mailto:[EMAIL PROTECTED]>Nathan
>Sent: Thursday, April 25, 2002 12:00 PM
>Subject
Good points. I guess i will just have to hope that the /etc/issue file is
correct.
Thanks
Steve
At 01:02 PM 4/25/2002, you wrote:
>On Thu, 25 Apr 2002, Steve Buehler wrote:
> > Does anybody know if there is a way for php to get the operating system
> > type from a linux box?
I am using PHP to access a mysql database. I was told that what I need to
do needs to be done in PHP and not mysql. I can get mysql to order things
like this:
Select * from $temp2 where sea_id = '$sea_id' order by pts DESC
The problem is that if there is a tie (as in ranking 4 and 5 below), I
s and/or more than 2 teams tieing for one
position. I have to program with the possibility that all teams can tie
and than it has to loop through and get the games by who won in a one on
one game.
Thanks
Steve
At 04:03 PM 4/25/2002, Miguel Cruz wrote:
>On Thu, 25 Apr 2002, Steve Buehler wr
up to this point, than I have to check to see if they have played each
other and if they have, who won) is more important than score_for or any of
the other orderings, than it has to do the loop to see if they have played
each other. I hope that makes since. I could write out all the criter
Looks like you forgot your ticks ' around the PHP_SELF. If I am correct,
it should be $_SERVER['PHP_SELF'].
Either way, you might want to try this. Somebody else posted it before and
I have been using it so that no matter what version of PHP my program runs
on, it should work.
if (isset($_SER
I am not an expert at PHP and have been learning it through questions,
books, online help, etc I guess like most people. :) Anyway, I see a
lot of scripts that use $this->something and was wondering if this was just
another variable or if the "->" has any special meaning. One script from
>
>---John Holmes...
>
>- Original Message -
>From: "Steve Buehler" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Monday, April 29, 2002 10:37 AM
>Subject: [PHP] $this->
>
>
> > I am not an expert at PHP and have been learning i
Does anybody know of a good/short tutorial about passing variables from
JavaScript to/from PHP? For example, how to do the following:
data = "hello world";
";
?>
The above might at least give me a clue. Just a note. I really know
nothing to speak of about JavaScript.
Thanks in Adva
Ok. My last post didn't go throught the list software because of the
tags. I am replacing the "<" and ">"'s with *'s now so that hopefully it
will go through so that people can see it.
--Original message
Does anybody know of a good/short tutorial about passing variables from
JavaScri
That question can be difficult to answer. It all depends on what you are
developing. I presume that since this is a PHP list, that you are
developing PHP pages. On my WinXP laptop, I run Apache, MySQL and
PHP. When I have the program finished, I upload it to the server and have
had no prob
To find out about viruses, you might want to go to a site that deals in
them, like http://www.mcafee.com
Steve
At 06:08 AM 5/3/2002, r wrote:
>Hey all,
>In the last 14 days i got 9 emails with this virus "I-Worm/Klez.H", though
>my virus scanner detected it and told me to trash it, i am really
Best bet is to go to any book store that carries programming books and pick
up a book on PHP. There are so many different things that you need to know
that nobody can mention them all here. The other option is to go to
http://www.php.net and read everything the site has.
$var = $value
assigns
I am trying to learn some new things in the hopes that it would help me
with my mysql/PHP programming. The following code gives me an error: "
Warning: Illegal offset type in z.php on line 25 ".
$result=mysql_query("SELECT * FROM division");
while(($row=mysql_fetch_object($result))){
$div_id=$
confusing. Everywhere,
>I use either a double =, or triple = in the if statements, with a ! to use
>the is "not" true... Only in this specific statement, the only way I can
>get it to work, was with a single =. Now what makes that if statement so
>special over the other
function check_input($array){
global $HTTP_REFERER;
$valid = 1;
if(gettype($array)=="array") {
while (list($index, $subarray) = each($array) ) {
if(ereg("required_", $index) && (($subarray == "")
|| ($subarray == " "))) {
Either Google is wrong (probably) or they are now allowing things like
spaces into an email address. There are actually several things that are
not allowed in a standard email address. Here is the code that I use.
ereg('^[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+'.'@'.'[-!#$%&\'*+\\/0-9=?A-Z^_`a-z{|}
To tell you the truth, I can't read it.
Steve
At 01:32 PM 5/10/2002, Miguel Cruz wrote:
>On Fri, 10 May 2002, Steve Buehler wrote:
> >
>
>if(ereg('^[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+'.'@'.'[-!#$%&\'*+\\/0-9=?A-Z^_`a-z{|}~]+\.
I know that I just saw something like this last week on the list, but can't
find it now. Anyway, I have just installed PHP 4.2.1 on my WinXP laptop
running Apache 1.3.23. phpinfo() is still showing 4.1.2. I think I
remember something about a dll that needs to be deleted or something like
th
Sorry, I forgot to move my php4ts.dll to the windows/system32 directory.
Steve
---snip---
I know that I just saw something like this last week on the list, but can't
find it now. Anyway, I have just installed PHP 4.2.1 on my WinXP laptop
running Apache 1.3.23. phpinfo() is still showing 4.1.2
I don't know what I did wrong. I just installed 4.2.1 and can NOT do:
But I can do the following:
I can also do:
$admin_index_title";
echo "
You must use a browser that supports frames to use the admin section.
";
pagefooter();
?>
I sure hope that somebody can help me. I a
Ok. Now the first two examples work and the one with the frames does NOT
work. I never had these problems in PHP 4.1??
Steve
-snip-
I don't know what I did wrong. I just installed 4.2.1 and can NOT do:
But I can do the following:
I can also do:
$admin_index_title";
echo "
At 11:43 AM 5/14/2002, Jon Haworth wrote:
>Hi Steve,
>
> > I don't know what I did wrong. I just installed 4.2.1
> > and can NOT do:
> > > echo "hi";
> > ?>
>
>What, you mean Bill Gates comes round and beats you up whenever you try it?
>
>Can you be more specific about what "I cannot do" means?
Yes, short tags were/are on. I had installed from:
PHP_4.2.1_installer
I now reinstalled with:
PHP_4.2.1_zip_package
and it is working finefor the moment. I think I had a problem like
this on the old version that I used too. I guess that I just have to use
the zip package instead. Probab
Either put the following line at the top of your php script:
error_reporting(E_ALL & ~(E_NOTICE | E_USER_NOTICE | E_WARNING |
E_COMPILE_WARNING | E_CORE_WARNING | E_USER_WARNING) );
Or change the error reporting in your php.ini file.
Steve
At 08:48 AM 5/14/2002, Bob Strasser wrote:
>Anyone kno
Not sure, but it might be the space that you have after the limit=10
Steve
At 11:39 PM 5/16/2002, Peter wrote:
>hi can any one see a problem with this script .. I am trying to use
>phpbuilder's rss link for a site but am having errors
>
>
>$content .= "\n\n";
>$content .= "test\n";
>$content .=
mysql_fetch_row($result)) {
$row=mysql_fetch_object($result);
// This is where I would use something to add $row->email to the arrays.
}
Thank you in Advance
Steve Buehler
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I am having trouble with the following function. What it should do is to
check one table for team_id's. Than it goes to another table and gets all
rows with that team_id. If the team_id is in the new table, it should do
one thing, else it should do something else. Can somebody look at this
At 01:54 AM 5/25/2002 +0800, Jason Wong wrote:
>Your biggest problem is that you're trying to nest mysql_query() but you're
>only using 1 link identifier. You need to establish another connection using
>another mysql_connect().
Why? I can nest 1000's of these as long as I don't use $result= for
At 12:29 PM 5/24/2002 -0500, Steve Buehler wrote:
>I am having trouble with the following function. What it should do is to
>check one table for team_id's. Than it goes to another table and gets all
>rows with that team_id. If the team_id is in the new table, it should do
&g
put a ; at the end of line 31 and see if it still gives you the error.
Steve
At 10:33 AM 5/25/2002 +0100, you wrote:
>Hmm, can anyone explain why I'm getting this error?
>
>Parse error: parse error, unexpected T_IF in
>/usr/local/htdocs/san.loc/upload-img.php on line 34
>
>Code reads:
>
>11:#--
You might want to give an example of what you are trying to do or at least,
why. I am not an expert (not by a long ways), but to me, the way your
question is worded, I would have to sayOpen up the page in whatever
editing program you want to use delete the function and put in a new
functi
http://www.php.net/manual/fi/function.stripslashes.php
Steve
At 11:36 AM 5/29/2002 +0200, you wrote:
>i have some html that i submit using html
>example
>
> Perro
>
>
>When i submit this and retrieve it on the target page the value looks like
>this:
>Perro
>
>Can I somehow avoid that somehow
it works for me just the way you have itexcept of course that you are
telling it to only print to "y" because you are saying On Thursday 30 May 2002 11:46, Peter wrote:
> > Just a query ... has any one else noticed this
> >
> > for($i = a; $i < z; $i++)
> > {
> > print $i;
> > echo "";}
> >
1 - 100 of 131 matches
Mail list logo