Search found 97 matches

by Milan
Thu Jun 22, 2006 7:09 pm
Forum: PHP - Code
Topic: Database problem that's driving me crazy
Replies: 2
Views: 420

true, sorry about that.
by Milan
Thu Jun 22, 2006 6:59 pm
Forum: PHP - Code
Topic: Database problem that's driving me crazy
Replies: 2
Views: 420

Database problem that's driving me crazy

i have a filed in the table called NDA and a simple condition like this: if ($row_Recordset3['NDA']==1) { print "<table width='450' border='0' cellspacing='0' cellpadding='0'><tr><td width='305' valign='top'><span class='title1'>"; else { } Problem is that it does not work. Is there someth...
by Milan
Thu Jun 22, 2006 12:20 pm
Forum: PHP - Code
Topic: logic related question
Replies: 8
Views: 823

thanks for all your help!
by Milan
Wed Jun 21, 2006 8:03 pm
Forum: PHP - Code
Topic: logic related question
Replies: 8
Views: 823

Nothing short of their online manual and The Mighty Google Smile
True but i read on the bus :)
by Milan
Wed Jun 21, 2006 7:55 pm
Forum: PHP - Code
Topic: logic related question
Replies: 8
Views: 823

shorter

Wnen i enter a hard coded value it works. weird. In short, this is what i am trying to do, i have a field "neednda" in the table, and i need to display a HTML section if the value is 1 and hide it if the value is 0. Something is wrong in the code i have: if ($row_Recordset3['NDA']!='0') { ...
by Milan
Wed Jun 21, 2006 7:43 pm
Forum: PHP - Code
Topic: logic related question
Replies: 8
Views: 823

thanks, that explained a lot.

Do you have any idea why it returns a blank value?

thanks.
by Milan
Wed Jun 21, 2006 7:39 pm
Forum: PHP - Code
Topic: logic related question
Replies: 8
Views: 823

logic related question

i have defined a database connection mysql_select_db($database_pickageek, $pickageek); $query_Recordset3 = sprintf("SELECT NDA FROM awapr WHERE `session` = '%s'", $colname_Recordset3); $Recordset3 = mysql_query($query_Recordset3, $pickageek) or die(mysql_error()); $row_Recordset3 = mysql_f...
by Milan
Wed Jun 21, 2006 5:28 pm
Forum: PHP - Code
Topic: Weird things with if statement or "how to lose your min
Replies: 18
Views: 984

LOL !

i should get some sleep, i was looking at it for like an hour.
by Milan
Wed Jun 21, 2006 4:43 pm
Forum: PHP - Code
Topic: Weird things with if statement or "how to lose your min
Replies: 18
Views: 984

I guess you are right, I just want to say thanks for all the help. Now it writes in the table but it writes "5001000" this is the code: $sess = $_GET['session']; mysql_select_db($database_pickageek, $pickageek); $query3= 'UPDATE `awapr` SET `pricemin` = '; switch($row_Recordset2['ptype']) ...
by Milan
Wed Jun 21, 2006 2:21 pm
Forum: PHP - Code
Topic: Weird things with if statement or "how to lose your min
Replies: 18
Views: 984

now when i compare that with my code, i am just depressed 8O

lol thanks guys!
by Milan
Wed Jun 21, 2006 2:03 pm
Forum: PHP - Code
Topic: Weird things with if statement or "how to lose your min
Replies: 18
Views: 984

AWESOME !
by Milan
Wed Jun 21, 2006 1:35 pm
Forum: PHP - Code
Topic: Weird things with if statement or "how to lose your min
Replies: 18
Views: 984

ohhhh i see it now,

human stupidity knows no limits. :oops:

thanks !
by Milan
Wed Jun 21, 2006 1:22 pm
Forum: PHP - Code
Topic: Weird things with if statement or "how to lose your min
Replies: 18
Views: 984

I think i do know what you are trying to say but i still dont get it why it is tied only to the last IF statement, shouldn't it check the first one and then set the query if true and if false move to the next one?
by Milan
Wed Jun 21, 2006 12:51 pm
Forum: PHP - Code
Topic: Weird things with if statement or "how to lose your min
Replies: 18
Views: 984

Weird things with if statement or "how to lose your min

i have a simple, dumb IF statements: $type = $row_Recordset3['ptype']; mysql_select_db($database_pickageek, $pickageek); if ($type=="unkn"){ $query3 = "UPDATE `awapr` set `pricemin` = '1' where `session` = '$sess'"; } if ($type=="unkn"){ $query3 = "UPDATE `awapr` s...
by Milan
Mon Jun 19, 2006 6:23 pm
Forum: PHP - Code
Topic: how to close window without JabbaScript
Replies: 5
Views: 306

Re: how to close window without JabbaScript

Is there a php function that will close the current window? I would like to window to be closed after user upload the file but i dont want to use button with JavaScript for it, did anyone had a same problem? thanks. PHP is a server-side application. Closing windows always takes place on the client-...