[PHP-DB] Dynamic Variable names

2003-03-09 Thread David Rice
Just a quick question about dynamic variables would like to end up with a variable called $tips_1 $tips_2 ... $tips_n where n is the value of the variable $sid i have tried $tips . '$sid'; and other variants, but i can't get one that doesn't return a parse error or T_VARIABLE error.

[PHP-DB] Re: Dynamic Variable names

2003-03-09 Thread Adam Royle
It's probably better to use arrays. $tips[0] = value; $tips[1] = value; $tips[2] = value; Although, if you REALLY want dynamic variable names. $i = 1; $varname = 'tips_'.$i; $$varname = value; this will make a variable like below: $tips_1 = value; But like I said before, it's better to use

[PHP-DB] Problem connecting with PostgreSQL in OS X

2003-03-09 Thread Eric Marsh
Good Morning, I've got a J2EE program I've been working on for some time that has been connected to a FrontBase DBMS. Well as a result of my spending some time exploring the open source world I've decided to to change database to PostgreSQL. I'm developing on Mac OS X and found a page on the

[PHP-DB] Multidimensional arrays / Dynamic variables

2003-03-09 Thread David Rice
Okay the problem is adding another result to the multi-dimensional array When i perform var_dump on the returned varialbe $tips i get array(1) { [2]= array(1) { [0]= string(10) 2003-03-07 } } I know that there are 2 results missing here for when the key of the array is 1

[PHP-DB] How can I divide the loop result into 2 columns???

2003-03-09 Thread Shavkat
I have a page to show all the category fields, so I've made it, but I want the results to be divided into several columns, Please help me if possible. Regards Shavkat Berdiev. -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DB] How can I divide the loop result into 2 columns???

2003-03-09 Thread Shavkat
I have a page to show all the category fields, so I've made it, but I want the results to be divided into several columns, Please help me if possible. Regards Shavkat Berdiev. -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DB] How can I divide the loop result into 2 columns???

2003-03-09 Thread Shavkat
I have a page to show all the category fields, so I've made it, but I want the results to be divided into several columns, Please help me if possible. Regards Shavkat Berdiev. -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DB] displaying multiple search results

2003-03-09 Thread Gerry Smith
Help please I enclose my code examples of two pages. One to gert search data from a user which uis POSTed to the second page where it's validated and displayed. The prev/next only works for the first 20 records. When i click next, my page reloads and re applies my validation rules and outputs

[PHP-DB] receiving date elements from Access

2003-03-09 Thread Jan Bro
Hi, i've posted this in the general list, but I've got no answer. Well I'm still hoping there is one ;-) I've got the following code: $datum_beginn=2002-12-12; $datensatz=odbc_exec($db_connection,select * from Termin where Datumsfeld '#$datum_beginn#'); I get an error message that data in

[PHP-DB] need help with foreach()

2003-03-09 Thread David Rice
Okay, i have two arrays, $tips and $staff $tips has a key date (which is the date of the first day of the week, the second result in the array has the key of the second day of the week etc... ) and the value is a floating point decimal. $staff also has a key date and the value is an integer,

[PHP-DB] Re: need help with foreach()

2003-03-09 Thread Fredrik de Vibe
[EMAIL PROTECTED] (David Rice) writes: Okay, i have two arrays, $tips and $staff $tips has a key date (which is the date of the first day of the week, the second result in the array has the key of the second day of the week etc... ) and the value is a floating point decimal. $staff also

Re: [PHP-DB] need help with foreach()

2003-03-09 Thread David Rice
Hey thank's for the ideas but neither of them work, doh... Okay fredrik I know your idea won't work cos list only works with numericaly indexed arrays, both the arrays that i am using are indexed by date. (it produces a parse error when run) = while(list($d, $t) =

Re: [PHP-DB] need help with foreach()

2003-03-09 Thread Fredrik de Vibe
[EMAIL PROTECTED] (David Rice) writes: Hey thank's for the ideas but neither of them work, doh... Okay fredrik I know your idea won't work cos list only works with numericaly indexed arrays, both the arrays that i am using are indexed by date. You really had me wondering there for a moment.

[PHP-DB] need to pass info in URL

2003-03-09 Thread Stephen K Knight
Is there a way to pass a value from on html page to another on a different server through a URL and have that value input into a form. The value trying to be passed is a record id from a database. In Kindness Stephen -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP-DB] need to pass info in URL

2003-03-09 Thread Rich Hutchins
Usually, setting the method property to GET in your HTML form will do the trick. It will cause all of the values in that particular form to be passed along in the URL. It's a really basic HTML concept. Not sure if you're looking for something else though since this is a PHP-DB mailing list?

Re: [PHP-DB] receiving date elements from Access

2003-03-09 Thread Paul Burney
on 3/9/03 4:42 PM, Jan Bro at [EMAIL PROTECTED] appended the following bits to my mbox: $datum_beginn=2002-12-12; $datensatz=odbc_exec($db_connection,select * from Termin where Datumsfeld'#$datum_beginn#'); I get an error message that data in criteria doesn't match. (free translation) The

[PHP-DB] PHP to mysql to email

2003-03-09 Thread JeRRy
Hi, I have a PHP page that writes to a mysql database. Now I have got that bit to work well. Now I want to send out an email once a person submits the details. So on the database I grab fields like name, gender, email etc... Now I want to grab the email and send out an email something like

[PHP-DB] Passing value in URL to Form

2003-03-09 Thread Stephen K Knight
I have managed to pass information through a URL and extract it and insert it into a form on a php document. Can this be done for an html document? Passing the value through the URL to an html page with form and then through a URL again into a php doc. I tried the same method I used in the php

Re: [PHP-DB] receiving date elements from Access

2003-03-09 Thread Jan Bro
oh, i've forgot to mention, I've already tried that, with the same result, sorry my mistake. Even 12.12.2002 brings back the same result. It doesn't make a difference if I use # or not. But thx anayway, i'm sure it is some dumb mistake i made. Jan on 3/9/03 4:42 PM, Jan Bro at [EMAIL PROTECTED]

Re: [PHP-DB] PHP to mysql to email

2003-03-09 Thread Jason Wong
On Monday 10 March 2003 10:44, JeRRy wrote: Now name is fetched from the name they give on the form. So how would I send an email out automatically once they submit it? mail() Also, but not really required yet but ideas appreciated, if the email BOUNCES is their a way to remove the entry

[PHP-DB] Away on a trip

2003-03-09 Thread Nick . Hajek
I will be out of the office on the afternoon of Friday 3/7. Please contact Ed Ortmeier or George Rayman for anything that can't wait until Monday. Nick -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DB] need help with foreach()

2003-03-09 Thread Jason Wong
On Monday 10 March 2003 08:10, David Rice wrote: Hey thank's for the ideas but neither of them work, doh... Okay fredrik I know your idea won't work cos list only works with numericaly indexed arrays, both the arrays that i am using are indexed by date. (it produces a parse error when run)