SitePoint Sponsor
+ Post New Thread
Page 1 of 645 1 2 3 4 5 11 51 101 501 ... LastLast
Threads 1 to 40 of 25773

Forum: Databases & MySQL

Using a database such as MySQL, Oracle or SQLite to store your website's data? Learn about common issues and pitfalls, the correct use of indexes, normalisation and much more.

  1. Global Thread Global: FREE - Talk WordPress With The Experts

    Welcome to the second in our series of 'Talk With The Experts' live forum workshops. Next up is WordPress with SitePoint developers Harley Alexander (front end and WordPress) and Bernard Peh (PHP and WordPress) along with assorted Advisors from here at the forums. The session will kick off at...

    Started by HAWK‎, Feb 21, 2012 19:14
    • Replies: 0
    • Views: 1,307
    Feb 21, 2012 19:14 Go to last post
  2. Global Thread Global: Looking For People To Interview For A SitePoint Book

    Jodie Moule (author of our upcoming UX book) is looking for some SitePoint community members to interview for her book. She is specifically interested in what it is that you want from a UX book. If anyone is interested in taking part, please PM me your name and email address and I'll hook it up.

    Started by HAWK‎, Feb 20, 2012 18:00
    • Replies: 0
    • Views: 372
    Feb 20, 2012 18:00 Go to last post
  3. Sticky Thread Important: PostgreSQL - what are the best resources on the net?

    PostgreSQL -what are the best resources on the net? Can anybody submit good links, tutorials, links to references, and recommended books thanks, DH

    Started by dhtmlhelp‎, May 13, 2003 01:36
    • Replies: 8
    • Views: 18,905
    Dec 20, 2011, 02:57 Go to last post
  4. Exclamation Sticky Thread Important: Important: Secure your SQL queries!!!

    I thought I'd better make sure that everyone is aware of a particular class of security vulnerabilities called malicious SQL code injections. While there are many other security vulnerabilities, these are particularly dangerous - left unchecked, a malicious user could access or otherwise manipulate...

    Started by MarcusJT‎, May 18, 2002 04:56
    2 Pages
    1 2
    • Replies: 42
    • Views: 46,977
    Mar 22, 2011, 03:02 Go to last post
  5. Sticky Thread Important: the big, bad thread of "MySQL Best Practices and Other Useful Information"

    in this thread will be posted various Best Practices and Other Useful Infomation, gleaned from the experienced members lurking around the forums and good other external resources. please observe the following when posting in this thread: make sure to create a good title when replying to this...

    Started by longneck‎, Jul 29, 2006 13:32
    • Replies: 13
    • Views: 24,725
    Jan 23, 2011, 13:46 Go to last post
  6. Sticky Thread Important: Help Wanted!

    If you are reading this you are the SitePoint member we're looking for. The SitePoint forums are currently working on improving the sticky threads. Much work has already been done towards this goal within the "Program Your Site" team. And we are acutely aware of some of their problems. But so...

    Started by Mittineague‎, Mar 24, 2010 19:35
    • Replies: 1
    • Views: 6,087
    Jun 16, 2010, 01:38 Go to last post
  7. Sticky Thread Important: New to the Program Your Site forums? Please read this.

    Useful Tips The members of the Programming Team offer the following suggestions to help you get the most from your time here. 1) Try a search. Your problem or a similar one has probably been discussed/answered before. SitePoint has two search features. The vBulletin search...

    Started by Mittineague‎, Jun 4, 2010 18:31
    • Replies: 0
    • Views: 5,004
    Jun 4, 2010, 18:31 Go to last post
  8. Sticky Thread Important: New to the Program Your Site forums? Please read this.

    Useful Tips The members of the Programming Team offer the following suggestions to help you get the most from your time here. 1) Try a search.Your problem or a similar one has probably been discussed/answered before. SitePoint has two search features. The vBulletin search...

    Started by Mittineague‎, Jun 4, 2010 18:31
    • Replies: 0
    • Views: 5,638
    Jun 4, 2010, 18:31 Go to last post
  9. Sticky Thread Important: Help Wanted!

    If you are reading this you are the SitePoint member we're looking for. The SitePoint forums are currently working on improving the sticky threads. Much work has already been done towards this goal within the "Program Your Site" team. And we are acutely aware of some of their problems. But so...

    Started by Mittineague‎, Mar 24, 2010 19:32
    • Replies: 0
    • Views: 6,619
    Mar 24, 2010, 19:32 Go to last post
  10. Exclamation Sticky Thread Important: Database design & normalization resources

    Here are some excellent articles on database design & normalisation - most are written with Access in mind, but 99% of the principles and techniques apply to every database under the sun, so they are well worth a read no matter which DB you use! Understanding Relational Database Design ...

    Started by MarcusJT‎, Jun 12, 2002 07:39
    • Replies: 12
    • Views: 31,038
    Sep 4, 2008, 16:04 Go to last post
  11. Sticky Thread Important: SQL and RDBMS Database Design DO's and DON'Ts

    This is a document I've been slowly adding to as I come across things 'in the wild'. Maybe it can be of some use? SQL and RDBMS Database Design DO's and DON'Ts ------------------------------------------ Generic DOs: Develop a backup strategy before you encounter a catastrophic database...

    Started by MattR‎, Jul 2, 2002 04:27
    2 Pages
    1 2
    • Replies: 44
    • Views: 37,457
    Dec 17, 2007, 15:29 Go to last post
  1. how to use if then else in UPDATE Statement

    Hi, I have table: plan which has fields : PCODE, max_lot, min_lot sample data: PCODE = P35 max_lot = 5 min_lot = 3 PCODE = P35M max_lot = 5

    Started by newphpcoder‎, Today 00:01
    • Replies: 0
    • Views: 15
    Today, 00:01 Go to last post
  2. Primary Key with "Extended" Table?

    I am working on a system where I have a common table (Node) which has a few basic attributes (basically handles the relationships). There are various tables which "extend" this table (in an OO sense), which then go into specific things (such as Forum or Thread), which has specific data. My...

    Started by samanime‎, Yesterday 23:10
    • Replies: 0
    • Views: 38
    Yesterday, 23:10 Go to last post
  3. mysql count problem

    Good day! Hi, I encountered problem in Count. I have this data: REFNUM----LOT_CODE----PCODE--wip_chemicalweighing--wip_compounding-------wip_extrusion--wip_forming--wip_deflashing

    Started by newphpcoder‎, Feb 21, 2012 03:37
    • Replies: 11
    • Views: 127
    Yesterday, 22:09 Go to last post
  4. User/Ecosystem Interaction - Many To Many Relationship with a catch - Help

    I have two very simple tables, User and Ecosystem: User - ID - loginName # ... Ecosystem - ID # ...

    Started by samanime‎, Yesterday 20:38
    • Replies: 0
    • Views: 63
    Yesterday, 20:38 Go to last post
  5. Using GROUP BY and MAX in SQL

    hi folks - I was hoping someone (Rudy?) could help me understand what I'm missing here; as I mentioned to Rudy earlier I know enough about SQL and databases in general to be dangerous. I have two tables: customers & visits; one customer can have multiple visits; what I'm trying to come up with...

    Started by lendalberti‎, Yesterday 09:56
    • Replies: 3
    • Views: 53
    Yesterday, 12:25 Go to last post
  6. group_concat separator question

    Hi Guys! I'm trying to add <li></li> tags around rows that I get from the database. Here's the query i'm using but it doesn't work. The left join on the "users_certifications" is the part causing the problem. Is my sql wrong? SELECT users_profile . * , users.first_name, users.last_name,...

    Started by Zaggs‎, Yesterday 06:03
    • Replies: 1
    • Views: 93
    Yesterday, 09:00 Go to last post
  7. Need help with joining tables (MySQL)

    Hi all I am not very advanced in database scripting/programming, but have a small issue: This code is created for a wordpress plugin widget, <prefix> is the table prefix as set in wordpress. For what I need to do, I need to query 4 tables (<prefix>wp_eMember_members_tbl,...

    Started by Jacotheron‎, Yesterday 08:42
    • Replies: 0
    • Views: 79
    Yesterday, 08:42 Go to last post
  8. MAX function in WHERE clause

    I would need to be able to use this function in the WHERE clause instead than in the SELECT clause. Is there a way to do this? Meaning, to find the maximum value of a column used in the WHERE clause?

    Started by D3V4‎, Feb 21, 2012 04:00
    • Replies: 18
    • Views: 205
    Yesterday, 05:28 Go to last post
  9. help for sql query & navigation of records

    i have the below select * , ,ROW_NUMBER() OVER (ORDER BY NAME ASC) AS ROWID from (select top 10 * ,ROW_NUMBER() OVER (ORDER BY NAME ASC) AS ROWID from (select top (30) * ,ROW_NUMBER() OVER (ORDER BY NAME ASC) AS ROWID from EMPLOYEE order by NAME ) as T1 order by T1.NAME ...

    Started by svibuk‎, Yesterday 04:11
    • Replies: 0
    • Views: 85
    Yesterday, 04:11 Go to last post
  10. Sql normalization

    What is normalization in Database

    Started by ashutoshets‎, Feb 21, 2012 21:36
    • Replies: 2
    • Views: 145
    Feb 21, 2012, 23:19 Go to last post
  11. Storing User's IP addresses efficiently

    I'm looking for suggestions on how to design a table to save user's IP addresses. I will be saving the last 20-50 IP addresses used. I will not be storing duplicates (unless that is the most efficient way to go here), but I want to record how many times each IP address was used. (So if I check to...

    Started by ShinVe‎, Jan 8, 2012 15:24
    • Replies: 13
    • Views: 635
    Feb 21, 2012, 22:47 Go to last post
  12. connect a database with externals tables (remote databases)

    I have a database (MySQL) and I need data from n databases (probably multiples DBMS). For example, if a person is added as an user in other database i need to update my table with the new name. The data is critical, and for sure, i only would have access to read. My database is the only that...

    Started by Felito‎, Feb 21, 2012 12:02
    • Replies: 0
    • Views: 91
    Feb 21, 2012, 12:02 Go to last post
  13. Moved: Help - A Mysql error has occurred while running the script:

    Started by RayWilk‎, Feb 21, 2012 01:26
    • Replies: -
    • Views: -
    Feb 21, 2012, 08:54 Go to last post
  14. Transform algorithm in MySQL

    hi all. how to transform this algorithm in MySQL ? : Start1 (from 2011/01/01 to 2011/02/20) = 10284 + (9749*20/28)=17247,6 Start2 (from 2011/01/01 to 2011/02/20) = 7045 + (7475*20/28)=12384,3 would be a progressive calculation today reported on previous year.

    Started by Miguel61‎, Feb 20, 2012 09:22
    • Replies: 1
    • Views: 153
    Feb 21, 2012, 01:54 Go to last post
  15. self join with where clauslue problem

    Hi This is my table: -- -- Table structure for table `faq_categories` -- CREATE TABLE IF NOT EXISTS `faq_categories` (

    Started by zoreli‎, Feb 20, 2012 05:32
    • Replies: 6
    • Views: 120
    Feb 20, 2012, 07:54 Go to last post
  16. [MySQL] Subquery

    Hi everyone, I need your help. I try this query in MySQL: SELECT COALESCE(`Zn`,'Tot') `Zn` , COALESCE(`description zn`,'Tot') `description zn` , `tot inf` , `tot hh o` , `tot hh i`

    Started by cms9651‎, Feb 18, 2012 03:08
    • Replies: 18
    • Views: 325
    Feb 20, 2012, 05:57 Go to last post
  17. A search field that looks in several columns

    I am trying to streamline my PHP code by making only one search field instead of having several. This one field will allow you to type in a person's ID, part of their name, email, etc. Here is my query: select date_format(registerDate, '%m-%d-%Y') as registerDate, uID, firstname, lastname,...

    Started by busboy‎, Feb 15, 2012 16:37
    • Replies: 3
    • Views: 221
    Feb 19, 2012, 22:47 Go to last post
  18. Comment box with replies

    Hello all. Good evening. I currently have a website were you post comments, but I want there to be a way for people to make replies to those comments. I'm new to SQL and PHP, but I think the way to do this would be to make a new table for the replies and have an ID that connects to the original...

    Started by louie540‎, Feb 18, 2012 15:21
    • Replies: 6
    • Views: 173
    Feb 19, 2012, 17:31 Go to last post
  19. Question mySQL: Designing a TreeView Structure.

    Hello Everyone.. I am looking for designing a database structure for a treeview plugin. The nodes should be populated from the database. The root node can have unlimited level of child nodes and each child node can further have unlimited level of sub-child nodes. Can someone please suggest...

    Started by cancer10‎, Feb 16, 2012 06:21
    • Replies: 5
    • Views: 339
    Feb 18, 2012, 15:17 Go to last post
  20. Using Limit with subquery

    I have a master table and a detail table and want to perform a query returning only a certain number of master records that can be processed as a limit so I can paginate the full set. So if each master has a different number of detail records, putting a limit on the query limits it based on the...

    Started by bostboy‎, Feb 18, 2012 11:10
    • Replies: 2
    • Views: 135
    Feb 18, 2012, 12:39 Go to last post
  21. EVENT in MYSQL does not run, but seems fine??

    Hi everybody, I am struggling to set up an EVENT in mysql - But it doesnt execute the commands, and I have spend hours to figure out why by now. I hope to find the answer here :-) This is the code for the event: delimiter | CREATE EVENT delete_cart

    Started by Klemme‎, Feb 18, 2012 11:27
    events
    • Replies: 0
    • Views: 110
    Feb 18, 2012, 11:27 Go to last post
  22. DB Schema for 900+ tables

    Hi all, I am working on a project where I have 900+ tables in a existing db and I need to know the schema for the DB. If I use desc (SHOW tables); it gives me an error If I use SELECT <TABLE_NAME1> from dba_tables; it results in schema for only TABLE_NAME1. I need this o be done for...

    Started by krishnakhanna‎, Feb 17, 2012 06:49
    multiple
    • Replies: 8
    • Views: 186
    Feb 17, 2012, 23:58 Go to last post
  23. Wink How to create a forum as database design project? n00b here... Please help!!

    Hello guys! This is my first post and I am excited to be on the most famous forum site on internet... :D Our Database Management Systems course instructor asked us what would we be creating for our semester project, and I replied here that I am interested in creating a forum that runs in our...

    Started by Black Death‎, Feb 3, 2012 07:00
    • Replies: 7
    • Views: 453
    Feb 17, 2012, 20:31 Go to last post
  24. php search problem using "AND" in the query

    I need help here and I have been racking my brain over this. I am actually using Dreamweaver Cs3 to do the search over two tables in MYSQL . The search works if I am using "OR" in the query and it gives me the exact results but it does not show any result if I used "AND" in the SQL statement. I...

    Started by eni360‎, Feb 15, 2012 18:38
    • Replies: 6
    • Views: 208
    Feb 16, 2012, 06:28 Go to last post
  25. Storing IP Address and Hostname

    I would like to store a User's IP Address and Hostname. What Data-Type and Field-Size should I be using? I am using the following PHP functions... // Capture User's IP Address. $userIPAddress = $_SERVER; // Capture User's Host Name.

    Started by DoubleDee‎, Feb 1, 2012 15:18
    • Replies: 9
    • Views: 495
    Feb 15, 2012, 15:26 Go to last post
  26. Cross-referencing an entry

    What is the best way to connect an entry in a database table with multiple entries in the same table? I was thinking about creating a table to store this information, but is there a better way to do it?

    Started by D3V4‎, Feb 15, 2012 12:23
    • Replies: 5
    • Views: 197
    Feb 15, 2012, 14:44 Go to last post
  27. Optimize a database

    Hi all, I have a MySQL database which needs to be optimized which option works best - Server Tuning or Normalization? Is there any reason why you would use only one option - would it not be better to work at both? Thanks, Andy.

    Started by andy2012‎, Feb 13, 2012 06:29
    • Replies: 2
    • Views: 207
    Feb 15, 2012, 09:12 Go to last post
  28. MySQL Slow Log Dominated by Inserts and Updates

    I put a lot of work into optimizing our database queries over the years, but I always focus on our select queries. Since we are an ecommerce store, the majority of the queries we do are selects from the product catalog and even though the SQL in the selects can be rather large, they are very quick....

    Started by Brandon MUS‎, Feb 10, 2012 10:45
    • Replies: 8
    • Views: 376
    Feb 14, 2012, 09:16 Go to last post
  29. Naming conventions - prefixing table and field names?

    When I started my current (and first) developer job I inherited a database table naming convention which used prefix of 't' on every table eg tOrders, tProducts etc. Is there any point in this? The only use I can see for this is to differentiate tables from views, but is there even any point in...

    Started by hessodreamy‎, Feb 13, 2012 03:37
    • Replies: 9
    • Views: 272
    Feb 14, 2012, 06:30 Go to last post
  30. Avoid same multiple calculations in a single query

    Let's say I have the following query in mysql: SELECT net_price, net_price*tax AS price, net_price*tax*qty AS total, net_price*tax*qty*discount AS discount_total FROM product In this sample only the first returned column is actual data from the table, the rest are values calculated on...

    Started by Lemon Juice‎, Feb 13, 2012 16:02
    • Replies: 3
    • Views: 219
    Feb 14, 2012, 04:50 Go to last post
  31. query 3 tables to retrieve fields value and display table in a page

    hi.. Im new to mysql..i want to know how to generate daily reports for all employees i created 3 tables with fields employee table:emp_id,name job table:job_id,job_name activity table:act_id,emp_name,job_name,date,activity done(assigned values as email,phonecall,visits)

    Started by danielbala‎, Feb 11, 2012 03:28
    • Replies: 2
    • Views: 291
    Feb 11, 2012, 06:13 Go to last post
  32. error when establishing a connection

    Im using this php code to see if I can connect to my database. $username="fixmy1_luke"; $password="xxx"; $server="localhost"; $database="fixmy1_shores-rentals"; $db_handle = mysql_connect($server, $username, $password); $db_found = mysql_select_db($database, $db_handle);

    Started by lukeurtnowski‎, Feb 11, 2012 00:15
    • Replies: 1
    • Views: 228
    Feb 11, 2012, 03:25 Go to last post
  33. Field Order and Performance

    Does the order of Fields affect the performance of a Table? For example, if my table has... ...and I moved "email" - which is a commonly used and important field - to the end like this... ...then how would that affect the performance of my Table and Queries?

    Started by DoubleDee‎, Feb 9, 2012 10:50
    • Replies: 8
    • Views: 312
    Feb 10, 2012, 09:02 Go to last post
  34. Query? Count? or ELSE?

    Hi there, I have tried lots of different ways to get what i want out of this query but i seem to be failng all the time and if anyone could PLEASE help me!! I am trying to basically do a query that says if there are no events in the current month then please return a value of "no records" or...

    Started by staustell‎, Feb 8, 2012 10:56
    • Replies: 18
    • Views: 378
    Feb 9, 2012, 05:55 Go to last post
  35. Duplicate entry 'root' for key 2

    i have this error DB Error: Duplicate entry 'root' for key 2 : DB Error: Duplicate entry 'root' for key 2

    Started by altarek‎, Feb 8, 2012 02:43
    • Replies: 3
    • Views: 242
    Feb 8, 2012, 03:53 Go to last post
  36. DUMPFILE

    I have several fields, one of which is a BLOB. I want to SELECT the fields and return the results to the browser, and then dump the contents of the BLOB into a file on the server. I'm struggling with how to do this in one query. The on_linear_array field is the BLOB. SELECT id ,model_type...

    Started by tgavin‎, Feb 7, 2012 18:31
    • Replies: 4
    • Views: 299
    Feb 7, 2012, 19:36 Go to last post
  37. Question Stored Procedure

    Hello all, I have read some tutorials on MYSQL stored procedures and find it very difficult to get my head around it. My first query is: SELECT aChild.id, aChild.type, GROUP_CONCAT(aClient.client_id) AS `client_ids`, count(aClient.client_id) AS `count` FROM Asset_Child AS aChild JOIN...

    Started by audienceWatching‎, Feb 7, 2012 07:14
    stored procdu
    • Replies: 10
    • Views: 374
    Feb 7, 2012, 09:35 Go to last post
  38. Compare MySql Db Schema

    Hi there, I am looking for a tool to compare schema s of two different dbs. I want to compare them on local host - apache on my local disk , I am running mysql 5.1. I have tried downloading tools like dbdif but I have no idea how to install them because I think they need to be installed with...

    Started by silversurfer5150‎, Feb 6, 2012 15:49
    • Replies: 3
    • Views: 294
    Feb 7, 2012, 08:41 Go to last post
  39. Article Database Design Scalability

    Ok lets say I have a page and the body of that page is made up of blocks of text, lets call them sections. Each section is made up of a title and a body text, it may also have sub-sections containing also a title and body text. So we have something like this: <page> <section> <section>...

    Started by RyanKing1809‎, Feb 5, 2012 19:23
    • Replies: 10
    • Views: 462
    Feb 7, 2012, 07:44 Go to last post
  40. Lightbulb Attendance report Using Mysql Query

    I want to write a query to generate attendance report of employee. First I will tell you how the presence of employee is stored in my database. I have following tables. Employee Table with Columns emp_id emp_Name Joining_Date 1 john 11-01-2012 2 Scott ...

    Started by pravingate07‎, Feb 7, 2012 02:39
    case in mysql
    • Replies: 2
    • Views: 251
    Feb 7, 2012, 05:37 Go to last post

+ Post New Thread

Forum Information and Options

Moderators of this Forum

Thread Display Options

Use this control to limit the display of threads to those newer than the specified time frame.

Allows you to choose the data by which the thread list will be sorted.

Order threads in...

Note: when sorting by date, 'descending order' will show the newest results first.

Icon Legend

Contains unread posts
Contains unread posts
Contains no unread posts
Contains no unread posts
More than 25 replies or 300 views
Hot thread with unread posts
More than 25 replies or 300 views
Hot thread with no unread posts
Closed Thread
Thread is closed
Thread Contains a Message Written By You
You have posted in this thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts