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

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

[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

[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

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);

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