Hi
I would like to know if it has been decided whether or not
register_global will continue to be an option in PHP5.
Cheers,
Tommy Ipsen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hello. Let's say I have something like this:
function aa($test) {
$a = 8;
echo $test;
}
$a = 2;
aa("a is ". ($a>5?"greater":"equal to or less"). " than 5".);
I want this to output "a is greater than 5".. how can i modify the code so
that the function parameter is evaluated inside the fu
Hi,
I have this problem, which could easily be solved through a name
change but I would like to learn more.
There's a table set up from a MySQL query like this
row1) Eval # Title # Heads My Findings
row2) P1000 Title16 This is my f
Hi,
Is it advisable to use SESSIONS to store variable from one page to
another page instead of using something like a hidden field?
eg:
$_SESSION['sql_sort_cat']
$_SESSIOn['sql_sort_dir']
instead of
>
Cheers,
Mun Heng, Ow
H/M Engineering
Western Digital M'sia
DID : 03-7870 5168
--
Hi -
Sorry - by caling I meant to echo the cookie value on a .pl page - and
include it (the cookie value)then in an email.
Any help would be appreciated because the PERL list people said I must try a
PHP list -
Thanks
August
>Is this possible :
>How do i call the cookie value (surname) with Per
No problem, but remember the user might want to bookmark the page.
Ow Mun Heng wrote:
Hi,
Is it advisable to use SESSIONS to store variable from one page to
another page instead of using something like a hidden field?
eg:
$_SESSION['sql_sort_cat']
$_SESSIOn['sql_sort_dir']
instead of
What happens if you use a non-breaking html space instead? I.e EvalĀ #
HTH
Nick
On Monday 28 Jul 2003 9:06 am, Ow Mun Heng wrote:
> Hi,
>
> I have this problem, which could easily be solved through a name
> change but I would like to learn more.
>
> There's a table set up from a MySQL query
On Monday 28 July 2003 13:52, TWSC HQ wrote:
> Sorry - by caling I meant to echo the cookie value on a .pl page - and
> include it (the cookie value)then in an email.
>
> Any help would be appreciated because the PERL list people said I must try
> a PHP list -
A cookie is a cookie regardless of w
The manual says that the majority of IMAP commands can be used for NNTP
access.
This code works fine.
$status =
imap_status($nntp,"{news.gradwell.net:119/nntp}#news.gradwell.
lists.test",SA_ALL);
if($status)
{
print("Messages: ". $status->messages )."\n";
print("Recent: ". $status->
www.php.net/variables.scope
You need "global $a;" as the first line in your function.
386-DX wrote:
Hello. Let's say I have something like this:
function aa($test) {
$a = 8;
echo $test;
}
$a = 2;
aa("a is ". ($a>5?"greater":"equal to or less"). " than 5".);
I want this to output "a is g
> -Original Message-
> From: Ryan A [mailto:[EMAIL PROTECTED]
> Sent: 26 July 2003 21:16
>
> Hey John,
> I dont think its the browser because I have tried this with
> opera 6,opera 7,
> IE and NN with the same results...
> But when i checked the phpinfo() it says that cookies are
> enabl
> -Original Message-
> From: Curt Zirzow [mailto:[EMAIL PROTECTED]
> Sent: 26 July 2003 01:14
>
> * Thus wrote Curt Zirzow ([EMAIL PROTECTED]):
> > * Thus wrote Jeremy ([EMAIL PROTECTED]):
> > > let me make sure I understand...
> > >
> > > $var = 'a';
> > > $var++
> > > print($var);
> > >
> -Original Message-
> From: Shawn McKenzie [mailto:[EMAIL PROTECTED]
> Sent: 27 July 2003 08:36
>
> I have some URLs in hrefs that have an &. This does not
> validate HTM4.01
> transitional, so I want to replace them with &
>
> So I buffer the output and do a replace, but suppose there
Here is my problem. When I send emails locally theough the Exchange Server
I have no problems sending mail. When I try to send emails to another site
through the MTA funtion_mail pops up. One of two things came to mind.
First is that we have anonymous forwarding of emails turned off for
security
php-general Digest 28 Jul 2003 09:50:14 - Issue 2202
Topics (messages 157105 through 157149):
Re: Recompiling the PHP Binary with PCNTL
157105 by: DvDmanDT
157127 by: Jason Wong
Flash Variables
157106 by: Taylor Smith
157108 by: skate
Re: Your E-Book
> -Original Message-
> From: Nicholas Robinson [mailto:[EMAIL PROTECTED]
> Sent: 27 July 2003 23:40
>
> Many thanks, that's fixed it!
>
> On Sunday 27 Jul 2003 10:42 pm, Chris Shiflett wrote:
> > --- Nicholas Robinson <[EMAIL PROTECTED]> wrote:
> > > I've noticed that links in my pages ar
Hello,
I have been working with php ncurses for an IRC client and I have a problem
with using colors.
I have been able to find the example php-4.3.2/ext/ncurses/example1.php, and
that does work. It seems to use ncurses_color_set() for setting the color.
However, my application uses 3 windows.
Hiya all;
I have been trying so hard to get that done.. and i posted many here. but
with no hope.. here is a summury of what i did:
- I tried FreeTDS as a driver with unixODBC ...
- Tried to remove mysql- apache - php and recomplied them with : iodbc
- Tried to try openlink driver.
- tried to upg
Here's a puzzler, I've searched the archives and couldn't find a
satisfactory answer, and it would be nice to have one in the archives.
I'm working on a web app that draws a search screen with fields coming
from settings in a database.
When you do the search, it works fine, but in IE 6 on WinXP
I used to have similar problem and that was when I was using the php
mail() command..
Have a look at phpmailer
http://phpmailer.sourceforge.net/
This deals witha lot of the peculiarities with mail servers..
Pete
Ron Allen wrote:
Here is my problem. When I send emails locally theough the Exchang
I have problem with variables in javascript and php.
I have code in php and in this code I insert some values from javascript.:
$color = "
";
when I write command echo $color - result is correct.
but when i need insert or select some values from d
I think it's OK since users needs to be authenticated.
Cheers,
Mun Heng, Ow
H/M Engineering
Western Digital M'sia
DID : 03-7870 5168
-Original Message-
From: Marek Kilimajer [mailto:[EMAIL PROTECTED]
Sent: Monday, July 28, 2003 4:46 PM
To: Ow Mun Heng
Cc: [EMAIL PROTECTED]
Subject: Re:
On Mon, 28 Jul 2003 12:48:04 +0200 [EMAIL PROTECTED] (Roman Duriancik) wrote:
> I have problem with variables in javascript and php.
> I have code in php and in this code I insert some values from javascript.:
>
> $color = "
>";
>
>
>
Nope.. Still does not work..
Cheers,
Mun Heng, Ow
H/M Engineering
Western Digital M'sia
DID : 03-7870 5168
-Original Message-
From: Nicholas Robinson [mailto:[EMAIL PROTECTED]
Sent: Monday, July 28, 2003 4:53 PM
To: Ow Mun Heng; [EMAIL PROTECTED]
Subject: Re: [PHP] $_GET['sort'] & argu
Hi Roman,
I'm not sure if I understand what you want to do - but if you try to set
your PHP-Variable with JavaScript it couldn't work.
JavaScript is Clientside interpreted and PHP is Serverside interpreted, that
means your PHP-Code is done before the JavaScript-Code.
So the Webserver reads your $c
>because in reality I don't have just these 4 fields
> but 43 fields in one table that have to be taken. "Select *..." seems a
much
> easier way to get it
>
you have 43 fields in 1 table? if you are seriously considering offering
hosting packages, then i'm guessing your wanting to be half prof
Hi,
I want to dynamically generate a drop down list of "authors" by querying
a database. What I am doing at present is:
function init_auth_list($auth_list)
{
$auth_list=" select the
name of t
he author";
$query="select name from author order by name";
$result=pg_exec($GLOBA
> Is it possible to have a function which echoes the values as they are
> read from the database?
something like
function init_auth_list()
{
print " select the name of
the author";
$query="select name from author order by name";
$result=pg_exec($GLOBALS["db"],$quer
If your table column is named Eval #, you need to use backtick quotes:
`Eval #`
Ow Mun Heng wrote:
Hi,
I have this problem, which could easily be solved through a name
change but I would like to learn more.
There's a table set up from a MySQL query like this
row1) Eval # Title
Ow Mun Heng wrote:
Hi,
I have this problem, which could easily be solved through a name
change but I would like to learn more.
There's a table set up from a MySQL query like this
row1) Eval # Title # Heads My Findings
row2) P1000 Title16
//Find User Configuration
$sql = mysql_query("SELECT field_name FROM config WHERE show_field=1")
OR die("Could not query database: ".mysql_error()."");
while($result = mysql_fetch_array($sql, MYSQL_ASSOC)){
$field_name_array[] = $result['field_name']
}
// Iterate through array and print fields
Correction...Forgot a ;
//Find User Configuration
$sql = mysql_query("SELECT field_name FROM config WHERE show_field=1")
OR die("Could not query database: ".mysql_error()."");
while($result = mysql_fetch_array($sql, MYSQL_ASSOC)){
$field_name_array[] = $result['field_name'];
}
// Iterate throu
Hi there,
I am trying to replace a backslash inside a string. Somehow nothing workes,
not the str_replce, not preg_replace, not erreg_replace.
Can anybody please help?
Thanx you in advance,
Merlin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/un
... or even shorter (since php 4.1.0):
function init_auth_list()
{
print " select the name of the
author";
$query="select name from author order by name";
$result=pg_exec($GLOBALS["db"],$query);
while ($row = pg_fetch_row($result))
{
print "$row[0]";
}
print "";
Merlin wrote:
I am trying to replace a backslash inside a string. Somehow nothing workes,
not the str_replce, not preg_replace, not erreg_replace.
$new_str = str_replace('\','-',$old_string);
or
$new_str = str_replace("\\",'-',$old_string);
But this begs the question of why do you think you need to
oh.. you are right, I ment slash.
Workes now. Thanx for the hint :-))
--
>> Is it possible to have a function which echoes the values as they are
>> read from the database?
>
>something like
>
>function init_auth_list()
> {
> print " select the name of
>the author";
> $query="select name from author order by name";
> $result=pg_exec($GLOBALS[
I am curious if there is a better documentation of Mail Parse functions than
the one provided on the php.net site.
Any help is appreciated,
R>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi,
I have some problem with uploading files on server with PHP.
The upload is ok, but I must set directory permissions with FULL Access -
but this is not a good idea :((
Have someone idea how I can do this with no setting permissions to full
acess ?
Thanks,
Rosen
--
PHP General Mailing List (
Hi,
I have some problem with uploading files on server with PHP.
The upload is ok, but I must set directory permissions with FULL Access -
but this is not a good idea :((
Have someone idea how I can do this with no setting permissions to full
acess ?
Thanks,
Rosen
reserved!
--
PHP General Ma
Hi all,
can anyone tell me how php paths are worked out Im just starting to use
php over asp so would appreciate the answer to the following
If a file a.php includes a file b.php which includes a file c.php is the
include in file b.php relative to itself or the file that included it i.e.
a.ph
relative to a.php
Kevin McGinley wrote:
Hi all,
can anyone tell me how php paths are worked out Im just starting to use
php over asp so would appreciate the answer to the following
If a file a.php includes a file b.php which includes a file c.php is the
include in file b.php relative to itse
Hi all,
I have this code so far:
Inside one of my tables, I have one field called IP which contains just over
a thousand IP addresses. I would like these IP addresses to be displayed
inside of a table like this:
IP Address #1
IP Address #2
IP Address #3
And so on...
How do I go about ache
Hi
Next time you can find a lot of information about this on www.php.net.
Check out this example:
Best regards,
Jacob Vennervald
On Mon, 2003-07-28 at 16:08, SP Computing wrote:
> Hi all,
>
> I have this code so far:
>
>
> mysql_connect(localhost, USER, PASS);
> mysql_select_db(DB);
>
> $
$mysql_link = mysql_connect("localhost", USER, PASS);
mysql_select_db(DB, $mysql_link);
$SQL = "SELECT * FROM tbl";
$result = mysql_query($SQL, $mysql_link) or die (mysql_error());
echo "";
while($resultat = @mysql_fetch_array($result)) {
echo "
$resultat[ip]
";
I'm not sure what that means...how do I use it, and where?
On Fri, 25 Jul 2003, Marek Kilimajer wrote:
> Don't you need to use $HTTP_POST_FILES array because you have
> register_globals off?
>
> Amanda McComb wrote:
>
> > I am having a problem with uploading a file from a form. I changed the
* Thus wrote 386-DX ([EMAIL PROTECTED]):
> Hello. Let's say I have something like this:
>
> function aa($test) {
> $a = 8;
> echo $test;
> }
>
> $a = 2;
> aa("a is ". ($a>5?"greater":"equal to or less"). " than 5".);
http://php.net/eval
Curt
--
"I used to think I was indecisive, but n
> * Thus wrote 386-DX ([EMAIL PROTECTED]):
> > Hello. Let's say I have something like this:
> >
> > function aa($test) {
> > $a = 8;
> > echo $test;
> > }
> >
> > $a = 2;
> > aa("a is ". ($a>5?"greater":"equal to or less"). " than 5".);
>
> http://php.net/eval
No... you need to make $a glo
The following code illustrates a problem I've got with references (running
on PHP 4.3.2). Can anyone explain it for me? Thanks in advance for any
assistance!
Martin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Anything in the Apache or PHP error logs? Permissions are OK, there is space
on the drive?
Kirk
> -Original Message-
> From: Lee Stewart [mailto:[EMAIL PROTECTED]
> Sent: Friday, July 25, 2003 6:00 PM
> To: [EMAIL PROTECTED]
> Subject: RE: [PHP] Debugging a Session Problem
>
>
> Using t
Everything is in the manual:
http://www.php.net/features.file-upload
Amanda McComb wrote:
I'm not sure what that means...how do I use it, and where?
On Fri, 25 Jul 2003, Marek Kilimajer wrote:
Don't you need to use $HTTP_POST_FILES array because you have
register_globals off?
Amanda McComb wr
* Thus wrote CPT John W. Holmes ([EMAIL PROTECTED]):
> > * Thus wrote 386-DX ([EMAIL PROTECTED]):
> > > Hello. Let's say I have something like this:
> > >
> > > function aa($test) {
> > > $a = 8;
> > > echo $test;
> > > }
> > >
> > > $a = 2;
> > > aa("a is ". ($a>5?"greater":"equal to or le
[EMAIL PROTECTED] wrote:
> $mysql_link = mysql_connect("localhost", USER, PASS);
>
> mysql_select_db(DB, $mysql_link);
>
>$SQL = "SELECT * FROM tbl";
>
>$result = mysql_query($SQL, $mysql_link) or die (mysql_error());
>
>echo "";
>
>while($resultat = @mysql_fetch_array($result)) {
* Thus wrote Kevin McGinley ([EMAIL PROTECTED]):
> Hi all,
> can anyone tell me how php paths are worked out Im just starting to use
> php over asp so would appreciate the answer to the following
>
> If a file a.php includes a file b.php which includes a file c.php is the
> include in file b.
> -Original Message-
> From: Martin Peck [mailto:[EMAIL PROTECTED]
> Sent: 28 July 2003 15:33
>
> The following code illustrates a problem I've got with
> references (running
> on PHP 4.3.2). Can anyone explain it for me? Thanks in
> advance for any
> assistance!
> Martin
>
>
> $glo
Amanda,
You need to look at some of the error messages that are available to you:
1) remove the prepended @ from the file functions. This will tell what is
going wrong with the file copy.
> if ([EMAIL PROTECTED]($photo, $long_path . "company_logo/" . $photo_name)) {
> echo "Copy fail
* Thus wrote Ford, Mike [LSS] ([EMAIL PROTECTED]):
> > -Original Message-
rints 0, not 1
> >
> > function setglobal(&$one)
> > {
> > global $globalvariable;
>
> PHP actually handles this by executing the equivalent of:
>
> $globalvariable = &$GLOBALS['globalvariab
I just had to turn on MultiViews in my directory options...
Heiko
Jeff Harris wrote:
On Jul 7, 2003, "Heiko Mundle" claimed that:
|I try to use PHP and Apache on both Linux (SuSE 8.1) and Windows (2K).
|
|On Linux I can access the PHP scripts without adding the .php extension.
|E.g.
|http:///?pa
Try taking the value='' out of your form fields.
if you have it reseting the values every time the page is loaded, it will
reset the values.
Jim Lucas
- Original Message -
From: "Jim McNeely" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 28, 2003 3:20 AM
Subject: [PHP]IE6
[EMAIL PROTECTED] wrote:
> $mysql_link = mysql_connect("localhost", USER, PASS);
>
> mysql_select_db(DB, $mysql_link);
>
>$SQL = "SELECT * FROM tbl";
>
>$result = mysql_query($SQL, $mysql_link) or die (mysql_error());
>
>echo "";
>
>while($resultat = @mysql_fetch_array($result)) {
hi,
i have to move data from a table with a datetime (2003-05-14 13:36:04) to a
unix timestamp (e.g. 2147483647) . Any ideas?
Chris
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Tried passing it through strtotime?
Example:
echo(date('U',strtotime($string)));
On Mon, 2003-07-28 at 12:06, Chris Hayes (SENSE) wrote:
> hi,
> i have to move data from a table with a datetime (2003-05-14 13:36:04) to a
> unix timestamp (e.g. 2147483647) . Any ideas?
>
> Chris
--
Adam Voigt
Look into mktime()
http://us3.php.net/manual/en/function.mktime.php
Chris Hayes wrote:
hi,
i have to move data from a table with a datetime (2003-05-14 13:36:04)
to a unix timestamp (e.g. 2147483647) . Any ideas?
Chris
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: ht
<[EMAIL PROTECTED]>
Chris Hayes (SENSE):
> hi,
> i have to move data from a table with a datetime (2003-05-14
> 13:36:04) to a unix timestamp (e.g. 2147483647) . Any ideas?
>
> Chris
strtotime();
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.p
Any takers on this?
"T. Rader" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hey,
>
> System: RH9, Apache 1.3.27, PHP 4.3.2, FreeTDS 0.61 connecting to a Win2K
> Server, MSSQL Server 2K
>
> Problem: mssql_execute hangs when run. The script just never comes back.
> The code is as f
Umm, try setting TDSVER to 8.0 is all I could say to try.
On Mon, 2003-07-28 at 12:10, T. Rader wrote:
> Any takers on this?
> "T. Rader" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > Hey,
> >
> > System: RH9, Apache 1.3.27, PHP 4.3.2, FreeTDS 0.61 connecting to a Win2K
> >
SELECT UNIX_TIMESTAMP(datetime-field) ...
thomas
On Mon, 28 Jul 2003 18:06:32 +0200 [EMAIL PROTECTED] (Chris Hayes) wrote:
> hi,
> i have to move data from a table with a datetime (2003-05-14 13:36:04) to a
> unix timestamp (e.g. 2147483647) . Any ideas?
>
> Chris
>
--
PHP General Mailin
Hello everyone!
I am having some issues with authentication and was wondering if someone
out there could point me in the right direction. I am using apache2 and
have htaccess setup to require a valid user via mod_auth_ldap
communicating with an ldap server. Everything works like a million bucks i
Chris Hayes (SENSE) wrote:
i have to move data from a table with a datetime (2003-05-14 13:36:04)
to a unix timestamp (e.g. 2147483647) . Any ideas?
ALTER TABLE Table ADD COLUMN unix_time_column INT;
UPDATE Table SET unix_time_column = UNIX_TIMESTAMP(mysql_time_column);
--
---John Holmes...
Amazon
For Win9x, use winipcfg instead of ipconfig.
--- Chris Lee <[EMAIL PROTECTED]> wrote:
> >Try this:
> > >exec('ipconfig',$catch);
> >foreach($catch as $line){
> >if(eregi('IP Address',$line)){
> >list($t,$ip) = split(':',$line);
> >echo 'IP is '.$ip."\n";
> >
<[EMAIL PROTECTED]>
Mark:
> For Win9x, use winipcfg instead of ipconfig.
winipcfg is a windows-based utility, which can't work with PHP.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Thanks for the reply. I gave it a try and still have the same problem. I
have FreeTDS logging enabled, but the logs do not show anything useful. A
connection is made to the server, and the database is selected correctly.
Then, the log shows an outgoing connection. After that, nothing.
We have
* Thus wrote Tom Rogers ([EMAIL PROTECTED]):
> Hi,
>
> Monday, July 28, 2003, 4:29:46 PM, you wrote:
> >>Try this:
> >> >>exec('ipconfig',$catch);
> >>foreach($catch as $line){
> >>if(eregi('IP Address',$line)){
> >>list($t,$ip) = split(':',$line);
> >>echo
On Jul 28, 2003, "Jason Wong" claimed that:
|On Monday 28 July 2003 13:52, TWSC HQ wrote:
|
|> Sorry - by caling I meant to echo the cookie value on a .pl page - and
|> include it (the cookie value)then in an email.
|>
|> Any help would be appreciated because the PERL list people said I must try
|
hello everyone,
I am trying to store one of the fields of the resultset into an array
as I display the results.
while ($row = mysql_fetch_array($result1)) {
// Alternate the bgcolor of each row for visibility
($even % 2) == 0 ? $bgcolor = "#EFEFEF" : $bgcolor =
"#eefff
Any body else getting a message back with subject like:
[ERR] Re: [PHP] subject of message.
With contents:
Transmit Report:
To: [EMAIL PROTECTED], 402 Local User Inbox Full ([EMAIL PROTECTED])
I tried contacting the list admin and posted a message here ealier
this weekend about fixing this (
use require_once() or include_once() - these remember what has been
included and do not include files that has been already.
Kevin McGinley wrote:
Can u tell me then how its posssible to include a file that inculdes
another file if it is itself included in two other files that are in
difeerent d
Hey Jason,
Thanks for that bit of code, it was exactly what i was looking for.
For those of you curious or face the same problem:
After dumping the data into the array I am calling each part that i need via
where "pname" in this case is the field
name and the 1 is for the second value.
(Damn, i l
On Jul 28, 2003, "Ford, Mike [LSS]" claimed that:
|> -Original Message-
|> From: Shawn McKenzie [mailto:[EMAIL PROTECTED]
|> Sent: 27 July 2003 08:36
|>
|> I have some URLs in hrefs that have an &. This does not
|> validate HTM4.01
|> transitional, so I want to replace them
* Thus wrote Ryan A ([EMAIL PROTECTED]):
>
> one last question:
> According to the script I am calling an include file...
> eg:
> if(r=2){include "blah1.php";}
> elseif (r=3){include "blah2.php";}
> and so on
>
> now blah1,2,3 etc are mostly html code files with php in them.will this
> slo
Nope, I too have gotten a few of those and its a pain in the @ss.
- Original Message -
From: "Curt Zirzow" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 28, 2003 7:26 PM
Subject: [PHP] List Problems
> Any body else getting a message back with subject like:
> [ERR] Re:
On Monday 28 July 2003 21:47, Rosen wrote:
> I have some problem with uploading files on server with PHP.
> The upload is ok, but I must set directory permissions with FULL Access -
> but this is not a good idea :((
> Have someone idea how I can do this with no setting permissions to full
> acess
> Any body else getting a message back with subject like:
> [ERR] Re: [PHP] subject of message.
>
yeah, i'm getting that every now and then. maybe 1 or 2 a day tho...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I've been getting them too. The really annoying bit is that the most likely
reason for it is that the lucky devil hanmir is probably on holiday!
On Monday 28 Jul 2003 6:26 pm, Curt Zirzow wrote:
> Any body else getting a message back with subject like:
> [ERR] Re: [PHP] subject of message.
>
>
Hey All,
I have a question regarding parsing text from a MySQL query. Basically, I
have several paragraphs of text in a field in MySQL. I run a query, get the
results, no problem. However, I would like to only display the first
paragraph of the data returned.
What is the best way to do this?
Tha
On Jul 28, 2003, "skate" claimed that:
|
|
|> Any body else getting a message back with subject like:
|> [ERR] Re: [PHP] subject of message.
|>
|
|yeah, i'm getting that every now and then. maybe 1 or 2 a day tho...
[Regression mode] Not to start the discussion all over again, but if the
respons
On Sat, 2003-07-26 at 07:11, Curt Zirzow wrote:
> * Thus wrote jan ([EMAIL PROTECTED]):
> > Hi there!
> >
> > What's the best way to create uids (unique ids) even when runnig at
> > exactly same time (microseconds)?
> >
> > is this enough ???
> >
> > $r = mt_rand();
> > $uid = uniqid(getmypid()
- Original Message -
From: "John" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 28, 2003 8:22 PM
Subject: [PHP] Parsing MySQL query return
> Hey All,
>
> I have a question regarding parsing text from a MySQL query. Basically, I
> have several paragraphs of text in a fiel
Does anyone know what the maximun number of columns I could put in a table
is?? I can't find it in manual. Like, could I have a table with 200,000
columns?
Mike
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q=mysql+max+columns&btnG=Google+Search
Mike Mannakee wrote:
Does anyone know what the maximun number of columns I could put in a table
is?? I can't find it in manual. Like, could I have a table with 200,000
columns?
Mike
--
PHP Ge
hello All,
I am trying to store an array as a session variable.
while ($row = mysql_fetch_array($result))
{
if ( !is_array($company_name) ) $company_name = array();
array_push($company_name, $row['company']);
// try to register session variable
$_
--- Pushpinder Singh Garcha <[EMAIL PROTECTED]> wrote:
> I am trying to store an array as a session variable.
Based on your code, it looked like your question had little to do with storing
an array as a session variable. To do that, this works:
$_SESSION['myarray'] = $myarray;
> while ($row =
$details is an array (just like $company_name was). Try to view
print_r($details); and see what you get.
---John Holmes...
- Original Message -
From: "Pushpinder Singh Garcha" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 28, 2003 3:18 PM
Subject: [PHP] Store array as Se
$details is empty !!
Thanks
--Pushpinder
On Monday, July 28, 2003, at 03:31 PM, CPT John W. Holmes wrote:
$details is an array (just like $company_name was). Try to view
print_r($details); and see what you get.
---John Holmes...
- Original Message -
From: "Pushpinder Singh Garcha" <[EMAI
--- Pushpinder Singh Garcha <[EMAIL PROTECTED]> wrote:
> I am trying to store the value in row['company'] in an array
> called $company_name.
I see now. I think you might find this a bit simpler (if I understand
correctly):
$company_name = array();
while ($row = mysql_fetch_assoc($result))
{
Anyone know of a place to get some good tutorials on how to forward email
from SendMail to PHP for processing?
You should rethink your data structure if you want to create 200,000
columns. If you need to create that many columns, chances are you are
going to need to add more periodically. That means changing your table
structure which you shouldn't have to do in a well defined schema. I'm
guessing most
Try this.
$companyname[] = $row['company'];
Jim Lucas
- Original Message -
From: "Pushpinder Singh Garcha" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 28, 2003 10:16 AM
Subject: [PHP] Array Question
hello everyone,
I am trying to store one of the fields of the re
* Thus wrote Gabriel Guzman ([EMAIL PROTECTED]):
> On Sat, 2003-07-26 at 07:11, Curt Zirzow wrote:
> > * Thus wrote jan ([EMAIL PROTECTED]):
> > > Hi there!
> > >
> > > What's the best way to create uids (unique ids) even when runnig at
> > > exactly same time (microseconds)?
> > >
> > > is this
Thanks Chris,
I am able to see the contents of the $company_name array. The next
part involves storing this as a session variable.
I am trying to link this page to another search page using the --Link--
while ($row = mysql_fetch_assoc($result))
{
"
$row[company]
sans-serif\">$
1 - 100 of 141 matches
Mail list logo