What Is The Best Content Managment System?
I'd like to speed up queries of the form...
SELECT ... WHERE lower(mytable.name)=?
...by using an index.
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Re-use Content Of An AS Statement
Is it possible to re-use the content of a column that is just created in the SELECT statement? Here an example SELECT (complicated formula) AS result, name, surname, IF(result>16,'OK','NO') AS verdict FROM my_table This doesn't work, because mySQL does not find the "result" column. I know it would be possible to put directly the "complicated formula" inside the IF statement, but since I intend to have multiple such statements, it would be nice not having to copy-paste it X times. I tried to use it by using variables, but it doesn't work because variables can not be set and read in the same statement.
Content Analysis
Is there any way I can do a content analysis with MySQL? I need to find text in a database that have similarity.
UPDATE With ' In Content
I'm having some troubles with content being updated in my DB. If the textarea has an ' in it, it throws an error. Here's the code : $query = "UPDATE auliner SET linerFullDescription = '$linerFullDescription' WHERE linerId = '$linerId'"; I've also tried linerDescription = "'linerFullDescription'" Which it doens't like either.
Duplicating Content Over
I'm intending to have a weird MySQL setup:I've got one server on a stable connection at location 1, running Linux, MySQL and apache I've also got one server on a stable connection at location 2, also running Linux, MySQL and apache The way they are currently setup, when one server goes down hosts are redirected to the other server. Also, load balancing means that if one server is at capacity, another will take control. Both servers are connected via VPN.
Dumping Database Content
Does anyone know what is the syntax for exporting a specific table into file? I want just the Data and not the table structure. I also want the format to be SQL
Order By Content Of String
ORDER BY CASE WHEN strpos(myfield,'someword') > 1 What I'm trying to do is order results with the word 'someword' contained in the string held in 'myfield' ie all records containing 'someword' will list first.
How To Handle Multilingual Content ?
I have a small cms and now there is the need to store foreign content (japanese/farsi) in the database. I use standard Tiger X-Serve with PHP5 and the preinstalled MySql. And now I need a little help with the foreign language support. The things I did already: 1. I put »charset=utf-8« in the HTML meta tag. 2. I use phpMyAdmin and set the database language collation to »utf8_general_ci« 3. I copy/paste a japanese text from apple.co.jp into my formular and tried to store it into my database. But it seems that is not enough Does anyone know how to solve my problem?
Change The Content Of The Record?
What function can be used to modify the content in a field? For example, I want to change all the "," into "-" for every record in the field. from | 2007-03-23 | John | classa, classb, classc to | 2007-03-23 | John | classa - classb - classc
How To Delete Content Of Column?
I want to delete the content of a single column on a MySQL 3.23 database. Tried DELETE column_name FROM table_name; and other varieties with e.g. WHERE clause. No luck until now. The above statement gives the error msg: ERROR 1066: Not unique table/alias: column_name How to get rid of the content of a certain column?
Error In Database Content
I have a very simple database table that consists of 12 records and 5 fields. I prepared a .txt file to load into the table. For most records, it worked well; the import was what I expected. However, for a couple records, the contents of the last field of the record ended with a @ (I think it was @, I've since gotten rid of it). This extra character did seem to affect queries in that search results I would expect to appear did not. I went to the original .txt file to make sure I did not insert a character that did not belong. No extra TABs or spaces or semi-colons or whatever -- just a line break. And all I found was a line break. For goofs, I deleted the table from MySQL, and tried again, and got the same @ in the same place. What could be causing this? In a small table like this, I can easily manage this. But in a larger table, I'm concerned that the usefulness of queries based on this field are compromised.
Using Different Databases To Separate Content
i'm adding a comment system to my site (among other things) and i was thinking of having 1 database for all the site's content and another for the user comments/etc. i'd have two different users: one with select priviledges only to connect to the first database and another username with select/insert/update for the second. is this a good practice or not at all useful? (would there be any noticeable performance problems by calling to different databases on the same script?
Adding Content On Database
i am working on a movie site and i want to add content via MySQL. Im placing content on MySql so i can install a search engine and perhaps other stuff can be installed.but to the point ^^ For example the next content area <image of movie ...> Director: ... Crew: ... Rating: ... ill make templates so all pages are the same. but how can i add the content and images (!) on the .. on a database? and how do i link it in my html pages
Databasing Chinese Content
My company is looking into developing spanish and chinese versions of their website. Building a custom content management system seems to be the best route for this but I'm curious as to MySQL's ability to database chinese (and other non alphabetic languages like arabic and japanese) content.Has anyone dealt with this issue or have a recommendation on another database platform I could use that offers support for this requirement?
Saving Content On Database
i need to know this because i am making a movie website. I could make every movie on a single html page but then i would create thousands of them which isnt really handy. So i am looking for a way to save content into my database + a image for every movie. Is this possible? adding content and images on databases and then show them in html pages (with php linking)? if so, could someone plz explain how i can do this and what the php linking code is? In the html files i need a code like: get/fetch #31 and 31 is for example The Aviator. It imports the image and content and its done. Now i dont need to edit the html file, except adding that code.
Edit Content Of A Table
In mysqlcc it was pretty straight forward how to edit the actual data that was being held in a table. Now i'm struggling just to figure out where to read the actual data that is being held. If i have a table that has had data written to it, I want to be able to go in and change that data how can i do that?
Modify Table Content
i have a table, teachers.. for example, if i have in there Mr. Wang, and i want to change it to something else with php, how do i do it?
Wordpress Auto Content Problem?
I'm trying to install a wordpress auto content updater. My wp-config.php file: <?php // ** MySQL settings ** // define('DB_NAME', 'vyskico_vyskidb'); // The name of the database define('DB_USER', 'vyskico_******'); // Your MySQL username define('DB_PASSWORD', '*********'); // ...and password define('DB_HOST', 'localhost'); // 99% chance you won't need to change this value define('DB_CHARSET', 'utf8'); define('DB_COLLATE', ''); // You can have multiple installations in one database if you give each a unique prefix $table_prefix = 'wp_' // Only numbers, letters, and underscores please! // Change this to localize WordPress. A corresponding MO file for the // chosen language must be installed to wp-content/languages. // For example, install de.mo to wp-content/languages and set WPLANG to 'de' // to enable German language support. define ('WPLANG', ''); /* That's all, stop editing! Happy blogging. */ define('ABSPATH', dirname(__FILE__).'/'); require_once(ABSPATH.'wp-settings.php'); ?> According to this, http://www.vyski.com/readme.htm, I should simply point the browser to http://www.vyski.com/rsstoblog1.php and it would install it. But it says "Table 'vyskico_vyskidb.wp_categories' doesn't exist". Then I checked phpmy admin: vyskico_vyskidb (11) * Vis wp_comments * Vis wp_links * Vis wp_options * Vis wp_postmeta * Vis wp_posts * Vis wp_rsstoblog * Vis wp_terms * Vis wp_term_relationships * Vis wp_term_taxonomy * Vis wp_usermeta * Vis wp_users It somehow wont create wp_categories, but it has installed wp_rsstoblog.
Listing Table Content By Fields
i've got a mysql db with a table called tshirts . Im trying to display all the shirts by category on one page in a table 2 colums wide, been told i need a do while loop ? ive looked up on php.net but didn't really make much sense to me. while($row= mysql_fetch_array($rs) ) { $listt .="<td width=25%><div align=center><b>".$row["tshirtname"]."</b><br>"; $listt .="<img src=".$row["mainpicture"]." >"; $listt .="<br>".$row["tshirtdesc"]."<br><b><font size=4>".$row["price"]."</font></b><br>"; $listt .="</td>"; the above code just displays all the shirts in a long horizontal line, thats as far as i can get, ive not got that much knowledge of php or mysql so sorry if this is a stupid question,
Editing Content Contained In A Field
I have a table in my database where I need to search for text withing a field and delete it. The text that I need to find is not the only text in the field, it is in the field with other text. I am able to single out the records that need updating by using the statement: SELECT * FROM `events` WHERE `EVT_name` LIKE '%Jazz Stage: %'; How do I edit the fields using a simple query?
Generating Table Content From Other Tables
What I'm trying to do is use some kind of 'alias keys' to generate table content. I have a rule table with content such as 'basic.tag1 + basic.desc' where those words inside are column names in other tables. I want to take the column names from that content and use them in my select query in following fashion: SELECT CONCAT(area,tag1,'-',tag2,' ',desc1) FROM basic_test INTO alias; INSERT INTO fude_a(alias) values(alias); Problem is that I can't seem to get the column names into variables so that I could use the variables as the columns in the select query, like this: SELECT CONCAT(@area, @tag1,'-',@tag2,' ',@desc) FROM basic_test INTO alias; Is this even possible or is there another way to do this?
MYSQL Table For Dynamic Content
I am trying to build a site that I can update my content on it dynamically with PHP and MYSQL. Just basic bloging stuff and news. I would like to have a page that is theory a form or a notepad and I just can just submit it and that would update my site. Does anyone know of a site or a link that has a tutorial on this type of thing?
FULLTEXT Search Of HTML Content
I have a db with about 200 "info sheets" of about two pages each. These info sheets are displayed on my website and I also want people to be able to search for text in them. I have tried stripping as much HTML as I can from them, leaving only the data, but in a few places I need to have the HTML stored in the text field. I've been reading up on the "new" FULLTEXT feature introduced in MySQL 3.23.23 and it looks quite useful. However, I'm not sure how it will work with my data. Is there any way to prevent the search from finding matches inside my HTML tags?
MySQL Dynamic Content & Better URLS
Does anyone know how to have MySQL content (with PHP coding) that dynamically generates new URL folder and filename? I'd like to have the values of fields "a" and "b", dynamically be the URL. I'm not even sure where to start looking.
Splitting Content Up Into Multiple Databases
I have to build a system that enables users to build their own one page site with a cms. After examining what I need I figured that I need a set of tables for each user site e.g. page config, colours, layout. Since there will be many users with one or more pages if this website becomes successful I skew form the idea of putting the table sets all in one database. I think putting them all in a separate database will be a better idea but I’m not sure about this, I have never worked with more then one database.
How To Group Similar Records Based On Their Content?
I have a table that holds logging information. It contains 3 columns: Message_ID: The ID of the message (primary key) Message_Datetime: The datetime when the message was posted Message: The actual textual message (varchar(255)) I would like to know what is the distribution of the various messages. What I want to perform is a query that will return the number of messages of each type, where the type is defined by the first 10 characters of the message. What I mean is that all the messages that begin with the same first 10 characters should be grouped together. I want to have a query that will display for each group, the number of entries. This way I will be able to sort the results and will know what is the most common message group.
Generated Sequence # Based Upon Content Of Row Being Inserted
I have a table - CREATE TABLE `sample` ( `Id` smallint(6) NOT NULL auto_increment, `division` varchar(5) NOT NULL, `secion` varchar(5) NOT NULL, `div_sect_seq` smallint(6) NOT NULL default '1', PRIMARY KEY (`Id`) ); I'd like to write the insert statement that would generate the next div_sect_seq number based upon the value being inserted into the table. Let's say that the table contains: |--id--|-division-|-section-|-div_sect_seq-| | 1 | SC | XX | 000001 | | 2 | SC | YY | 000001 | | 3 | SC | XX | 000002 | I'd like to insert a row for divsion = 'SC' and section = 'XX' with the next div_sect_seq (which would be the max value of div_sec_seq + 1 on the sample table for the division and section) which should be the value of 000003.
Should Page Views Count Be Stored With Content?
I am writing a db that has a table with advertisement data. I want to keep track of how many views an ad has. Is it bad practice to put a field "viewCount" in the same table as the content? The alternative is to have a lookup table? The logic behind the question is that it seems that any time you write to a table there is a possibility of something going wrong, so better to leave the content alone and update a lookup table often. Or am I being over-cautious? Code:
Creating A User Generated Content Website
I'm planning to create a community site (in PHP and MySQL) where people can post some sort of helpful information. I want to include features that would allow people to rate this information and post comments about it. I would also like to make this information searchable, so I want to include tags. To help you understand it better, the website is sort of like digg.com or engadget.com or any other website that have content and comments on it. Sort of like a blog site. I already finished creating the login system. Now I need to work on the content posting system. I already thought about the SQL table to store this content. Here's what I have so far: ContentID, User, Title, ContentText, DatePosted, NumOfComments, Rating, Tags For the comments, I would assume the SQL table would look like this: ContentID, User, CommentNumber, CommentText Now, am I on the right track here? This is my first time creating something like this. I'm also new to PHP and MySQL. Are there free scripts out there that does the same thing?.
Ignoring Content Inside HTML Tags
Is it possible to set MySQL to by default ignore all content contained within HTML tags? For instance, if a database full of HTML pages has the "class" attribute on a lot of the tags and someone searches for "class" expecting information on classes, wouldn't that also return all those documents just because they had a "class" attribute? It would be great if I could set MySQL to ignore all content between < and >.
InnoDB Logfile (iblogfile0 & Iblogfile1) Content & Format
I have been searching for about two weeks now, but I could not find what I'm looking for. So, here are my questions: 1) I am trying to understand InnoDB's log file format. There are basically two types of files, a) ibdata b) iblogfile0 and iblogfile1. From the little tests I've done (i.e., creating a table, inserting some data, updating rows and deleting them) I was able to understand the following things: iblogfiles have all the information for insert and update operations (so that when a crash occurs, they can be redone). What I don't understand is, why for the update statements the old value of a field is as well there. An example is, let's say there is a row in the table field1 = 2222 and I issue an update statement so that its new value is now 3333. I can still see in the iblogfile0, the old and the new value. Is the old value really needed for the redo or are iblogfiles not just "redo" logs, but something else? The format of the logfile would answer these questions, I guess. (Is there a specific tool to parse these, would be my next question.) 2) As for the delete statements, as I understood from the documentation, the delete statements don't actually remove the row from the disk, but that row is marked for deletion until some purge operation is applied. (Again in a crash, if the row is not marked and is still there, this can be used to undo the operation recover the old row.) Let's say, I am not concerned about the disk space ibdata uses. Is there a way to disable the purge operation? I am sort of looking into the source and trying to understand what other things it actually does
Problem Saving Javascript Content In MySQL Database
I have been using MySQL for eight years now, but the problem I am having has me feeling like a newbie. I am the owner and operator of a busy message board website. I recently moved over to a new dual Opteron 2218 system. When I built out the box, I install MySQL version 5.0.32. Since this changeover, I am unable to add any content containing HTML Javascript script calls to any database field. When I try to do so, the request simply times out. I have tried to update DB info using the template editing system in vBulletin and tried to add data via PHPMyAdmin, with the same results. Not only can I not add such content, I cannot modify or edit any data field that already contains any HTML markup using script tags to call a Javascript process. I am baffled. If anyone has any idea why this could be happening, I would really appreciate hearing it. My site is operational now, but I cannot make any modifications to it or add any Javacript banners until I resolve this issue.
MySQL Administrator: Analyze Backup File Content Failed
I installed MySQL Administrator tried to restore from a sql dump file. No luck. When I run "Analyze Backup File Content" it says "The analyzation failed." I inherited this dump file and don't have much detail about it and can't really go back to the contractor who supplied it. Any pointers on how to get this table and data into my version of MySQL?
How Do I Get System Date
I have a Timestamp which shows the Date and Time. I would like to change it to just show the Date. How do I do this using phpMyAdmin?
Getting System Date
I was wondering how to set up table to column to get the system date for a date stamp. Could someone help me with this. I tried date date SYSDATE with no luck
Best Way To Set Up Membership System
My site will have users that sign up and can then become part of multiple groups (think similar to Yahoo Groups or something like that). How would be the best way to set up the database/table structure so queries could be run to find both all the groups that a user is a member of and also get membership lists for each individual group?
System Tables?
Is there documentation on the system tables? I couldn't seem to find anything when I did a search on system tables. I know about the information schema, but I want to know about the tables the information schema uses to build the views it contains.
Registration System
I have my database and HTML forms made. When I click submit to submit the registration it doesnt go to to the database it comes to a page with all of my database stuff on it. Can someone help? I have the page register.html made with the forms on it. When you click on submit its supposed to go to register.php which will send the info to the database. But is doesnt. Here is the register.php code:
System Tables
When I create a new DB it's empty. Are there a base set of system tables / functions and so forth created?
Privilege System
Is there a way to limit update access for a user to a single record? I have a database table that contains various information about people. That information is contained in a record for each person. I want people to have read access to the whole table but update access only to their own record. Is this possible and if so how would I set it up?
System Log For Triggers
Is there a system log file which can be checked to see the histroy of triggers. I am trying to debug a trigger that is not executing when it should.
Rating System
i want to do a rating system like youtube's where it averages out the total ratings. i'd store each of the ratings per each row and have them seperated by comma's then in my code put them in to an array. i also wanted to store the usernames of the voters in the database in the same fashion (without displaying them though) as above say instead of using cookies (as they can be deleted). would method this be feasible? or would this say overload the database and cause slow down?
Booking System
Hi, does anyone know of a site (tutorialised / open source) that offers a PHP-MySQL Online Booking System (similar to a Hotel Booking System)
Privilege System
Can I change structure on "mysql" database to implement new Privilege System? Views named "user", "host" etc will return old structure style.
System Variable
i am connected to the server and i build some tables etc etc. everything is fine. i run the command "show variables". it executes fine and shows me the values of all the variables on the server. now if i try and change the value of the variable tmpdir using the set command, it tells me unknown "error 1193: system variable tmpdir". help needed here........ another point, the variable "tmpdir", points to the dir c:/windows/temp. i put a text file in that dir and try to load some data from that file into a table, and i get an error "file not found".
Ranking System
I've made a forum and i want to have a ranking system with it. I managed to display a postcount but i also want a few images to be displayed, like if you have made more then 50 posts, it displays 50.jpg or something, how can i accomplish this, in another way then just str_replace()ing all the number of posts? And how do i display 2, like if you have 50 posts, 50.jpg and if you have 60 posts, 60.jpg.
System Variable.
i am running mysql version 4.0.16-nt. now, i am connected to the server and i build some tables etc etc. everything is fine. i run the command "show variables". it executes fine and shows me the values of all the variables on the server. now if i try and change the value of the variable tmpdir using the set command, it tells me unknown "error 1193: system variable tmpdir". help needed here........ another point, the variable "tmpdir", points to the dir c:/windows/temp. i put a text file in that dir and try to load some data from that file into a table, and i get an error "file not found".
|