Re: [PHP] Date Question

2006-03-17 Thread adriano ghezzi
on the fly: use date_format function in select statement, format should be a string like %d%m%y not sure about it check on manual. hth adriano 2006/3/17, Tom Chubb <[EMAIL PROTECTED]>: > > Please can you help me. I've created a page where problems are posted into > a > database and I am usin

Re: [PHP] Str to Int

2006-01-20 Thread adriano ghezzi
well I don't well understand the problem hope these two snippets can solve your problem: i tested them seems fine file 1 form.php enter tour code   enter tour code user code     file 2 -- get_card.php Nuova pagina 1

Re: [PHP] insert to DB

2005-12-26 Thread adriano ghezzi
pls could you point out which instruction should insert record in db thanks... 2005/12/18, Anasta <[EMAIL PROTECTED]>: > > It just wont insert new data into DB--any ideas as i have gone over and > over. > > > > mysql_connect("localhost","anasta","silteren"); > > mysql_select_db("mytipperv1"); >

Re: [PHP] Help with the copy command...

2005-12-16 Thread adriano ghezzi
just put the "wrong" lines in a file and run it from the shell with php -f you should get more info about what's going wrong hyh ciao! 2005/12/16, Tim Meader <[EMAIL PROTECTED]>: > > What difference are you seeing in the files I give in the example? Are > they not identical paths? > > Thanks. >

Re: [PHP] Declaring arrays? Good practice?

2005-12-14 Thread adriano ghezzi
imho I agree always declare all kinds of variables before using in the specific situation you have to consider that you are using two different variables rthe $foo inside the function and the $foo outside the function I think its' correct to declar both, imho you should use different names if y

Re: [PHP] question

2005-11-27 Thread adriano ghezzi
server and client are logical definitions, in the environment here normally discussed these are meanings server : a pc (cpu) where a web server is running (usually apache) and php is parsing pages served to the client client: is a pc (cpu), normally remote, who is asking for a page to the server

Re: [PHP] Re: $_GET and $_POST arrays not working

2005-11-25 Thread adriano ghezzi
could you give us all source lines, just cut and paste ? hy ag. 2005/11/26, Matt Monaco <[EMAIL PROTECTED]>: > Somewhat, but its what you need to do for the post and get arrays to work. > What you need to do is make sure check the values in the global variables > before you use them. For exampl

[PHP] ignore: this is a test

2005-11-15 Thread adriano ghezzi
bye -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php session in ie

2005-11-12 Thread adriano ghezzi
to be redirected to login must have at least one of ( if(!isset($_SESSION['student_username']) && !isset($_SESSION['student_password'])) ) not set, which one (or both) fail under i.e. ??? hth ag. 2005/11/11, sunaram patir <[EMAIL PROTECTED]>: > Hi, i am having problem with internet explorer

Re: [PHP] convert array to HTML GET request

2005-10-02 Thread adriano ghezzi
if i understand well you need to get an array from html post if you use the same name for your html fields you automatically have an array in $_POST eg input type=text name=myfield value="field_1" input type=text name=myfield value="field_2" you'll get the array ar_myfield = $_POS['myfield']

Re: [PHP] creating a shopping cart.

2005-10-01 Thread adriano ghezzi
et up your persistent system unless you trust a lot sessions that basically is a file on disk but as everything it's up to you I really suggest you to go on db I can't see any disadvantage bye 2005/10/1, Robert Cummings <[EMAIL PROTECTED]>: > On Sat, 2005-10-01 at 11:41, adria

Re: [PHP] creating a shopping cart.

2005-10-01 Thread adriano ghezzi
you need a db based approach, just setup a couple of tables in mysql items table one record per item current cart table one record per each item added to cart with unique session id order table one record per each item ordered with unique order id you'll transfer records here from current cart

Re: [PHP] exec command fails in php, works in the command line

2005-09-21 Thread adriano ghezzi
did you tried to run the script from the shell as www-data user ? (if not su www-data) an then run the script may be something regarding permission hth 2005/9/21, John Nichel <[EMAIL PROTECTED]>: > [EMAIL PROTECTED] wrote: > > I have two programs on two servers, and they both have similar proble

Re: [PHP] professional code quick tip ---last---

2005-09-20 Thread adriano ghezzi
$f=3; if ( $ar[0]>18) $f=4; 2005/9/21, Robert Cummings <[EMAIL PROTECTED]>: > On Tue, 2005-09-20 at 19:20, adriano ghezzi wrote: > > hy guys this night I'm quite tired > > > > I need a little tip >

[PHP] professional code quick tip

2005-09-20 Thread adriano ghezzi
hy guys this night I'm quite tired I need a little tip ok var n could be from 0 to 12 var f must be set f=1 if012 due to my fatigue I coded four if-if else statement, in other languages it is possible use conditional epression in switch case like switch $n case (0http://www.php.net/)

Re: [PHP] BOOKING SYSTEM

2005-09-20 Thread adriano ghezzi
well I did it in the past, at the end after a lot of tests and simulation i decided for warehouse table id_hotel, date, num_total_rooms, num_booked_rooms this is day by day handling it is really flexible you can satisfy each kind of request with very simple queries you also gain more flexibility

Re: [PHP] Chat module

2005-09-20 Thread adriano ghezzi
should be not too difficult to setup using a couple of web pages running on localhost e socket hope help 2005/9/20, Vinicius Mapelli Schmaedek <[EMAIL PROTECTED]>: > Somebody knows a chat module to be used for conversation between only > two people? > > PS: sorry, my english is not very good

Fwd: [PHP] linux embedded no db which way(2)

2005-09-14 Thread adriano ghezzi
-- Forwarded message -- From: Jasper Bryant-Greene <[EMAIL PROTECTED]> Date: 14-set-2005 9.01 Subject: Re: [PHP] linux embedded no db which way To: php-general@lists.php.net adriano ghezzi wrote: > guys hi all, quite new in this list > I'm involved in a proj

[PHP] linux embedded no db which way

2005-09-13 Thread adriano ghezzi
guys hi all, quite new in this list I'm involved in a project with php in a linux embedded environment, it's impossibile to use a db server, any suggestion on how to handle few hundreds of simple records ? tia - happy work with php! -- PHP General Mailing List (http://www.php.net/) To un