s and leave messages
for all to see.
Thanks in advanced,
Cesar Aracena
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
just 1, 2, 3,
4...
This one's has no rush... Thanks in advanced.
Cesar Aracena
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
function above it.
Cesar Aracena
"Chris Shiflett" <[EMAIL PROTECTED]> escribió en el mensaje
news:[EMAIL PROTECTED]
> --- Cesar Aracena <[EMAIL PROTECTED]> wrote:
> > I have the following code to first start a session and then write a
> > cookie... is that so
As extrange as can be, the echo function simply returns the following:
31536000);
but not the setcookie, $varname and $value parts... What's this? Do I havve
a missconfiguration in php.ini file?
Thanks,
Cesar Aracena
"Larry Brown" <[EMAIL PROTECTED]> escribió en e
t;] == "yes")
{
$id = $_SESSION["user"];
setcookie("memberlogin", $id, time()+60*60*24*365);
header("Location: $CFG->wwwroot");
exit();
}
else
{
header("Location: $CFG->wwwroot");
exit();
}
What can it be? No error is posted.
Thanks in adv
Thanks a lot :)
"Gerard Samuel" <[EMAIL PROTECTED]> escribió en el mensaje
news:[EMAIL PROTECTED]
> On Friday 02 January 2004 02:11 am, Cesar Aracena wrote:
> > Hi all,
> >
> > can somebody remind me how to propperly insert not just one but many
> > va
Hi all,
can somebody remind me how to propperly insert not just one but many
variables into a $_SESSION handle? php manual doesn't explain it very well.
It just says that it can be done.
Thanks in advanced,
Cesar Aracena
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
It worked but not at all. I placed the setcookie() function in a folder
that's under the main one. When displaying the cookie like you told me, now
appears right just in the .php files under the same folder of the
setcookie() function, but not in the other (like the site's main pages)...
¿?¿?¿?
I
scribió en el mensaje
news:[EMAIL PROTECTED]
> Try putting the exit() before the redirect, and see if there's an error
when
> you attempt to set the cookie.
>
>
> "Cesar Aracena" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > Hi all,
Hi all,
My head is about to explode here... I am trying to setup a cookie for every
new user that registers in my site and right after that, to send them to the
home page... is that so difficult? apparently yes... It does redirect, but
when I try to "echo" the $MemberId cookie with:
echo $_COOKIE
Well Brad... it worked. Guess I forgot to use well the IF statements.
Thanks.
"Brad Pauly" <[EMAIL PROTECTED]> escribió en el mensaje
news:[EMAIL PROTECTED]
> On Wed, 2003-12-31 at 11:18, Cesar Aracena wrote:
> > Hi all,
> >
> > I'm trying to create
concuerdan.";
$errors++;
}
}
}
What is wrong? Thanks in advanced and happy new year to all.
Cesar Aracena
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
best experience?
Thanks all,
Cesar Aracena
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
scribió en el mensaje
news:[EMAIL PROTECTED]
> On Sunday 28 December 2003 11:17 pm, Cesar Aracena wrote:
> > $fp = fopen("../files/welcome.txt", "a+");
> >
>
> Change to
> $fp = fopen("../files/welcome.txt", "r");
>
> Use &
fclose($fp);
}
What can be wrong? Thanks in advanced,
Cesar Aracena
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ot;");
echo ("");
echo ("2002 WebWorkz Network, Inc. All Rights Reserved.");
}
}
The domain variable is $query and the extension I want to add is passed as
$ext... any thoughts?
Thanks in advanced.
"Cesar Aracena" <[EMAIL PROTECTED]> escribió en el men
Hi all,
Anyone knows about anyPHP script to add a domain check option to a web site
like almost any hosting company has? I'm looking into hotcripts.com but
everything offered serves also like a registering script for the available
domains and I just want to inform my visitors if the domain they en
Hi all,
I have an issue here. I'm making a english/spanish site and want the browser
to remember their preference with a cookie. The first time a visitor comes
into the site, they will be taken to the english part (www.site.com/eng/)
and when someone clicks over the "Spanish" link, I want the cook
ther than using mktime() which can output incorrect
dates.
Thankis to both and everyone.
"Cesar Aracena" <[EMAIL PROTECTED]> escribió en el mensaje
news:[EMAIL PROTECTED]
> Hi all,
>
> I'm making a site and need some tables from wich I can extract date, time
> and/
Hi all,
I'm making a site and need some tables from wich I can extract date, time
and/or date/time later with PHP and I neved had very clear the way the
possible formats work with each other so my question is what is the best (or
recommended) method to store dates and/or times in a MySQL DB for PH
"Justin Patrin" <[EMAIL PROTECTED]> wrote
news:[EMAIL PROTECTED]
> Use mysqldump in a system() call, redirect it to a temp file, then read
> it back and out to the browser.
>
> Or, you could use popen to get the output piped back into php. Make sure
> to check the mysqldump options for things you
GROUP
Neuquen, Argentina
Tel: +54.299.4774532
Cel: +54.299.6356688
E-mail: [EMAIL PROTECTED]
"Ajai Khattri" <[EMAIL PROTECTED]> escribió en el mensaje
news:[EMAIL PROTECTED]
> On Sat, Dec 06, 2003 at 04:39:22PM -0300, Cesar Aracena wrote:
>
> > I am wondering if so
Hi all,
I am wondering if someone could point me to the right functions to use to
make a script to dump all the tables in a specific MySQL DB. I need this to
keep a daily backup from my site as the hackers are screwing up my site very
often these days.
Thanks in advanced,
Hi all,
Does anybody knows how to make a CSV (comma separated values) file with
PHP based on results fetched from MySQL? I need it to import it with
Microsoft Outlook Express.
Thanks in advanced,
Cesar Aracena
www.icaam.com.ar
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe
P]
Any ideas on why this isn't working? In another rows, I say for example
"Name is '.$first_name.'" (without wuotes) and it works just fine but
for the "IF" lines it throws me a parse error... How can I solve this?
I've even tried with double quote with the same results.
Thanks in advanced,
Cesar Aracena
<http://www.icaam.com.ar> www.icaam.com.ar
Sure. One result is 20030918014916. That sound like MMDDHHMMSS to me
right?
Thanks,
Cesar Aracena
www.icaam.com.ar
-Mensaje original-
De: Cody Phanekham [mailto:[EMAIL PROTECTED]
Enviado el: Jueves, 18 de Septiembre de 2003 02:04 a.m.
Para: [EMAIL PROTECTED]
Asunto: RE: [PHP
\de Y H:i:s", $date1);
Any ideas? Thanks,
Cesar Aracena
www.icaam.com.ar
-Mensaje original-
De: Tom Rogers [mailto:[EMAIL PROTECTED]
Enviado el: Jueves, 18 de Septiembre de 2003 01:48 a.m.
Para: Cesar Aracena
CC: [EMAIL PROTECTED]
Asunto: Re: [PHP] MySQL timestamp to desired date fu
quot;";
echo $row[lugar_name]." - ".$row[lugar_specific];
echo "";
echo "";
echo $date2;
echo "";
echo "";
}
How can I do this and make it work?
e just ONE connection request per visitor, is request
a mainfile.php which also declares a function that connects to the DB.
After that is prepared to handle all the queries you want.
HTH,
Cesar Aracena
www.icaam.com.ar
> -Mensaje original-
> De: Shivanischal [mailto:[EMAIL PROTECTED]
>
reports, so at the end of the month I know exactly how
much I have to transfer to each one of my clients.
Thanks for all in advanced,
Cesar Aracena
www.icaam.com.ar
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
>
> > Importance: High
> > Sensitivity: Confidential
>
> Is this being done by your server or by you?
>
By me, because of my Company's policies and requirements. Sorry if it
bothers anyone :)
> > It does print 0 so I guess something must be wrong somewhere else.
My
> > guess is that $row['tota
>
> > This is just a security measure placed there by MS people. It should
> > work after refreshing the page.
>
> But it doesn't...
>
> Are session variables killed when an IE user presses back button?
[Cesar Aracena]
Well, They shouldn't. What are you
what happens.
>
> If you've already done this and it prints :: (as opposed to :0: which
> would indicate a value of zero) then you're sql query is not correct
or
> there are just no rows that match what you're looking for.
>
[Cesar Aracena]
It does print 0 so I guess som
>
> When I push the back buttom in Opera, I get back to the previous
> (database/php-generated) page in my site, but when I'm using IE and
push
> back, I get a message saying that the page isn't valid any more.
>
> Is this an internal IE-issue, or could I make my php
Ok, That's logical, but the thing is that even $x and $n are empty, as
if the result would give a hole bunch of zeros (but it isn't).
Could there be an error in the query or somewhere around that we are all
missing?
Thanks,
Cesar
> function cart_cdqty()
> {
>
> $query = "SELECT SUM(sess_it
Ralph, I tested the function below but the result at the page is:
"CD Quantity: Array"
and not the CD quantity according to file size... Why is the array there
and what it is supposed to be called with to give one or another result?
Thanks,
Cesar Aracena
www.icaam.com.ar
>
Thanks Curt AND Ralph,
This makes it all a lot more clear and easy to understand. And yes, it
makes sense. I'll try it now and see what happens.
What I've never seen before is what you did with:
if($row = mysql_fetch_array($result))
that made me go LOL!!!
Thanks in advanced,
Ces
0.0) {
$x = 5;
}
return $x;
}
Pretty long if someone wants to order 17MBs don't you agree?
Thanks for this,
Cesar Aracena
>
> No, that sounds about right.
>
> So your table should have the following fields:
>
> customer_session_id, ite
. Is it fine or am I too messy?
TXS,
Cesar Aracena
>
> How are you keeping track of items added being added to the shopping
> cart?
>
> -Original Message-
> From: Cesar Aracena [mailto:[EMAIL PROTECTED]
> Sent: Monday, August 18, 2003 7:55 PM
> To: [EMAIL PROTEC
to pass their guard.
HTH
Cesar Aracena
www.icaam.com.ar
> -Mensaje original-
> De: Ben C. [mailto:[EMAIL PROTECTED]
> Enviado el: Lunes, 18 de Agosto de 2003 06:28 p.m.
> Para: [EMAIL PROTECTED]
> Asunto: [PHP] Mail() Problem Sending
>
> I have recently had php i
me with this?
BTW, Using PHP 4+ and MySQL 3+.
Thanks in advanced,
Cesar Aracena
www.icaam.com.ar
Note: The information inside this message and also in the attached files
might be confidential. If you are not the desired receptor or the person
responsible of delivering the message, we notify
_RS['repEmail']."";
?>
Note how the only concatenated string (using periods) is the variable
$row_rep_RS[] and the double quotes inside the HTML link were commented
using a backslash.
HTH,
Cesar Aracena
www.icaam.com.ar
> -Mensaje original-
> De: Creative So
Hi all,
First of all, thanks to everyone who helped me with the "checkbox"
issue. I have an issue here while trying to INSERT INTO a MySQL table a
date in a DATE format (-MM-DD). Obviously saying date(Y,m,d) doesn't
work.
What PHP function should I use?
Thanks in advanced,
It could be a solution but only working with a few items. My list(s)
will be filled up with hundreds of items grabbed automatically out of
another MySQL table... would it help too? Maybe naming the checkboxes
with each item own ID... anyone?
Thanks,
Cesar Aracena
www.icaam.com.ar
> -Mens
when clicking the Next button into a MySQL table. Should I
name all the checkboxes the same, using the item IDs as values and then
use an array to see which ones where selected or maybe another thing?
Thanks in advanced,
Cesar Aracena
<http://www.icaam.com.ar> www.icaam.com.ar
Not
, 20 de enero de 2003 14:41
Para: Cesar Aracena; [EMAIL PROTECTED]
Asunto: Re: [PHP] Loop inside a table
instead of doing that your should do this
$message = "
title goes here
";
for ($x = 0; $x < $num_rows; $x++)
{
$message .= "some stuff";
}
$message .= "
&q
Hi all,
I always make for loops inside tables so I usually don't have problems
with it, but this case is a little different. I'm making a mail program
for my client to receive a mail each time a customer places an order in
his site.
Inside the mail program, I declaring a value called $message whe
an [mailto:[EMAIL PROTECTED]]
Enviado el: lunes, 20 de enero de 2003 2:04
Para: Cesar Aracena
CC: [EMAIL PROTECTED]
Asunto: Re: [PHP] Can I use white spaces?
I suspect (but could be wrong) that you aren't quoting these values in
your forms. Be sure that you are using...
Larry
--
PHP
Hi all,
I've encountered myself trapped into a big mystery this time, and that's
because of some white spaces.
I have a MySql table which I use to store users and visitors
information, but when I want to display this information on screen for
them to see and/or correct, every field that has white
Hi all,
I guess this problem might sound childish for most of you, but I'm
having it right now. I get two numbers from a FORM, one price and one
quantity and I need to make a multiplication with them in order to store
the total amount also as a double expression... I'm trying with:
$totalprice =
I found that the Header already sent problem was caused by the Random
Password Generator I'm using, even if I place this function on the
bottom of the same file I'm trying to open an just call for the result.
So, to avoid this issue, I need another method of generating a random
number or string of
Hi all,
Following Chris's idea on how to handle visitors sessions, I'm trying to
setup a cookie with a randomly generated session ID but it throws me the
"headers already sent" notice but there's nothing above the setcookie
function. Here's part of my code:
getHTMLPassword();
setcookie("sessid",
Hi all,
I'm about to create a site where visitors will be able to search, view,
surf and add items to a shopping cart without logging in to the site,
but will need to do that in order to complete the transaction of course.
What I wonder, is what to use to collect information about the items the
vi
Hi all,
When I make a form in a web site for a visitor to send me some comments,
I use nl2br() to put things like line breaks and see what the visitor
wants me to see.
But what happens if I have a web form to input some text into a TEXT
cell in MySQL and want to retrieve it like I wrote it? Shoul
Hi all,
I'm making a new site for a client and he needs to put several different
menus under a static FLASH menu. The bad part is that every item in the
flash menu leads to different categories and these need different number
of sub menus. I use MySQL & PHP 4. The categories and sub categories are
First, try to complete that query by executing it. You do that by adding
the next couple of lines right after the $query:
$result = mysql_query($query); // supposing you already established the
connection and that you use MySQL.
$num_rows = mysql_num_rows($result); // To count how many matches whe
---Mensaje original-
De: Cesar Aracena [mailto:[EMAIL PROTECTED]]
Enviado el: lunes, 06 de enero de 2003 7:22
Para: [EMAIL PROTECTED]
Asunto: [PHP] Strange problem with MAIL
Hi all,
I've been trying to make my way around a complex mailing system for the
past couple of days with no success, bu
Hi all,
I've been trying to make my way around a complex mailing system for the
past couple of days with no success, but now I noticed that I can't just
send a simple:
mail("[EMAIL PROTECTED]", "My Subject", "Line 1\nLine 2\nLine 3");
I used to make this scripts work all the time before using th
What they mean is to make that line:
$query = "SELECT shops.name FROM shops WHERE name = $name";
Cesar L. Aracena
[EMAIL PROTECTED]
[EMAIL PROTECTED]
(0299) 156-356688
Neuquén (8300) Capital
Argentina
-Mensaje original-
De: Adam French [mailto:[EMAIL PROTECTED]]
Enviado el: viernes, 03
Try by adding a backslash to the : there (..."\: "...)
Cesar L. Aracena
[EMAIL PROTECTED]
[EMAIL PROTECTED]
(0299) 156-356688
Neuquén (8300) Capital
Argentina
-Mensaje original-
De: Adam French [mailto:[EMAIL PROTECTED]]
Enviado el: viernes, 03 de enero de 2003 3:18
Para: [EMAIL PROTECT
uquén (8300) Capital
Argentina
-Mensaje original-
De: Michael J. Pawlowsky [mailto:[EMAIL PROTECTED]]
Enviado el: viernes, 03 de enero de 2003 3:15
Para: Cesar Aracena; [EMAIL PROTECTED]
Asunto: Re: [PHP] Mass-mailing method
Take a look at the sendmail.log for some clues...
But I had
Hi all,
I did a registration page for a customer, and now I'm trying to develop
a way for him to send an e-mail once in a while to the people registered
with him. I did something (shown below) and everything seems to be ok,
but the e-mail never reaches... Can someone find the problem or maybe
poin
Hi all,
Sorry to bother you all, but I need something I haven't used in quite a
long time. Dows anyone remembers the PHP function to fill a number with
zeros until it reaches a desired length?
Thanks in advance,
Cesar L. Aracena
[EMAIL PROTECTED]
[EMAIL PROTECTED]
(0299) 156-356688
Neuquén (8300
Hi all,
This is a fast question. Does anyone remembers how to obtain the ID auto
assigned after an INSERT statement under MySQL?
Thanks in advanced,
Cesar L. Aracena
[EMAIL PROTECTED]
[EMAIL PROTECTED]
(0299) 156-356688
Neuquén (8300) Capital
Argentina
--
PHP General Mailing List (http://www
Now,
the page gets stuck when reaching this level and doesn't process what I
ordered... Any thoughts? Thanks in advance,
Cesar L. Aracena
[EMAIL PROTECTED]
[EMAIL PROTECTED]
(0299) 156-356688
Neuquén (8300) Capital
Argentina
-Mensaje original-
De: John W. Holmes [mailto:[EMAIL
Hi all,
I'm making the administration part of a site which handles categories,
sub categories and products. Inside the "Categories" part, there's a
"List categories" button which gives a list of the categories and sub
categories when pressed. Along with each category, there's a "Delete"
button tha
ECTED]]
Enviado el: miércoles, 18 de diciembre de 2002 8:08
Para: 'Cesar Aracena'; 'Php-General@Lists. Php. Net'
Asunto: RE: [PHP] Javascript var to PHP
Hi Cesar,
> Jon, thanx for the fast response, but the problem is
> that the link is made dynamically from a DB and the va
]
[EMAIL PROTECTED]
(0299) 156-356688
Neuquén (8300) Capital
Argentina
-Mensaje original-
De: Jon Haworth [mailto:[EMAIL PROTECTED]]
Enviado el: miércoles, 18 de diciembre de 2002 7:50
Para: 'Cesar Aracena'; Php-General@Lists. Php. Net
Asunto: RE: [PHP] Javascript var to PHP
Hi all,
I want one of my links to open a brand-new pre defined window using a
javascript (defined in the header) with javascript: launchinfopage();
but I don't know how to pass a variable so the opened PHP file knows
which info to get from MySQL... if I use
launchinfopage(varname=varvalue) how can
Hi all,
I have several tables from which I have to fetch certain products &
categories based on customer selection. The tables are as follows:
Table 1 - Categories
catid (autonum)
catname
Table 2 - Sub categories
subcatid (autonum)
subcatname
Table 3 - Products
prodid (autonum)
prodname
Table
Hi all,
I'm making a site with a dynamic menu based on IF statements and DB
queries, but have this little problem which I can't understand the
reason. My programming method is based upon an application.php file
which controls the hole site and paths, template files for the header &
footer and main
Hi all,
I'm making a site with a dynamic menu based on IF statements and DB
queries, but have this little problem which I can't understand the
reason. My programming method is based upon an application.php file
which controls the hole site and paths, template files for the header &
footer and main
L. Aracena
[EMAIL PROTECTED]
[EMAIL PROTECTED]
(0299) 156-356688
Neuquén (8300) Capital
Argentina
-Mensaje original-
De: Cesar Aracena [mailto:[EMAIL PROTECTED]]
Enviado el: domingo, 24 de noviembre de 2002 23:06
Para: [EMAIL PROTECTED]
Asunto: [PHP] What is wrong here?
Hi all,
I'm
Hi all,
I'm making a site which will reside in a remote server and had several
problems... most of them where solved once I saw that register_globals
are OFF, but now I dont know which other settings are affecting my
scripts. I have trouble with header("Location... because the browser is
NOT redi
Hi all,
I'm having this strange issue with a remote server. I'm trying to create
a session control for administrative use which works fine in my PC but
once I upload these scripts to that server, it doesn't recognize the
$username && $password variables and kick me right into the else{} of
the log
Why don't you send your mailing code so the rest of us can see it, help
you and maybe even learn something from you too...
Cesar L. Aracena
[EMAIL PROTECTED]
[EMAIL PROTECTED]
(0299) 156-356688
Neuquén (8300) Capital
Argentina
-Mensaje original-
De: Duncan Ellwood [mailto:[EMAIL PROTECTE
Hi all,
Before anything else, thanks for the answers to the last request of
mine. Now, I'm trying to make a mailing script which is a very common
task to do, but from this one, my client needs to send one e-mail to all
the recipients stored in a DB every once in a while. I know that is best
to sen
Hi all,
Im quite rusty with this sessions stuff (just came from vacations) and
have this strange problem with a session Im trying to build. Along with
that, Im making my first lines of code with a new portable computer and
maybe PHP or Apache is not well configured
any ideas? The code goes as
Hi Scott,
what you want to do can be acomplished just by telling php what to do in
order... for example run the $query to insert the data into the DB and after
that, run a mail function that sends the mail. IF you want to be more
elegant in your scripting, do the mailing within an IF clause so the
The problem is that I have a remote "rented" server and I don't have access
to these configurations
any other ideas are welcome. Thanks
any ot
- Original Message -
From: "BigDog" <[EMAIL PROTECTED]>
To: "Cesar Aracena" <[EMAIL PROTECTED]
Hi all,
I came back from vacations and forgot some things about queries... can
anyone tell me what is wrong with this? of all the error messages I set up
in the script, none comes back on the page but the record is not saved...
Any thiughts? Thanks in advance,
Cesar
--
PHP General Mailing
81 matches
Mail list logo