[PHP-DB] Error when trying to connecting to an Oracle database

2006-09-26 Thread Janet Smith
I am trying to use a program written in PHP but connect to an Oracle database. We have a function as follows: function dbconnect($db, $username, $password) { global $siteadmin; global $db; // $bob = @mysql_connect($db, $username, $password);

Re: [PHP-DB] Warnings and Notices

2005-01-06 Thread Janet Valade
/function.error-log.php You can stop individual warnings and messages by putting a @ in front of them. Janet -- Janet Valade -- janet.valade.com -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DB] Help in learning PHP and MySQL

2004-12-30 Thread Janet Valade
the installer, you need to download the zip file which contains these files. Copy both files into your System32 directory. Janet I would appreciate if you could help me in any way, including pointing me to resources that can help get going. Thank you, Masud

Re: [PHP-DB] -14 Days Ago

2004-10-08 Thread Janet Valade
may have to change the order of your string, as well as add spaces. Check the manual at http://us4.php.net/strtotime. IF the database value is in some kind of MySQL date format, you can perhaps retrieve it as a timestamp. MySQL has several DATE formats and date/time functions. Janet -- Janet

Re: [PHP-DB] error

2004-09-28 Thread Janet Valade
the error message by checking whether the array element exists before using it (e.g., isset($_POST['op'])). Or you can just suppress the error message by putting a @ in front of the variable name. Janet -- Janet Valade -- janet.valade.com -- PHP Database Mailing List (http://www.php.net

Re: [PHP-DB] empty query

2003-01-26 Thread janet
) include(config.php); Is $auth a session variable? If so, is register_globals turned on? If not, you should probably be using $_SESSION['auth']. Janet -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DB] mysql wildcard

2003-01-08 Thread janet
offtime Wild cards are used more for things like: SELECT * FROM offtime WHERE type LIKE 'tp%' You can also do pattern matching with regular expressions using REGEXP Janet -- Janet Valade author, PHP and MySQL for Dummies -- PHP Database Mailing List (http://www.php.net

Re: [PHP-DB] a newbie in deep need for help

2002-12-27 Thread janet
one row from the database, you can use the extract statement in a loop and process each row. Janet Janet Valade Author, PHP MySQL for Dummies -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP-DB] Getting data from a page which isn't a form

2002-04-28 Thread Janet Valade
If you have a form on your confirm page, with no text fields, just the submit button, you can use hidden fields in the form to pass the variables on. input type=hidden name=var1 value=$var1 --Janet - Original Message - From: Kim Kohen [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent

[PHP-DB] Help needed - need to access a value from DB into all pages

2002-02-21 Thread WG4- Cook, Janet
it with the variables passed to each page or is there a simpler way of doing it. Can I put the variable in an include file and include it in every page - will that work?. Surely someone must have had a similar situation before and can tell me how they solved it. Many thanks Janet -- PHP Database

[PHP-DB] ensuring unique field value in MySQL using PHP

2002-01-28 Thread Janet Valade
with the same login name so that the same login name could get entered twice? Seems unlikely that this would happen by accident, but is this something a hacker could do on purpose? Thanks, Janet -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED

Re: [PHP-DB] Unique Results?

2002-01-16 Thread Janet Valade
$result = mysql_query(select distinct country from search); Janet - Original Message - From: Chris Payne [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 16, 2002 1:29 PM Subject: [PHP-DB] Unique Results? Hi there everyone, (Sorry if you got this twice, I don't think