Monday, June 30, 2008

when i work with tables in MySQL-I get error message as "Violation of PRIMARY KEY constraint PK_Patient_Registration . Cannot insert duplicate key in object Patient_Registration . The statement has been terminated."even if i dont have any duplicates in my table.why?

For example

something like this
$result = mysql_query("SELECT * FROM review ORDER BY name");

but instead of ordering it by its name i want to order it by what number of submission it is. So if it was the first thing submitted it would go before the second submitted.

please give me sample mysql queries where each query is embedded with a unique id- can u cites me more examples?

I want to buy an domain name & web hosting service from microsoft officelive. My plan is to create a webste using PHP & MySQL. Does officelive support PHP & MySQL
Actually I wanted to know- does officelive allow to host website that has been created with PHP & MySQL?

I have been using my database to test a program. Now that the program is functional- how do i reset the database but maintain on the tables and parameters. Basically i want to delete all the current data and reset all the id s (on autoincrementt) to 1.
Any reason why I would have to change my mysql calls after this? Now all of a sudden my calls to the database arn t going through and was working a second ago. I run this sql call then use numrows and it is returning 0 when there are in fact rows in the database.

$sql = "SELECT Matches.*- AAMaps.name- ClanInfo.clanname
FROM Matches- AAMaps- ClanInfo
WHERE Matches.clan_id = " . $validentry . "
AND AAMaps.id=Matches.map_id
ORDER BY dateposted DESC LIMIT 3;";

I dopnt understand what mysqls pupose is. Do u connect it to the intenret or somehthing?

Sunday, June 29, 2008

please give me sample mysql queries where each query is embedded with a unique id- can u cites me more examples?

I want to buy an domain name & web hosting service from microsoft officelive. My plan is to create a webste using PHP & MySQL. Does officelive support PHP & MySQL
Actually I wanted to know- does officelive allow to host website that has been created with PHP & MySQL?

I have been using my database to test a program. Now that the program is functional- how do i reset the database but maintain on the tables and parameters. Basically i want to delete all the current data and reset all the id s (on autoincrementt) to 1.
Any reason why I would have to change my mysql calls after this? Now all of a sudden my calls to the database arn t going through and was working a second ago. I run this sql call then use numrows and it is returning 0 when there are in fact rows in the database.

$sql = "SELECT Matches.*- AAMaps.name- ClanInfo.clanname
FROM Matches- AAMaps- ClanInfo
WHERE Matches.clan_id = " . $validentry . "
AND AAMaps.id=Matches.map_id
ORDER BY dateposted DESC LIMIT 3;";

I dopnt understand what mysqls pupose is. Do u connect it to the intenret or somehthing?

Hi-
I have installed Apache- PHP and MySQL on my window XP computer to locally build a website before sending to web hosting. In order to create database name- how do I get phpMyAdmin working like installing a complete suite of Xammp or WAMP. I don t want both of the latter.

I need a free hosting source with PHP and MySQL for a coppermine gallery- and it needs to be able to have FTP for quick image uploading- and I need to find one with the most memory if possible.
The one I ve found so far is byethost.[com] and that s only 250mb.
If anyone could help I d be really greatful.
Thanks.

I have been using my database to test a program. Now that the program is functional- how do i reset the database but maintain on the tables and parameters. Basically i want to delete all the current data and reset all the id s (on autoincrementt) to 1.
Any reason why I would have to change my mysql calls after this? Now all of a sudden my calls to the database arn t going through and was working a second ago. I run this sql call then use numrows and it is returning 0 when there are in fact rows in the database.

$sql = "SELECT Matches.*- AAMaps.name- ClanInfo.clanname
FROM Matches- AAMaps- ClanInfo
WHERE Matches.clan_id = " . $validentry . "
AND AAMaps.id=Matches.map_id
ORDER BY dateposted DESC LIMIT 3;";

I dopnt understand what mysqls pupose is. Do u connect it to the intenret or somehthing?

Hi-
I have installed Apache- PHP and MySQL on my window XP computer to locally build a website before sending to web hosting. In order to create database name- how do I get phpMyAdmin working like installing a complete suite of Xammp or WAMP. I don t want both of the latter.

I need a free hosting source with PHP and MySQL for a coppermine gallery- and it needs to be able to have FTP for quick image uploading- and I need to find one with the most memory if possible.
The one I ve found so far is byethost.[com] and that s only 250mb.
If anyone could help I d be really greatful.
Thanks.

I want to display a list of 5 upcoming events (from MySQL database) in my module. But i want to add a link at the bottom of the module that says "next 5 events". When a user will click on this link- the next 5 events will be retrieved from the database. I want to do this asynchrounously if possible (AJAX?). Please help!

I want to register a website which has a database also. I want to know where I can do it for cheap ?
Also I want to learn Mysql & php is there any website in which i can learn ?

I dopnt understand what mysqls pupose is. Do u connect it to the intenret or somehthing?

Hi-
I have installed Apache- PHP and MySQL on my window XP computer to locally build a website before sending to web hosting. In order to create database name- how do I get phpMyAdmin working like installing a complete suite of Xammp or WAMP. I don t want both of the latter.

I need a free hosting source with PHP and MySQL for a coppermine gallery- and it needs to be able to have FTP for quick image uploading- and I need to find one with the most memory if possible.
The one I ve found so far is byethost.[com] and that s only 250mb.
If anyone could help I d be really greatful.
Thanks.

I want to display a list of 5 upcoming events (from MySQL database) in my module. But i want to add a link at the bottom of the module that says "next 5 events". When a user will click on this link- the next 5 events will be retrieved from the database. I want to do this asynchrounously if possible (AJAX?). Please help!

I want to register a website which has a database also. I want to know where I can do it for cheap ?
Also I want to learn Mysql & php is there any website in which i can learn ?

On the same MYSQL database but different URLs? Or would that mess things up...

I need a free hosting source with PHP and MySQL for a coppermine gallery- and it needs to be able to have FTP for quick image uploading- and I need to find one with the most memory if possible.
The one I ve found so far is byethost.[com] and that s only 250mb.
If anyone could help I d be really greatful.
Thanks.

I want to display a list of 5 upcoming events (from MySQL database) in my module. But i want to add a link at the bottom of the module that says "next 5 events". When a user will click on this link- the next 5 events will be retrieved from the database. I want to do this asynchrounously if possible (AJAX?). Please help!

I want to register a website which has a database also. I want to know where I can do it for cheap ?
Also I want to learn Mysql & php is there any website in which i can learn ?

On the same MYSQL database but different URLs? Or would that mess things up...

Although in Xampp control panel apached server showing running but Mysql server not showing running when we click start button which is infront of MySQL it s admin button still freez kindly tell what i need to do for Mysql running .at the other hand when i go to windows>services>right clik on mysql and click start. it shows the msg box- Could not start the mysql service on local computer. error 1067: the process terminated unexpectedly. kindly tell what should i have to make sure that mysql start on my local computer. thank you.

Saturday, June 28, 2008

sql and sql server
"structured query language""sql" server this two are same or there is any difference. i ask about sql server they said me that sql server is used for .net.
what is the use of "sql"
only "sql "friends
in oracle also there is a sql and plsql are this all are same
and also "
mysql"
i want to learn only "structure query language" but i confused what name should i say to any institute to learn "sql"
because didnot understand which is correct could you please give me a name which is correct to use

I ve installed MySQL on my computer- uninstalled it and reinstalled again. The computer remember the program and asked for an old password and new password. I typed correctly but it won t let me pass.

How do I remove the password?

Thanks so much in advance

I have a website with a table- in one cell i have images that create a navigation bar- in another cell i have site content- etc.

Ok- what I want is this: let s say I decide to change my navi-bar images- ie- the order and/or quantity of said images. Is there a way where all I have to do is edit one file and all the pages on my site will have that new navi-bar without me having to cut/paste the code for it into each file on my website?

I ve only learned basic css where I can change an external style sheet- etc- but i don t see how css can do what I m asking unless i haven t learned something important. Is there some kind of code where I can say "in this cell- filename.ext = content of cell"?

Or is there some other entirely other kind of workflow I can design with to do this? I ve started learning php/mysql but not much. Is there some kind of program that will do this for me- and which ones could work really well w/Dreamweaver CS3? I m not smart- I need easy to use programs.

james thank you for input.

Hi - I have just made a user login system. I can register - Login - Go to a user space and Logout. But my user login page is the same for everyone. I want personal pages is there anyway of doing this so when they login it does this. I will post my login code as addintional details. Please help me. Thanks alot. Anyhelp would be great!
Grr not enough room to post it. Can anyone give me an idea of how it is possible please. If you need the code i will email it. Thanks :D
Also any links i could use to guide me threw would be good like a tutorial on how to do it. Thanks
Hiya thanks for responces - im fairley new to php and mysql but i do know a bit.
Basically i was slowley developing a social network that i can build on and eventually launch. Im kind of using it to learn php and stuff. So basically i have a login and user regiration page but like when they login it goes straight a page that everyone gets the same. Using the header(Location:) thing. What i want is like myspace everyone to see a diffreant page like there control panel but also like a profile page so they can create a url. Is there anyway i can do this. Thanks

I m trying to install a software which I bought. Every time I click the icon of the software- this message come out - "Error connecting to the server: Unable to connect to any of the specified MySQL host. I asked them for help- they said I need to check my system security settings (i.e. Norton- McAfee- AVG- etc) and make sure there are no files in the blocked lists of those programs.

The problem is- I don t use any of them. Is there another security setting inside my PC that I don t aware?

Hi - I have just made a user login system. I can register - Login - Go to a user space and Logout. But my user login page is the same for everyone. I want personal pages is there anyway of doing this so when they login it does this. I will post my login code as addintional details. Please help me. Thanks alot. Anyhelp would be great!
Grr not enough room to post it. Can anyone give me an idea of how it is possible please. If you need the code i will email it. Thanks :D
Also any links i could use to guide me threw would be good like a tutorial on how to do it. Thanks
Hiya thanks for responces - im fairley new to php and mysql but i do know a bit.
Basically i was slowley developing a social network that i can build on and eventually launch. Im kind of using it to learn php and stuff. So basically i have a login and user regiration page but like when they login it goes straight a page that everyone gets the same. Using the header(Location:) thing. What i want is like myspace everyone to see a diffreant page like there control panel but also like a profile page so they can create a url. Is there anyway i can do this. Thanks

I m trying to install a software which I bought. Every time I click the icon of the software- this message come out - "Error connecting to the server: Unable to connect to any of the specified MySQL host. I asked them for help- they said I need to check my system security settings (i.e. Norton- McAfee- AVG- etc) and make sure there are no files in the blocked lists of those programs.

The problem is- I don t use any of them. Is there another security setting inside my PC that I don t aware?

My interest is to be able to have my .txt files and/or html files load dynamically. What I have the idea of is I can create a page and have all the text- images- prices whatever load directly from my mysql file. I am interested in concepts like this since I am new to php/mysql. If you know of a different way then what I may be trying to do I am more than interested in knowing.

Hi - I am currently making a user login system. I follwed a tutorial on an about.com page. Its all great so far - i can register and it adds to database fine - when it comes to logging in its another story. I have copied the code correctly but when i try login it says


Warning: Cannot modify header information - headers already sent by (output started at /home/www/socialnetwork.atwebpages.com/login.php:7) in /home/www/socialnetwork.atwebpages.com/login.php on line 59

Warning: Cannot modify header information - headers already sent by (output started at /home/www/socialnetwork.atwebpages.com/login.php:7) in /home/www/socialnetwork.atwebpages.com/login.php on line 60

Warning: Cannot modify header information - headers already sent by (output started at /home/www/socialnetwork.atwebpages.com/login.php:7) in /home/www/socialnetwork.atwebpages.com/login.php on line 62

I will post the lines which seem to be causing probs as addition info. Anyideas? Thanks.
Here is a few lines of code which the error message mentions.

$_POST[ username ] = stripslashes($_POST[ username ]);
$hour = time() + 3600;
(This is line 59)setcookie(ID_my_site- $_POST[ username ]- $hour);
(This is line 60) setcookie(Key_my_site- $_POST[ pass ]- $hour);
//then redirect them to the members area
(This is line 62) header("Location: members.php");


Any ideas please - any help will be great :)
Hi thanks for the first 2 answers - the very first line of my page starts:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Login</title>
</head>
<?php

Then after i start my php i enter rest of the code.

does header need to go even before
<!DOCTYPE html PUBLIC "-//W3C//DTD .....

thanks - Please help its annoying me.
Thanks alot for all your help everyone - ive got it sorted - i swapperd the php and html code around.

Anyideas of how i can make it so when user loggs in they are taken to a personal page of there own - and not just a page tht is shared between all users. Please help me on this one - thanks.

When using Mysql- how do you change system values like- ft_min_word_len? I am trying to build a search but I want the search to allow words less than four letters- which is the default.

I have a 115 MB mySQL database on one of my osCommerce powered stores. The store has around 47-000 products in it. I have cached just about query I can for this store. On every page that displays a product price there are two queries that I cannot cache. It can take anywhere from 0.2 seconds to 2 seconds to run each of them. It takes about 3 seconds on average to load each page (plus download time).

I currently have this store on a vps with 256 MBs of RAM and 1% CPU time from eight 3.2 GHz Xeon cores.

Is there something I can do in the database to speed up the query times? Will upgrading to a 512 MB or 1024 MB VPS with 2% or 4% cpu time make much of a difference?