Search found 149 matches

by Tubbietoeter
Mon Nov 08, 2004 9:17 am
Forum: PHP - Code
Topic: Adding row counts to generated drop down menu list?
Replies: 5
Views: 598

Basically you have to loop for each "Year", do a count on the database and then print the results as an option value. // fetch all years from database $year_array= ... foreach $year in $year_array { // fetch the count for this year $count = ... print("<OPTION VALUE = "$id"> ...
by Tubbietoeter
Fri Oct 29, 2004 7:44 am
Forum: Databases
Topic: Timezones in sybase databases
Replies: 2
Views: 358

Thanks, I guess this will do. :)
by Tubbietoeter
Fri Oct 29, 2004 5:42 am
Forum: Databases
Topic: Timezones in sybase databases
Replies: 2
Views: 358

Timezones in sybase databases

Hi, I have a sybase-based database here (Micromuse Netcool Object Server) and I want to convert the dates that are stored in this DB on UTC into a different timezone the user can chose before displaying the output on the web. However, until now I have not found a way to achieve this. Does someone ha...
by Tubbietoeter
Fri Oct 29, 2004 3:06 am
Forum: PHP - Code
Topic: Convert date to a different timezone
Replies: 1
Views: 323

Convert date to a different timezone

Hi,

I couldn't find a function to convert dates to different timezones.
Do you know how to achieve this?
I need to allow users on a website to chose their local timezone and display the dates in that timezone. Server time is UTC.

Thanks,

Steff
by Tubbietoeter
Fri Oct 29, 2004 2:26 am
Forum: PHP - Code
Topic: content from DB into dropdown menu (content has quotes)
Replies: 4
Views: 1220

try str_replace ... find details on php.net
by Tubbietoeter
Tue Oct 26, 2004 4:04 am
Forum: PHP - Code
Topic: Storing passwords in Oracle
Replies: 5
Views: 697

Thanks all. That is what I needed to know.

So a varchar2 datatype should be fine for Oracle then. Cool.
by Tubbietoeter
Mon Oct 25, 2004 4:12 am
Forum: PHP - Code
Topic: placing images in rows
Replies: 2
Views: 599

As far as I understand you, you need this logic:


$x=0;

while (get_mysql_results) {

if ($x==4) {
// print break
$x=0;
}

// print item

$x++
}
by Tubbietoeter
Mon Oct 25, 2004 4:05 am
Forum: PHP - Code
Topic: Storing passwords in Oracle
Replies: 5
Views: 697

Storing passwords in Oracle

Hi, I want to keep users to a web site in a database. The passwords must be encrypted. If the user logs in, the password he entered must be compared to the password that is stored in the database. I haven't found an Oracle function to encrypt and decrypt passwords, so I guess I would have to do that...
by Tubbietoeter
Thu Oct 21, 2004 8:48 am
Forum: PHP - Code
Topic: Looking for ready-to-go charts and diagrams
Replies: 6
Views: 627

@Tim: true, those look way better. PanaChart was just the first real free thing I've found. Thanks for the links I'll have a look at it. @Sami: You are right, but it will not be that many users. This is about availability measurements of some of our systems and giving some (graphical) overviews. I m...
by Tubbietoeter
Thu Oct 21, 2004 6:14 am
Forum: PHP - Code
Topic: Mathmatical Operators
Replies: 4
Views: 569

Write yourself a function for this and evaluate $Operator within the function.
by Tubbietoeter
Thu Oct 21, 2004 6:06 am
Forum: PHP - Code
Topic: Looking for ready-to-go charts and diagrams
Replies: 6
Views: 627

could link to the gd image useing the image tag <img src="gd.php"> you can also pass the vars via GET, i.e. gd.php?x=45&y=12. I would NEVER EVER have thought of something like that but actually it makes sense ... :lol: I'm gonna try it right away, thanks a lot!! PHP can really be cool...
by Tubbietoeter
Thu Oct 21, 2004 4:09 am
Forum: PHP - Code
Topic: Looking for ready-to-go charts and diagrams
Replies: 6
Views: 627

Looking for ready-to-go charts and diagrams

Hi there, I want do display some line-charts and found a tool called "PanaChart". This is really neat, easy to configure and all, but unfortunately is sends "Header('Content-Type: image/png');" which doesn't allow you to put HTML code around the graph. Now it is not really conven...
by Tubbietoeter
Thu Sep 11, 2003 5:45 am
Forum: General Discussion
Topic: Views on female programers
Replies: 42
Views: 7234

The job situation for programmers in Germany sucks. There just are no jobs. It doesn't help being a good programmer and hard worker either, since someone is always better and faster. Unless your younger than 25 with job experience of 35 yrs, it looks quite bad ... Being a woman doens't help you eith...
by Tubbietoeter
Tue Aug 26, 2003 8:34 am
Forum: PHP - Code
Topic: help using shell scripts as command line args
Replies: 4
Views: 656

try shell_exec
by Tubbietoeter
Tue Aug 26, 2003 5:35 am
Forum: PHP - Code
Topic: Passing arrays ... I'm going nuts here ...
Replies: 3
Views: 783

Passing arrays ... I'm going nuts here ...

Hi guys ... I got a script that does some things and has the results in an array. when a user clicks a button, a new frameset has to be loaded; top is navigation and bottom content. now, i need to pass the values of the array to the navigation. first i pass the array via POST to the frameset. there ...