[PHP-DB] MySQL fulltext search with InnoDB table?

2004-08-03 Thread Swan, Nicole
What is the best way to simulate a fulltext search on a MySQL table of type InnoDB? Do I index the searchable fields and use the LIKE() function with appropriate wildcards? What are the performance implications with this? Switching back to a table type of MyISAM is really not an option. Is t

RE: [PHP-DB] php mysql dates

2004-07-28 Thread Swan, Nicole
I would suggest creating the select dropdown so that the value is actually the numeric value of the month. i.e: January February . . . Then you can do a simple concat before adding to the database. --Nicole --- Nicole Swan Web Programming Specialis

RE: Re: [PHP-DB] DB table creation question

2004-07-20 Thread Swan, Nicole
Have you made sure that the parent table(s) is type INNODB as well? Also, in my experience, it is best to let the database be in charge of as many database functions as possible as it helps maintain the data's integrity. In other words, use foreign keys, indexing for speeding up searching, 'on

RE: [PHP-DB] Ldap query problem

2004-07-15 Thread Swan, Nicole
Do you have some code you can provide so we can get a better idea of what you're trying to do? My guess is that the filter isn't set up quite right (as in the base dn you're attaching to get the dn is not formatted correctly). What exactly are you trying to achieve? --Nicole ---

RE: [PHP-DB] SQL help

2004-06-23 Thread Swan, Nicole
Have you tried lowering the fldBody as well? Like: SELECT autoQuesID,fldQuesTitle,fldBody FROM tblFAQ_Question WHERE LOWER(fldBody) LIKE '%$strSearchFor%'; And $strSearchFor has already been lowered, of course. --Nicole --- Nicole Swan Web Programming Specialist Carroll C

RE: [PHP-DB] Request for help on (My)SQL Statement

2004-04-27 Thread Swan, Nicole
PROTECTED] Sent: Tuesday, April 27, 2004 5:00 PM To: [EMAIL PROTECTED] Subject: Re: [PHP-DB] Request for help on (My)SQL Statement That would be the way to do it except that MySQL doesn't support sub-selects until version 4.1, which is in alpha still. -Micah On Tuesday 27 April 2004 04:05 pm

RE: [PHP-DB] Request for help on (My)SQL Statement

2004-04-27 Thread Swan, Nicole
Have you tried a nested query? I think your problem is that you're really using information from two different tables. Maybe: UPDATE ngc_polling SET lastrundate = (SELECT max(post_time) FROM nuke_phpbb_posts); --Nicole --- Nicole Swan Web Programming Specialist Carroll

RE: [PHP-DB] more detail..passing array_var with $_get

2004-04-26 Thread Swan, Nicole
I thought I would mention that if you just "echo" or "print" an array, just the word "array" is shown. If you do a var_dump($myArray) on the array, the values should be shown. Otherwise you can get the values as follows: $myArray = $_GET["b"]; //then get and print values foreach( $myArray as

RE: [PHP-DB] Displaying Date from Value in MySQL DB

2004-04-20 Thread Swan, Nicole
In PHP you could do something like: $mydate = date("l, F jS, Y", strtotime($row["eventdate"])); echo $mydate; http://us4.php.net/manual/en/function.date.php gives a full listing of possible formatting options. --Nicole --- Nicole Swan Web Programming Specialist Carroll C

RE: [PHP-DB] putting strings together with a linefeed

2004-04-16 Thread Swan, Nicole
"\r\n" should give a carriage return. i.e: $mytext = 'what up doc'; $mytext .= '\r\n not much'; --Nicole --- Nicole Swan Web Programming Specialist Carroll College CCIT (406)447-4310 -Original Message- From: Hull, Douglas D [mailto:[EMAIL PROTECTED] Sent: Friday

[PHP-DB] RE:[PHP-DB] Forms and more forms?

2004-03-05 Thread Swan, Nicole
What does your HTML look like? Have you defined the delete checkbox as an array? For example: Notice the brackets to indicate an array. --Nicole --- Nicole Swan Web Programming Specialist Carroll College CCIT (406)447-4310 -Original Message- From: [EMAIL PRO

RE: [PHP-DB] How do you make an IN span multiple tables?

2004-03-04 Thread Swan, Nicole
Have you tried using an 'OR' operator? SELECT * FROM table1, table2, table3 WHERE table1.threadref IN (1,2,3,4,5) OR table2.threadref IN (1,2,3,4,5) OR table3.threadref IN (1,2,3,4,5) --Nicole --- Nicole Swan Web Prog

RE: [PHP-DB] mysql_num_rows

2004-03-03 Thread Swan, Nicole
>From a quick glance, I noticed that you have commented out the code that does the >actual query against the MySQL database. This is the line: // $result = mysql_query($query, $db); Without this statement, there is no query to the database. It should be: $result = mysql_query($query); //witho