[PHP-DB] Re: Session Problem, Please Help.....

2002-05-02 Thread tatang
Hayan AL Mamoun wrote: try this logon.phtml: ? session_start(); $CLIENTID=SOMEVALUE; session_register(CLIENTID); header(Location: clients/editclient.phtml); ? -- clients/editclient.phtml: ? session_start(); echo CLient ID VALUE IS : $CLIENTID; ? the deZayner

[PHP-DB] MySQL Indexing Size

2002-06-27 Thread tatang
hi all I want to know storage required for my database. How i can determine size required for indexing a column ? (my column's type that indexed is varchar(15)) Thanks -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DB] Re: Strange MySQL Query Problem

2002-07-03 Thread tatang
I have a simple form which queries the database based on 2 pop-up menu choices and keywords entered by the user, it passes on the variables as follows: pop-up1=choice1, pop-up2=choice2, textfield=user specified data use : $pop-up1 = $HTTP_POST_VARS[pop-up1]; ... each variables you

Re: [PHP-DB] Check data exists in MySQL

2002-11-20 Thread Tatang Widyanto
if (!$page_count){ $sql = INSERT INTO count VALUES('$var1', '$var2', '0'); } if (!mysql_num_rows($page_count)){ $sql = INSERT INTO count VALUES('$var1', '$var2', '0'); } -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DB] Check data exists in MySQL

2002-11-20 Thread Tatang Widyanto
$sql=SELECT num FROM count where dept='$dept' AND deptsub='$deptsub'; begin of replace -- $result = mysql_query($sql,$db); $page_count = mysql_num_rows($result); # If does not exist in the database, insert a new entry if

Re: [PHP-DB] help about session

2003-02-27 Thread Tatang Widyanto
Put start_session() statement on first line of your code - Original Message - From: do khac duy [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, February 27, 2003 13:31 Subject: [PHP-DB] help about session i can't start session under incule row ex: include(file.php);

[PHP-DB] test ... ignore me

2004-12-15 Thread Tatang Widyanto
test :) -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DB] store procedure on odbc-DB2

2005-02-03 Thread Tatang Widyanto
); odbc_result_all($res); // if no rows found if (!$val) { $sql = call mystore('.$key.'); $res = odbc_exec($conn, $sql); odbc_result_all($res); // -- this give result (with same SP) } } /snip-code Tatang Widyanto -- PHP Database Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP-DB] MYSQL row position.. is it possible (urgent)

2005-03-06 Thread Tatang Widyanto
'SELECT unique_id FROM table ORDER DESC' then loop through the results looking for a matching id, however my table contains thousands of entries, and it's simply not possible do do it that way. Thanks Mike -- Tatang Widyanto Unit Pengkajian dan Penerapan Teknologi Informasi Universitas Brawijaya

Re: [PHP-DB] Unable MySQL db connect Remotely

2005-03-07 Thread Tatang Widyanto
2003 Small Business Server ip address, and I am on a client computer for this network.(I am locally connected to a LAN). Thank you in advance for every friend around the globe to reply nicely. -- Tatang Widyanto Unit Pengkajian dan Penerapan Teknologi Informasi Universitas Brawijaya http