#1 (permalink)  
Old 04-18-2008, 12:41 AM
Registered User
 
Join Date: Jul 2004
Posts: 247
Why doesn't fetch_array work on a remote server?

It works on a local server but not on a remote.
Quote:
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in e:\vhosts\...\files\getTableContents.php on line 15
Reply With Quote

  #2 (permalink)  
Old 05-10-2008, 05:40 PM
Till's Avatar
Administrator
 
Join Date: Jan 2002
Location: Berlin, Germany
Posts: 1,453
This has been answered a gazillion times, already but anyway:
PHP Code:
$res mysql_query("your query here");
if (!
$res) {
  echo 
mysql_error(); exit;
}
while(
$arr mysql_fetch_array($res)) {
// etc. pp.

Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
HELP! I'm going mad my CSS won't work marklawson Programming and Scripting 2 07-03-2007 09:57 AM
Remote RAID/Mirror curtiss Servers 4 04-10-2007 12:08 PM
site works on one server – on another not rikardlassenius Programming and Scripting 2 01-18-2007 03:11 AM
Apache error under Win2000 ocoisadificil Servers 0 09-12-2006 09:54 AM
Looking To Set Up A Server curtiss Servers 23 02-15-2005 07:19 PM


All times are GMT -5. The time now is 05:50 PM.

 
Bitrix
Clicky Web Analytics
CloudContacts
Maxtango


Subscribe to our feed | add to myYahoo!

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0
© 1997-2007 HTMLCenter