Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    PHP


SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





What Is Indexing In Mysql And How It Will Be Useful And How We Can Retrieve Database Content Easily From A Database Table Containing About 5lakhs Datas


I need to select data from a database table containing huge amount of
data. Now I am storing data using one primary key and I am just using
simple select statement, and this process gives me the output but it is
taking long to execute the query. As much I had heared I want to use
some indexing or cluster indexing which might help me but I am not so
familiar with these things.




View Complete Forum Thread with Replies

Related Forum Messages:
XML Datas To MySQL Database
Where to find a comprehensive document on how take datas from XML and put
them in a Mysql Database.
I've many sites sending us XML files. We have to parse datas and save those
datas on Mysql.

The problem is that we have many different file format (each company sends
us it's own XML structure).

How to provide a simple way to get those datas in Mysql, without having to
create a new PHP script for every new site's XML ?

View Replies !
Create A Multi Table Database In MySQL And Write To And Retrieve Information Using MySQL.
I am trying to create a multi table database in MySQL and write to and retrieve information using MySQL. I am able to insert and call data easily enough going into one table, but I am having problems with connecting tables and using the idea of normalization.

I am starting simple with an online registration for alumni of an association. My first table in a database is called alumni and it stores there e-mail address, first and last name and year of graduation. Code:

View Replies !
How Does One Retrieve All Table Names From A Database...
I'm trying, through an SQL statement, to retrieve table names and column names from a selected database.

Something like...

**PSUEDO CODE**

GET all_table_names FROM $db

->returns(table1, table2, table3, table4)

View Replies !
Content Of Database Table Twice?
Why does this code repeat the content of the database table? It connects O.K. but display table contents twice (I only need it once) Code:

View Replies !
When To Store Content In A Database Table?
When developing a website in general when should I choose to put
content in a database. For menu options, settings, and listings like
products it seems to be clear for me to put them in. But the main
content (article for example) should I put that in a page or in the
database.

More in general, when would it benefit to use a database and
when not. Does anyone know a good tutorial or do you have advice
concerning this.

View Replies !
PHP Retrieve Image From Mysql Database
I was able to insert images into mysql stored as binary data. How do I
retrieve it.

View Replies !
How To Retrieve Images From A MySQL Database
I am having problems finding a site to instruct me on how to retrieve images from a MySQL database, I wonder if anyone could help me. This is the sql of the table used to store the images. Code:

View Replies !
How To Retrieve An Xml File From An Xml Field Found In Mysql Database?
Infact i have a mysql database in which i have field name xml in which all the metadata are stored in xml files.

View Replies !
Looking For PHP Solution To Adding Content To MySQL Database
I have recently used aedpro to quickly make pages for my client to be
able to /add/edit/delete/view all/ content in their MySQL database.
Though these pages work, they are limited to an all-or-nothing type
view within their returned record pages. You can't sort the edit or
delete pages to find your information quickly/easily, you have to
scroll through all the records to find your record of interest. The
database contains over 2000 horses, so scrolling to find a particular
horse takes too long. Or, when trying to edit a horse's record, or
group of records, you have to scroll to find the record(s) instead of
being able to type in the record's horseID number and then go just to
that record or group of records to edit.

Do any of you gurus out there know of a PHP based MySQL database
management system that you have used that is both flexible in its use
and easy to install? I have Googled, but nothing is coming up but CMS
type systems, which we don't need. Perhaps I am calling this something
it is not, thus I can't find it. Any help or direction appreciated.

View Replies !
Link Indexing / Database Script?
I've been searching forever to find the right free script for my website.

I want to make article/link database on my gaming site... here is an example... Click me. I want it to function nearly exactly the same as this (but I'm aware this is done in asp)

I want user to be able to add to the database & rate the article/link (with a 5 star rating if possibe) and add a comment/review (again if possible)

Many large sites seem to use the same kind of system... so there must be one out there!

I want to use the database for my links page. Also I have pages were I have written articles... I want to add "user articles" underneath... which will show a catagory from the database.

So I'd say the script would come under the catagory of link indexing or reviews/ratings... or database lol

The reason why I need it in php is because my pages contain php include commands, that include news from my forum... If I used ssi to include instead what scripts could I use then? Seeing as I'm having no luck finding a php script I can use.

One last thing... I would need to be able to edit the design... so it will fit nicely into my site.

View Replies !
Adding Content To MySQL Database Then Pulling Into Php Page
Need to find a script that will add content to MySQL database from one php page then output into another php page at the same time. However the data does not need to be recorded or saved so this may make it easier.

View Replies !
Retrieve Php Content From Mysql
I am relatively new to php however I am working on a site and appear to be
getting on quite well. Most of my pages are coded in php and work fine
however what I would like to do is be able to retrieve my content from a
mysql database. The set up is as follows:

Database contains several fields, but for this example I will only require
the Page Name and the Content fields. In page name I have the page name
i.e. whatson.php and I then have the entire contents of the page that I
worked on in my editor pasted in to the Content field.

I then create a basic php page that makes a connection to the database and
just searches for the page I want i.e. whatson.php and stores the result in
a variable called result.

I then echo out result but for some reason it just displays the php code and
does not appear to have interpreted it, can anyone help?. Sample code is
below:

View Replies !
MySQL Table Or Better New Database
I have a large database, which is used only in part. Therefore I want to place the records that are not so needed in another place. The question is:

Would it be better to place those records in a new database, or just another table will be enough to take weight from the mysql? Which way would be faster?

View Replies !
Retrieve A Data From My MySQL Database Using PHP And Save The Data In A Variable
How can I retrieve a data from my mySQL database using PHP and save the data in a variable in in my PHP code for example i have this table in the database

First name           Last Name
   Juan                  Punkista

I would like to store 'Juan' in variable $first and 'Punkista' in variable $last.

View Replies !
Deleting A Table From A MySQL Database
I've looked at the manual and a few other php resources, but yet I couldn't find a simple and easy way to delete a table using php. I noticed there is a destroy() function within the MySQL class, but I'm not sure how it's used.

View Replies !
Using To Create A New MySQL Database Table?
is there some code that can be used to create a new table with in a database.

View Replies !
Getting The Number Of Items In MySQL Database Table.
Is there an easier way to get the number of items in a database table than
selecting all the records in it and then running mysql_num_rows on the
result?

View Replies !
How To Delete A MySQL Database Table Without System()
I want to delete a MySQL table without using functions of the OS, so
that my php script can run on any webserver. Can I use a command like

$sql = "DELETE FROM tablename";

or are there better ways to do the job?

View Replies !
Display Items From A Mysql Database In A Table
I am trying to display items from a mysql database in a table but I need it to start a new table row each time multiples of 3 rows of the database table have been displayed like the following example:

item 1   item 2   item3
item 4   item 5   item 6

Does anybody know how I can make this work using php.

View Replies !
How To Copy A Database Or Table In A Database To My Pen Drive?
how to copy a database or table in a database to my pen drive? In which path the MYSQL database and tables will be stored?

i just wanto insert a new fieldname(column)in my table not as the last column but at the middle (say insert as 3rd fieldname) what is the MYSQL query used to alter a table with the above said condition?

View Replies !
Putting An Array In A Mysql Database Table Field
I want to insert an array into my database but i've got a problem with it.

Before i insert the array into the dbase i check if everything is in the array with print_r($array). Everything that should be in the array is in there so i insert it into the dbase.

When i check my dbase with phpmyadmin the field that should contain my array has the word array in it so i assume the array is in the dbase. But when i retrieve the data from my dbase and check my array with print_r i get the following error: Warning: Argument to array_values() should be an array in.

View Replies !
Valid MySQL Database/table/column Name Regexp
regular expression in PHP which could be used to
check that a proposed (My)SQL database/table/column name is valid, i.e.
shouldn't result in an SQL error when created?

The user of my (hopefully to be opensourced) program has the ability to
create database/table/column names on the fly.

I'm aware of obvious characters such as ., [space], things like >, etc.,
which won't work, but haven't been able to source a definitive list,
including having googled the MySQL site.

Obviously certain characters need to be filtered out, as noted above, but
I want to be as unrestrictive as possible; hence just [a-z]* isn't good
enough because things like _ are acceptable.

Ideally, I'd prefer a regexp that applies to _all_ vendors' databases, not
just MySQL as I'm about to migrate the program to being
database-independent, probably using PEAR DB, but even a MySQL-specific
regexp would do the job.

In the longer term, I plan some sort of entity conversion script so that
theoretically any character could be used, using some sort of escaping
mechanism probably.

View Replies !
Deleting Duplicate Entries From MySQL Database Table
The topic is related to MySQL database.

Suppose a table "address" contains the following records

-------------------------------------------------------
| name | address | phone |
-------------------------------------------------------
| mr x | 8th lane | 124364 |
| mr x | 6th lane | 435783 |
| mrs x | 6th lane | 435783 |
| mr x | 8th lane | 124364 |
-------------------------------------------------------

Quote:

View Replies !
Database - Retrieve It?
I entered into my database, I saw 53 records there, but no information is displaying in the rows. Could that be the many times I hit the submit button or is there actual data there and I need to retrieve it? If I need to retrieve it, how do I go about doing that.

View Replies !
Automatic Delete From MySQL Database Table Expired Records?
I have a question . . .

how can i delete from MySQL database table automatic expired records ?
?

One think is to make a service that deleting the expired records . . .

Any other method ?



View Replies !
Show On A Page The Date A Table In A MySQL Database Was Last Updated.
I am looking for a way to show on a page the date a table in a mySQL database was last updated. Does anyone know of a simple PHP (or similar script) that can do this for me.

View Replies !
Is There A Another Way To Retrieve Data From My Database
Is there another way I can retrieve and display the data in the
database. Am completely exhausted by this script.

View Replies !
Retrieve Last Ten Records From The Database
using LIMIT I know how to easily retrieve the first 10 records from the database. But is there an easy way to retrieve the LAST 10 records  from the database? e.g

$sql = "SELECT * FROM employees";

How would i retrieve the last 10 records.

View Replies !
Add Photos To The Database And How Do I Retrieve Them.
I've come with a new problem for my project. I've a table in mysql which is called the attorney_profiles....

I want to add photos to each profile. How do i add photos to the database and how do i retrieve them. Here are my codes....

View Replies !
Is There A Way Of Giving A Field In A Database Table A Higher Weighting In A MySQL Fulltext Index?
Is there a way of giving a field in a database table a higher weighting in a MySQL fulltext index? e.g.

ARTISTS(id, name, bio)

sql> alter table artists add fulltext (name, bio);

The artists table has 'name' and 'bio'(graphy) fields which are both indexed for fulltext searches. Code:

View Replies !
Retrieve Data From The Database And Populate
I know how to fill data in text boxes and submit to the database and retrieve from the database. But how do you retrieve data from the database and populate a drop down menu?

View Replies !
Retrieve Randomly Data From Database
I have store in a database some question with four answers for each question.
I want retrieve randomly 20 questions from the database. Also I have to mix the answers as I echo them out… Do you have any idea how can I do this?

View Replies !
How Do I Retrieve The Current Year To Insert To The Database.
how do I retrieve the current year to insert to the database. And how the date data is stored? is it yyyy/mm/dd or yyyy/dd/mm?

View Replies !
Retrieve An Image In Folder From Info Out Of Database
i am having problems displaying an image once i have uploaded
it. i upload it to a folder and store its name in a database. below is
the code to display the image. I have figured out the the code is not
grabbing the name from the database but i can not figure out why. can
anyone help?

//Retrieves data from MySQL
$data = mysql_query("SELECT IMAGE_NAME FROM item") or
die(mysql_error());

//Puts it into an array
while($info = mysql_fetch_array( $data ))
{
//Outputs the image and other data
Echo "<img src=http://www.abcxyz.com/pics/".$info['photo'] ."<br>";
}

View Replies !
Retrieve The Details Of A Specific User In The Database
I'm having some difficulty formulating  query that will allow me to retrieve the details of a specific user in the database. The user's information is stored in one table called Users and another called UserProfile. Both tables are linked by the UserID field.

My current query returns a Warning: mysql_numrows(): supplied argument is not a valid MySQL result resource and my knowledge of Mysql is not great(Still learnng)

Here is my code:

View Replies !
How To Store Image Path In Database & How To Retrieve?
KINDLY PROVIDE ME ASSISTANCE,I WOULD LIKE TO STORE IMAGES OF DIFFERENT PRODUCTS AND WANT TO RETRIVE THEM AND RESIZE IT.

View Replies !
Dates Insert, Retrieve And Sort In Database
I'm not very good with working with dates so I need help asap.I have a form input text box that the user puts a date in. In this format 10/04/2007.How can I put that into a database, and then retrieve the results and sort them by date.


View Replies !
Grab Content From HTML Table And Place Into MySQL Table?
I am in the process of helping a co-worker upgrade some of his old static html pages into dynamic MySQL driven pages. He currently has a lot of pages with huge tables displaying data. Does anyone know if there is a script or class that can convert a table to a .sql file for upload?

View Replies !
Automatically Update Database On Server Usign Php.e.g Mysql Database
I want to automatically update database on server usign php.e.g mysql database on web server and oracle is on local pc one php take data from the oracle and check on web server using the php and if some data is difference between oracle and mysql than that php page upload data on web server.

View Replies !
Retrieve Some Email Addresses Stored In An MS Access Database
I'm currently trying to retrieve some email addresses stored in an MS Access database and to send an email to theses addresses. Here is my PHP code:

View Replies !
Null Values - Retrieve The First Name, Last Name, And Phone Number Of Someone In My Database.
I need to retrieve the first name, last name, and phone number of someone in my database. If the phone is null, then I'm supposed to replace that with 'NONE' this is what I have so far. Code:

View Replies !
Cannot Retrieve Database Entry When Digits Are Part Of The Link
I have been trying to figure out why a link such as:

/my-link-1234-test.html

is not picking up the database entry, which is "my-link-1234-test"

BUT when the database entry is

my-link-one-two-three-four-test.html

the entry is found without any problem when clicking on the link. The issue is related to the digits since when the link does NOT include digits, it all works fine.

I wonder if the issue comes from my php SQL filter, which looks like this:

SELECT * FROM article_content WHERE articletitle LIKE '%%%s%%'

I have tried to edit the "%" characters in many ways but still no luck.

Any help would be appreciated since I cannot figure this out.

View Replies !
MySQL Database Backup - Restore Certain Tables Into The Database
I am stuck with a MySQLdatabase backup. Now I wish to restore certain tables into the database.

View Replies !
Retrieve Field Names Only From Mysql Table
Quick query i have a mysql table with various fields (column names), i wish to retrieve the list of field (column) names from the table, not the data held within them for each entry. Does anyone know how to do this?

View Replies !
Retrieve Data From Mysql Table And Put A Hyperlink For Download
I have created a database and a table and have stored the information in mysql table.
Now my question is how do I retrieve that data from the my sql table and have a php page that when someone goes to say:download.php, he/she will be able to download the data from my mysql table? Also what if I have multiple tables in mysql that I want to be able to download from the php file?

View Replies !
Search A Whole Mysql Database For 1 Word In The Database
Im trying to find a way to search a whole mysql database for 1 word in the database, i assumed something like the following would work but it doesnt.

$query="SELECT * FROM database WHERE MATCH = '$searchword' ";

View Replies !
Database Content
I am trying to return the entire contents of a database w/o having to identify each variable. I am using an ODBC connection and querying like so:

$sql = "SELECT * FROM History";
$result = odbc_exec($conn, $sql);

View Replies !
Database Parseable Content
I know that if I put php code inside a database and then retrieve those contents, and echo them, that php will not be executed. Is there a way around this?

View Replies !
Displaying Content From Database
need some simple help with displaying content from a mySQL database using PHP. i want to know how to write a php script to display the latest entry in a table to an html page. and also how to adapt the script to display the latest x amount of entries.

View Replies !
Compliant Database Content
I'm making a website using valid XHTML strict. The webpages validate, except from the text content that comes out of the database. There's quite some characters in my text (such as " ’ ") that don't validate because they aren't coded with the right character entity. I'm using php's htmlentities to parse the text that comes out of my database, but clearly a few characters don't get encoded. How can I bypass this problem?

View Replies !
Updating Content Via A Database
i have a website that i am designing in a group for a uni project,we are really behind and need some help with some coding as i dont have vast experience with php. I have got a admin section of the website which the company needs to update/change content etc.
The problem is i need to update content via a color picker,which allows them to choose background color,font color,links color etc.

The data input needs to be sent to the database where the changes will be made,then the public can see these changes when they visit the site. Can someone please help me with the coding to link to the database and anything else related or missing that i might need.

View Replies !
Insert Textarea Datas In Mysql, With " Or '....
I've a textarea and would like to save the content in a mysql table each
time a user click on a form.

How can I do for avoiding error when the user put a " or a ' in the message,
or any other character that may cause problems.

My query is:
"insert into questions(UserID,Question) values
(".$HTTP_POST_VARS["USERID"].",'".$HTTP_POST_VARS["QUESTION"]."')"

The problem is with QUESTION, that may have a ' in it, or ".


View Replies !

Copyright © 2005-08 www.BigResource.com, All rights reserved