Hi ,
I am trying to install php with the --enable-sockets on
a solaris2.8 machine .
and getting the following error .
Any help is appreciated .
thanks
~Rahul
sockets.c: In function `php_if_recvmsg':
sockets.c:1728: structure has no member named `msg_control'
sockets.c:1729: structure has no
Hi all..
well i got the wav files from the mysql database and can get them to play in
a web page using the following code:
IF ($row = mysql_fetch_array($result)) {
$data = $row["wavFile"];
$name = $row["wav FileName"];
$size = $row["wav FileSize"];
$type = $row["wav FileT
Hi Jason,
Thanks for the reply.
Just I posted to input fields from a html form and I tried to print.
Here I am not registering any global variables.
I have tried echo "emp_id: ".$_POST['emp_id']; and able to print
succesfully.
Every time I have to refer like this $_POST['emp_id']. Can't I
On Thursday 13 June 2002 14:18, Balaji Ankem wrote:
> Hi friend,
> Just now I have installed php 4.2.1 on my windows NT machine.
Did you read the release notes or the documentation which comes with it, or
the manual even?
> Here I found I am not able to get the postfield values.
> What would
Hi friend,
Just now I have installed php 4.2.1 on my windows NT machine.
Here I found I am not able to get the postfield values.
What would be the reason?
Thanks and Regards
Balaji.
Login.html
=
function check()
{
document.login.method = "POST";
document.
Hi Shane I seen your message about binary extraction and although I
understand the concept it is past my pay grade. (newbie)
I am working on customizing a cart and I am looking for an example of script
to work on that extracts a file name from the db and resizes into a table.
I tried a few thin
Hey,
Does anyone know why I can't use the mail() function for my email addresses
[EMAIL PROTECTED]? It works fine on my Hotmail account, but I would rather use my cox
account.
Damon
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Sorry... that should be mySQL database
Cheers,
Brad
Nel vino la verità, nella birra la forza, nell'acqua i bacilli
--
In wine there is truth, in beer there is strenght, in water there are
bacteria
> From: Brad Wright <
Ed,
Thanks, the server is IIS4 and I've tried both the CGI and ISAPI approach,
even tried using the installer. All to no avail.
I have taken the error mesage to mean that some security contraint is
preventing the server from accessing eithet the PHP.exe or the .dll file.
Stumped.
George
> -Original Message-
> From: David Robley [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, June 13, 2002 3:25 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Re: converting C to PHP
>
>
> In article <6416776FCC55D511BC4E0090274EFEF508A46F@EXCHANGE>,
> [EMAIL PROTECTED] says...
> > I'm convertin
Thanks to all who tried to helps. I've finally found out why. The oracle
home user directory should be set to drwxr-xr-x so once the required
environment was set the ora function can connect to the oracle database, and
all the required files and library can be access.
thanks
Regards,
Mike
In article <6416776FCC55D511BC4E0090274EFEF508A46F@EXCHANGE>,
[EMAIL PROTECTED] says...
> I'm converting some C functions to PHP and have come across this:
>
> int skipf(..., char *format)
> {
> /* ... */
> cp = format;
> char *cp, *cp2;
> multiplier = strtol(cp, &cp2, 10);
> /* ... */
If it is aurica.com then it is wrong as this is the name of Live server.
But currently I am working on local linux server. (To access the server I
use http://Linux-Server/index.php)
Any way, following is the out put of the command
***Can't find server a
Hello,
On 06/13/2002 01:59 AM, Manisha wrote:
> I gave the command at root, I got some details
>
>
>--
>
>
>
>
> Q-ID Size - Q-Time- Sender/Recipient
>
> 67Thu Ju
I gave the command at root, I got some details
--
Q-ID Size - Q-Time- Sender/Recipient
67Thu Jun 13 11.22 nobody
(host map: look
Hi all,
I have been able to upload a wav file to a mxSQl db using PHP script. Wanted
to be able to get that wav file from the db and embed it into a web page
using the default media player to play it.
Can anyone help???
Cheers,
Brad
Nel vino la verità, nella birra la forza, nell'acqua i
Hello,
On 06/13/2002 12:07 AM, Manisha wrote:
> I am trying to send mail from Linux Redhat server through PHP. It is not
> giving me any error but I am not getting any mail too.
>
> Following is the code
>
>
>
> $mailBody = "This is one line \ n This is a
I get the same thing...I have to click twice, or refresh the page to get rid
of the info.
-Original Message-
From: Martin Towell [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 13, 2002 12:21 AM
To: '[EMAIL PROTECTED]'; Php
Subject: RE: [PHP] beginner in PHP
try this for chout()
functi
On Thu, Jun 13, 2002 at 02:13:48PM +1000, Martin Towell wrote:
> But what about the pointer &cp2
>
> If endptr is not NULL, strtol() stores the address of the first
> invalid character in *endptr.
In you example endptr is always NULL!
> If there were no digits at all,
> strtol() store
try this for chout()
function chout(){
global $mycart, $cart_items;
session_destroy();
-Original Message-
From: Phillip Perry [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 13, 2002 2:18 PM
To: Martin Towell; Tom Rogers; Php
Subject: RE: [PHP] beginner in
Thanks Martin!! That really helped out a lot. And thanks to all who tried to
help me. I appreciate it!
I have one other question that is really not so much important as it is
annoying, but I can't figure it out myself.
I'm practicing with sessions. What I'm making..if you couldn't tell by the
ar
But what about the pointer &cp2
If endptr is not NULL, strtol() stores the address of the first
invalid character in *endptr. If there were no digits at all,
strtol() stores the original value of nptr in *endptr. (Thus,
if *nptr is not `\0' but **endptr is `\0' on return, the entire
s
On Thu, Jun 13, 2002 at 01:12:18PM +1000, Martin Towell wrote:
> I'm converting some C functions to PHP and have come across this:
>
> int skipf(..., char *format)
> {
> /* ... */
> cp = format;
> char *cp, *cp2;
> multiplier = strtol(cp, &cp2, 10);
> /* ... */
> }
>
>
> How can I imp
Hi César,
As others have obviously pointed out using MAX() is the way to go. Need I
mention that you can also insert values of your own making into an
auto_increment column as long as they are not already used by some other
record.
In your case since you have old records with IDs of their own ma
There is a difference in the default way php installs between 4.1.x and
4.2... the newer version comes with register_globals Off in the php.ini
file. Simple solution, change this value to On in your php.ini file, and
restart.
However, you scripts will be a lot more secure if you leave register_g
Phillip Perry writes:
> Can someone tell me why this doesn't work?
> The $mycart array is fine and the $catalog array is also fine but nothing
> inside the if statement prints. I've tried other echo statements but nothing
> prints at all.
>
> while (list($key,$value) = each($mycart))
> {
here's the revised loop
$cat_cnt = count($catalog);
while (list($key,$value) = each($mycart))
{
for ($j = 0; $j < $cat_cnt; $j++)
if ($value == $catalog[$j]["itemcd"])
{
echo $catalog[$j]["unitprice"];
break;
}
}
-Original Message-
From: Martin Towell [mai
I've had many troubles with my php, now I'm a beginner
when it comes to php. I had installed Apache 1.3.2,
and was trying to run simple php4. You know with
index.php?id=yourpage with the code on the page being
See what happened is my
hard-drive crashed and I lost all my programs ect. I
managed to
Ah! $catalog is a 2D array - any your if statement is expecting a 1D
array...
-Original Message-
From: Phillip Perry [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 13, 2002 1:52 PM
To: Tom Rogers; Php
Subject: RE: [PHP] beginner in PHP
I meant Martin :) sorry.
-Original Message---
I meant Martin :) sorry.
-Original Message-
From: Phillip Perry [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 12, 2002 11:44 PM
To: Tom Rogers; Php
Subject: RE: [PHP] beginner in PHP
Array ( [0] => gerainiums [1] => roses [2] => roses [3] => roses [4] =>
roses [5] => roses )
1
1
Yo
Array ( [0] => gerainiums [1] => roses [2] => roses [3] => roses [4] =>
roses [5] => roses )
1
1
Your output is different from the last print_r that Tom had me do. I wonder
why that is
-Original Message-
From: Tom Rogers [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 12, 2002 11:44 PM
Hi Folks:
I was going to propose something similar. Allow me to tweak:
>
> *
> *
>
>
>
> on you script page
># $mand = array("foo", "bar");
$mand = array('foo', 'bar');
> # $cnt = count($mand);
> # for ($i = 0; $i < $cnt; $i++)
> # if (!in_array($mand[$i], $my_array))
>
Array ( [0] => gerainiums [1] => roses [2] => roses [3] => roses [4] =>
roses ) Array ( [0] => Array ( [itemcd] => daisys
[itemcat] => FL [itemdesc] => Daisys, seed package 200/250 cnt [unitprice]
=> 2.2 ) [1] => Array ( [itemcd] => gerainiums
[itemcat] => FL [itemdesc] => Gerainiums, purple, seed
Hi
Then I guess you will have to add some debug code
try this before the while loop and make sure your if ($value ==
$catalog["itemcd"]) will produce a match (and you do need the quotes really :)
echo "".print_r($catalogue)."".print_r($mycart)."";
Tom
At 11:31 PM 12/06/2002 -0400, Phillip Perry
On Wed, 12 Jun 2002, Tom Ray wrote:
> I have an array question. I want to use a dynamic array but I don't know
> how to do this. What I want to do is this, I want to write a form script
> that takes the elements of the form and submits them in the array then I
> want to do a loop and check to s
send the results of putting these two line just before your while loop
print_r($mycart);
print_r($catalog);
-Original Message-
From: Phillip Perry [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 13, 2002 1:31 PM
To: Tom Rogers; Php
Subject: RE: [PHP] beginner in PHP
Thanks, but that did
Thanks, but that didn't work either
-Original Message-
From: Tom Rogers [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 12, 2002 11:32 PM
To: [EMAIL PROTECTED]; Php
Subject: Re: [PHP] beginner in PHP
Hi
itemcd and unitprice should be in quotes I think if they are keys in an
array.
$cat
Hi,
How to get the php.ini file ? I tried to run phpinfo program and where I
got following
Configuration File (php.ini) Path/usr/local/lib
I tried to open that file, it has only 2 lines as follows:
magic_quotes_gpc = On
error_reporting = 5
Any addition is required ?
Thanks
Manisha
Hi
itemcd and unitprice should be in quotes I think if they are keys in an array.
$catalog["itemcd"]
$catalog["unitprice"]
Tom
At 10:56 PM 12/06/2002 -0400, Phillip Perry wrote:
>Can someone tell me why this doesn't work?
>The $mycart array is fine and the $catalog array is also fine but nothing
Thanks but that doesn't work.
-Original Message-
From: Tom Ray [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 12, 2002 10:59 PM
To: [EMAIL PROTECTED]
Cc: Php
Subject: Re: [PHP] beginner in PHP
Try this:
echo "$catalog[unitprice]";
in my experience I've only been able to use the ech
itemcd is an element of the array.. like this...
array ('itemcd' => 'book', 'itemdesc' => 'This book is great', 'unitprice'
=> '29.95');
-Original Message-
From: Pushkar Pradhan [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 12, 2002 11:12 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] be
I'm converting some C functions to PHP and have come across this:
int skipf(..., char *format)
{
/* ... */
cp = format;
char *cp, *cp2;
multiplier = strtol(cp, &cp2, 10);
/* ... */
}
How can I implement this line in PHP ?
multiplier = strtol(cp, &cp2, 10);
Oh, and an example of fo
Yes what are your settings in php.ini, generally the default settings are
sufficient?
> I am trying to send mail from Linux Redhat server through PHP. It is not
> giving me any error but I am not getting any mail too.
>
> Following is the code
>
>
>
> $mailBod
Is itemcd a variable then it should be used as $itemcd?
> Try this:
>
> echo "$catalog[unitprice]";
>
>
> in my experience I've only been able to use the echo() without the
> quotation marks if I'm calling a function, for variables you need the
> quotation marks.
>
> Hope this helps.
>
>
> Phillip
I am trying to send mail from Linux Redhat server through PHP. It is not
giving me any error but I am not getting any mail too.
Following is the code
-
Even I checked the email files at /var/spool/mqueue - There are 2 file
If you want to use an array for you form, then here's one method
on you form page
*
*
...
on you script page
\n";
?>
I haven't tested it though. Maybe you could use array_diff() ???
-Original Message-
From: Tom Ray [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 13, 2002 12:48 PM
To
Ok,...
what sort situations would you benifit using the first method?
ie
is it more suiteable to making some conditions
eg
$a = foo;
while {$$a <= bar)
echo "$a";
endwhile;
-Original Message-
From: Martin Towell [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 13 June 2002 12:44 PM
T
Hi John,
Btw, according to the error message, there's no such function as 'RIGHT' in
PostgreSQl. (Sorry about referring to the string as an array in a session
variable -- I've extracted the code from some other stuff that I had been
working on.)
Sigh. I'd like to know why this doesn't work:
Try this:
echo "$catalog[unitprice]";
in my experience I've only been able to use the echo() without the
quotation marks if I'm calling a function, for variables you need the
quotation marks.
Hope this helps.
Phillip Perry wrote:
>Can someone tell me why this doesn't work?
>The $mycart ar
Can someone tell me why this doesn't work?
The $mycart array is fine and the $catalog array is also fine but nothing
inside the if statement prints. I've tried other echo statements but nothing
prints at all.
while (list($key,$value) = each($mycart))
{
if ($value == $catalog[item
I used a script from PEAR to adduser/deluser/change password
the problem is the password file ini mode 600
and I run the script from web
I had turn on the
safe_mode = on
safe_mode_gid = on
the running script had a same UID GID with the password file
when I try it There a alot of error...
from re
I have an array question. I want to use a dynamic array but I don't know
how to do this. What I want to do is this, I want to write a form script
that takes the elements of the form and submits them in the array then I
want to do a loop and check to see if each element in the array has a
value
well, the first method is the same as saying
$a = "foo";
$foo = "bar";
echo "$a $foo";
whereas the second method is appending "bar" to $a (thus making it "foobar")
In first method, you get two variables, the second, just one
-Original Message-
From: Peter [mailto:[EMAIL PROTECTED]]
Sent
howdy,
I'm just curious here about varible varibles ... I know that you can, well
it's documented that you can, do the following
which will produce foo bar
now what I am curious about is, how much of a difference does that really
make when you compare it to..
Cheers
Peter
"the only dum
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED]
says...
> take the following html code
>
>
>
>
>
> Now when that is created by a php script the value that is passed back is
> the following.
>
> myimg.x="Click loc X"&myimg.y="Click loc y"
>
> I could leave the name attribute off and I ge
Hi John,
Yup. I know now that I've caused myself all sorts of grief when I set it to
varchar. If I recall correctly (and I set this up four months ago when I
began coding) I couldn't get it format without the crummy little dashes. So I
set it to a string.
Much coding later, I realize that I
Hello,
On 06/12/2002 01:56 PM, Jeroen Timmers wrote:
> Is there a simple function that validate an email adres
You may want to try this e-mail validation class that provides different
levels of e-mail validation.
http://www.phpclasses.org/emailvalidation
--
Regards,
Manuel Lemos
--
PHP
Restart apache.
> -Original Message-
> From: Georgie Casey [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, June 12, 2002 8:52 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] safe scripting
>
> How do i setup safe mode scripting (each script has a different uid)
on my
> win32, apache, php setup
How do i setup safe mode scripting (each script has a different uid) on my
win32, apache, php setup? my plesk host has to use it and i want to be able
to test my scripts on my own computer.
i set "safe mode = On" in my php.ini file but the script still lets me
include a file, whereas the script o
There is a great function library on http://killersoft.com/ which was
derived from what is widely considered the best email validation script in
Perl.
It also follows RFC 822 about as close as is possible.
[http://www.faqs.org/rfcs/rfc822.html]
I was about to start writing something simular, but
have a look on www.phpbuilder.com zend.com, www.phpwizard.net & the like and
have a look there .. particually phpwizard as there is phpirc in there
under projects
Cheers
Peter
-Original Message-
From: Phil Powell [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 13 June 2002 10:02 AM
To: [EMAI
$_POST['groups'] is an array. It's size is going to be dependant on how
many check boxes were checked.
So, in your example, if only blah2 is selected, you'll have
$_POST['groups'][0] == '2'
You can use count($_POST['groups']) to see how many boxes were checked.
---John Holmes...
> -Origi
When a user clicks on an image to submit, two variables are created...
$image_x and $image_y
Or, using the HTTP or super global variables...
$HTTP_POST_VARS['image_x'], $HTTP_POST_VARS['image_y']
$_POST['image_x'], $_POST['image_y']
Try those...I'm pretty sure that's how it still works.
---Jo
Show your code and learn how to use the MySQL_fetch_array() function...
www.php.net/mysql_fetch_array
---John Holmes...
> -Original Message-
> From: César Aracena [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, June 12, 2002 6:19 PM
> To: PHP DB List; PHP General List
> Subject: RE: [PHP]
What are the possible reasons that you "need it to be a varchar" ?? Do
you realize how much extra work you are creating for yourself? Do you
realize that you can have your users enter data in one format, and
convert it to another format for MySQL? Do you realize you can use
DATE_FORMAT() in your q
Come to think now, you are all right about making the field
auto_increment, instead of asking the DB which one is the following
number. It's just that I have a pretty large old DB in which this field
is NOT in sequence and should be imported before I keep designing the
scripts.
Thanks to all of y
> I have a db field, type varchar, that is actually a 'date'
> string formatted as dd-mm-. I used type 'varchar' (rather than
> type 'date') since I had to accomplish other things with it.
> Now, however, I do need to extract the Year (the last four
> digits in the array).
Ummm, are
How about just
SELECT RIGHT(fieldname,4) FROM tablename
---John Holmes...
> -Original Message-
> From: Lazor, Ed [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, June 12, 2002 7:09 PM
> To: '[EMAIL PROTECTED]'; [EMAIL PROTECTED]
> Subject: RE: [PHP] Extracting from an Array
>
>
> $sql =
Thanks Ed,
Slight change -- I forgot that the delimiter was a 'space'. Anyway, I still
get the first letter of the last part of the array. I guess what I need is
something that specifies a range as in something like this:
$Year = $Date[3-whatever?];
Seems rather odd that with the string as va
I am intrested in creating a chatroom entirely in PHP involving streaming text. Where
can someone help me to find such a means of doing so?
Thanx
Phil
http://valsignalandet.com
Make it when it's uploaded. Then you make just one user wait on the
server, instead of the multitude of users just viewing pages...
---John Holmes...
> -Original Message-
> From: Shane [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, June 12, 2002 4:10 PM
> To: Philip Hallstrom
> Cc: php
>
I checked out the version of Date by Baba, but I don't see Calc.php in
the Date subdirectory on cvs.php.net.
David Norman - deekayen
http://atthat.com/
__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com
Yeah, I found the problem, It was adding a "order by lower(title)" in
another class which I forgot about when I was trying to test the query.
so it works fine now. So yep, using, joines, case, order bys,
lowers,inheritance in php/postgres all work fine.
1LT John W. Holmes wrote:
>Double che
Just note that this will fail miserably unless you are locking your
tables around the SELECT MAX() and the INSERT. What if 3 different users
all select the same MAX() and try to insert the next number?
You really need to re-think your database design if you have to do it
this way.
---John Holmes
what's you're after is
select max(id) from table
-Original Message-
From: David Freeman [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 13, 2002 9:36 AM
To: 'PHP General List'
Subject: RE: [PHP] Querying for MAX
> What I'm trying to do here is not inside PHP nor MySQL books
> I hav
Hello,
On 06/12/2002 05:42 PM, Septic Flesh wrote:
> any way to send an email with php without using SENDMAIL ??? in a linux
> (slack8) ?
You can use SMTP but not with mail() under Linux.
If you want to use SMTP, you may want to try this class.
http://www.phpclasses.org/smtpclass
--
Regar
> What Im trying to do here is not inside PHP nor MySQL books
> I have. I need to query the DB to look the max result in a
> column. That is, if I have affiliate members with ID going
> from 1 to 10, get the query to know that the last member
> added was 10 so I can add member 11 witho
It is $_SERVER["LOGON_USER"]. You have to enable Integrated Windows
Authentication under Directory Security in IIS>
---John Holmes...
> -Original Message-
> From: Barajas, Arturo [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, June 12, 2002 12:43 PM
> To: '[EMAIL PROTECTED]'
> Subject: [PH
The best way to do this is with an HTTP header called Location.
It is used like this. If page1.php contains a form that submits to
page2.php, you will want to handle the form data with page2.php, and
when you're finished, have a line that looks like this:
header("Location: http://yoursite.org/
Create seperate documents: one to display the form and another to process
the form.
add.php // displays new form
add_handler.php // process form input
On the form processing, check for the presence of HTTP_POST_VARS before
proceeding.
if (isset($HTTP_POST_VARS))
{
##
Hello group,
I need a good solution to prevent sending form data to server after hiting
refresh. How can PHP know that user hit refresh and sent data that already
have been stored in database (without querying database)?
Remek
--
PHP General Mailing List (http://www.php.net/)
To unsubscrib
$sql = "select fieldname from tablename";
$Results = mysql_query($sql, $DBLink);
$Row = mysql_fetch_array($Results);
$fieldname = $Row["fieldname"];
$Date = explode("-", $fieldname);
$Year = $Date[2];
> -Original Message-
> From: Andre Dubuc [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday,
At 01:39 PM 6/12/02 , Barajas, Arturo wrote:
> > From: Lazor, Ed [mailto:[EMAIL PROTECTED]]
>
>Hi, Ed.
>
> > and I'm pretty sure I'm not the only one he's helped. That
> > garners even more respect - IMHO.
>
>I'm new on the list, so I really don't know Rasmus, or what he does. As
>far as I've re
I have a db field, type varchar, that is actually a 'date' string formatted
as dd-mm-. I used type 'varchar' (rather than type 'date') since I had to
accomplish other things with it.
Now, however, I do need to extract the Year (the last four digits in the
array). I've tried to access the a
> Being relatively new to php, I discovered the following
> after about 2 hours of debugging last night and was wondering why???
>
> I had the following code:
>
> if ( $num_results = 0 )
> {
> echo "no records found";
> }
> else
> {
> for ($i=0; $i < $num_results; $i++)
http://www.php.net/manual/en/function.mktime.php
-Original Message-
From: suman [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 12, 2002 3:20 PM
To: [EMAIL PROTECTED]
Subject: [PHP] how can i insert date
hi
i have a date,month and an year what is the function in php that i can i use
t
You're looking for the mktime function.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 11, 2002 6:42 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Converting week number to unix timestamp
How can I convert the week number(i.e. 1 - 52) to a UNIX Times
I'm not sure I completely understand what you're asking, but taking a
guess...
... assuming you're just wanting to work with the data...
... and assuming you're creating a results set from your db query, start
with this code:
$Results = mysql_query($sql, $DBLink);
Within your function, you ca
hi
i have a date,month and an year what is the function in php that i can i use
to convert the 3 vars into a date and insert into a postgres db.
bye
suman
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
When I try to use this SELECT MAX(column) AS amount FROM table; with
PHP, the result I get is always: "Resource id #2" and not the number I
expect... but if I run this at the mysql command line, it shows the
expected number/value. What is that?
César Aracena
IS / MCSE+I
Neuquén, NQN
(0299) 156-35
How can I convert the week number(i.e. 1 - 52) to a
UNIX Timestamp?
Thanks
JJ Harrison[EMAIL PROTECTED]www.tececo.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
take the following html code
Now when that is created by a php script the value that is passed back is
the following.
myimg.x="Click loc X"&myimg.y="Click loc y"
I could leave the name attribute off and I get an x/y value set that I can
use for some math functions I have. The problem is
When I try to use this SELECT MAX(column) AS amount FROM table; with
PHP, the result I get is always: "Resource id #2" and not the number I
expect... but if I run this at the mysql command line, it shows the
expected number/value. What is that?
César Aracena
IS / MCSE+I
Neuquén, NQN
(0299) 156-35
Super
Thanks a lot.
/Håkan
"Miguel Cruz" <[EMAIL PROTECTED]> skrev i meddelandet
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I usually just grep through the one that comes with Apache; it's fairly
> thorough. You might find it in /usr/local/apache/conf/mime.types
>
--
PHP General Mailing L
If I had the choice I would make the thumbnail when it gets uploaded using
the netpbm stuff (netpbm.sourceforge.net). I've found netpbm makes *much*
nicer and smaller (file size wise) thumbnails than GD.
-philip
On Wed, 12 Jun 2002, Shane wrote:
> I have read warnings that this (imagecreatefro
Point the php.ini to a smart host that will accept the connections. We
do that on our Linux boxes at the office. All mail passes to a Notes
server.
On Wed, 12 Jun 2002, Septic Flesh wrote:
> any way to send an email with php without using SENDMAIL ??? in a linux
> (slack8) ?
>
> thanks in
I have a line class that I'm using to draw a line graph of up to 5 lines.
Since I query the db for each of those lines (with a # as lineNum), my code
to take everything out of the fetch_arrays is fairly cumbersome. I use this
code in 4 different programs (the graph, the printable graph, the data
Why not use while to loop through the shopping cart and add items to the
message variable?
$message = "
Here is your order:
";
while ($Row = mysql_fetch_array($Results))
$message .= "item description information";
$message .= "
Thanks for your order...
";
-Original Message-
Anyone have any opinions or real world experience using the function
"imagecreatefromstring?"
Not much out there on the web? I am looking for the best method for making
"thumbnails" from my binary DB data.
Thanks again group!!!
- NorthBayShane
--
PHP General Mailing List (http://www.php.net/)
I have a function in my script which sends an e-mail to my client
company with details of a shopping cart order. I was wondering if it is
possible to use a while loop inside the mail function so that I can send
details of multiple items in one e-mail.
Here is the code I am using. And bear in mi
1 - 100 of 213 matches
Mail list logo