Go Back   HTMLCenter Web Development Forums > Web Design and Development > Programming and Scripting

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 04-17-2008, 11:41 PM
Registered User
 
Join Date: Jul 2004
Posts: 224
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, 04: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

vB 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 08:57 AM
Remote RAID/Mirror curtiss Servers 4 04-10-2007 11:08 AM
site works on one server – on another not rikardlassenius Programming and Scripting 2 01-18-2007 02:11 AM
Apache error under Win2000 ocoisadificil Servers 0 09-12-2006 08:54 AM
Looking To Set Up A Server curtiss Servers 23 02-15-2005 06:19 PM


All times are GMT -5. The time now is 11:35 PM.

 
KickApps
Clicky Web Analytics


Subscribe to our feed | add to myYahoo!

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