Welcome to Dream.In.Code
Getting PHP Help is Easy!

Join 132,613 PHP Programmers for FREE! Get instant access to thousands of PHP experts, tutorials, code snippets, and more! There are 951 people online right now. Registration is fast and FREE... Join Now!




Write excute query of one domain to another domain

 
Reply to this topicStart new topic

Write excute query of one domain to another domain

dadaso
post 16 Jul, 2008 - 04:44 AM
Post #1


New D.I.C Head

*
Joined: 9 Jun, 2008
Posts: 23


My Contributions



i want following query run under thegadgetmall.co.in
and this query is of moneytrudy.com

CODE
  $sql    =    " INSERT INTO `tickets_tickets` (`tickets_userid`, `tickets_username`, `tickets_subject`, `tickets_timestamp`, `tickets_status`, `tickets_category`, `tickets_parent`, `tickets_question`, `tickets_emailinform`, `ticket_replyemail`, `tickets_guid`, `newflag`, `hosting_id`) VALUES (2, 'dadaso', 'hiii', '2008-07-16 08:39:48', 'Open', 1, 0, 'Fill in hosting:\r\n\r\nDOMAIN DETAILS :-\r\n===========================\r\nDOMAIN : ______________\r\nUSER : ________________\r\nPASS : ________________\r\n \r\nHOSTING DETAILS :-\r\n===========================\r\ncPANEL url : ______________\r\nUSER : ________________\r\nPASS : ________________\r\n\r\n\r\nOr\r\n\r\nyou can ''copy and paste'' email(s) that you received from hoster hereunder:\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nOr\r\n\r\nYou may forwad email you received from hoster on this mail id : \r\n\r\nbasti@wanadoo.nl', 1, 'zubairlinosys@vsnl.net', NULL, 2, NULL)";
  mysql_query($sql);

it gives follwing error


Warning: mysql_query(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /hsphere/local/home/tgmadmin/thegadgetmall.co.in/temp3/successguest.php on line 78
User is offlineProfile CardPM

Go to the top of the page

MitkOK
post 16 Jul, 2008 - 05:23 AM
Post #2


D.I.C Regular

Group Icon
Joined: 9 Aug, 2007
Posts: 314



Thanked 12 times

Dream Kudos: 250
My Contributions


And why do you post these lines ?
Check your connection code : mysql_connect(...)
User is offlineProfile CardPM

Go to the top of the page

dadaso
post 16 Jul, 2008 - 05:41 AM
Post #3


New D.I.C Head

*
Joined: 9 Jun, 2008
Posts: 23


My Contributions


QUOTE(MitkOK @ 16 Jul, 2008 - 06:23 AM) *

And why do you post these lines ?
Check your connection code : mysql_connect(...)


i check . it works perfectly for one domain.
but i want access another domain to insert query?
then it gives following error :

Warning: mysql_query(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /hsphere/local/home/tgmadmin/thegadgetmall.co.in/temp3/successguest.php on line 78
waiting...........................
User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 11/23/08 02:47AM

Live PHP Help!

PHP Tutorials

Reference Sheets

PHP Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month