Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
if i write query like this
SELECT student.name, class.subj
FROM student
INNER JOIN class
ON student.class_id = class.class_id;
in MySql so how i can write for mongoDB script ?
MongoDB does not support joins because join operations make database response slower. You should change your thinking style while designing a database. If you use your documents together, it is suggested to make them embedded documents. Here is a tip for designing based on relations :
http://docs.mongodb.org/manual/applications/data-models-relationships/
Some of data modeling documents are below :
http://docs.mongodb.org/manual/data-modeling/
http://www.toadworld.com/platforms/nosql/w/wiki/349.mongodb-data-modeling.aspx#Collection
http://highlyscalable.wordpress.com/2012/03/01/nosql-data-modeling-techniques/
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
We have created a cms in php and we need to integrate the parent and order feature just like in wordpress. How do we do this? Help is really appreciated thanks. http://i.stack.imgur.com/zK5Na.jpg
add two new fields into your database table named parent_id and order where parent_id hold the id of the parent if its parent in its own then add 0 as parent_id to identify that current record is parent.
Now for order field add integer value for that so you can track at which order page or record will be displayed.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
My Database Structure
Products
Categories
category_products
I am using category_products to link Products and categories .
But i have a single excel with both the fields[Products , categories]
This is how we have done with Price Range , Colors etc.....
Can any one help to solve this easily as possible.
Thank you
As per your comments above, I can point you in some direction to get you started.
1) Use a third party library to read Excel workbook/sheet
Try this: http://phpexcel.codeplex.com - their download has PLENTY of examples
2) After you managed to read the excel data into a PHP Array, now you can import data by iterating through the array into your DB.
For MySQL database manipulation, I'd recommend this library: http://www.meekro.com/quickstart.php
You should do it using your own importing script. Read the document fields and import to appropriate tables. There is no way to import in a single run.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I got it from MaxMind
And this is how the data looks like:
Country,City,AccentCity,Region,Population,Latitude,Longitude
ad,aixas,AixĂ s,06,,42.4833333,1.4666667
ad,aixirivali,Aixirivali,06,,42.4666667,1.5
ad,aixirivall,Aixirivall,06,,42.4666667,1.5
ad,aixirvall,Aixirvall,06,,42.4666667,1.5
ad,aixovall,Aixovall,06,,42.4666667,1.4833333
ad,andorra,Andorra,07,,42.5,1.5166667
I want to convert the structure of this unknown type data into MySQL query language so that I can insert it into my MySQL database. Is it possible?
The data is about 145 MB!! I can paste the whole data code if required.
Alternative required solution: What should I do to insert it in my database?
that looks like a regular CSV to me, and PHPMyAdmin is capable of handling such format in the import menu
The problem I see there is that you've got a large file to upload and most php configurations won't allow you such big upload. Why not try it with, say, the first 1000 lines of your file?
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I cannot find where in DB joomla stores the Page Heading from
Menu manager>Menu Items>some menu>page display options>page heading
Joomla stores "page heading" in menu table and field name is params.