Jump to content

lizrickaby

New Members
  • Posts

    5
  • Joined

  • Last visited

    Never

Everything posted by lizrickaby

  1. I have a MySQL database where users can upload files for my client to download. Some users upload a large number of small files and the client would like to be able to download all of the files at once. Is there a way to do that? With a zip file, maybe? If anybody knows of a tutorial, that would be great.
  2. I think what I need to do is have the field I want to search set up as a full text key. Is there a way to do that after the table has already been created, or do I have to start all over? And what is the correct syntax for that? I found a few bits of code online that say how to make a full text key, but I can't get it to work (below)... CREATE TABLE inhouselKB (id int NOT NULL identity, title VARCHAR( 255 ), body TEXT, datnum TIMESTAMP, inputby VARCHAR( 100 ), category VARCHAR( 50 ), PRIMARY KEY ( id ), FULLTEXT KEY ( title, body ))
  3. I have to move a PHP knowledge base from a MySQL database over to a MSSQL database. I've got just about everything figured out, except for the search script. It seems to be a problem with the "IN BOOLEAN MODE" part of the script. Is MSSQL capable of boolean? Is there a different syntax for it? Here's the full line of code ("body" is the field to be searched)... $query="SELECT * FROM internalKB WHERE body LIKE ('$keyword' IN BOOLEAN MODE) order by title ASC";
  4. Continued to research after I posted and got it to work this way: $createTable="CREATE TABLE internalKB (id int NOT NULL identity, title VARCHAR( 255 ), body TEXT, datnum TIMESTAMP, inputby VARCHAR( 100 ), category VARCHAR( 50 ), PRIMARY KEY ( id )) "; The problem is that I'm using msSQL instead of mySQL, so there are TONS of tiney differances in syntax that I pretty much have to figure out on my own because msSQL isn't nearly as well used and discussed as mySQL! Whew! Good thing everybody else in the office was gone when I finally got it to work, or they would have thought I was NUTS!
  5. I keep getting the error: Incorrect syntax near 'auto_increment' Here is the code: $createTable="CREATE TABLE internalKB (id tinyint( 4 ) NOT NULL auto_increment, title VARCHAR( 255 ), body LONGTEXT, datnum TIMESTAMP( 14 ), user VARCHAR( 100 ), category VARCHAR( 50 ), PRIMARY KEY ( id )) TYPE = MYISAM "; Whenever I run a query with that, I get that error. I can't see anything that should be a problem, but I must be missing something.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.