Warning: mysql_result():

K

KingEli

Guest
Einen wunderschönen Guten Tag,

Ich hab da ein Problem mit dem Auctionsscript PHP-Auction auf www.baby-sun.de.
Wenn ich z.B. auf Verkaufen klicke, zeigt er mir diese drei Warnings an.
  • Warning: mysql_result(): Unable to jump to row 0 on MySQL result index 20
    in /srv/www/htdocs/web2/html/sell.php on line 473

    Warning: mysql_result(): Unable to jump to row 0 on MySQL result index 20
    in /srv/www/htdocs/web2/html/sell.php on line 474

    Warning: mysql_result(): Unable to jump to row 0 on MySQL result index 20
    in /srv/www/htdocs/web2/html/sell.php on line 475
Ich hab schon in verschiedenen Foren um Hilfe gebeten, es konnte mir aber leider
keiner helfen.

Da es ja im Intenet nicht funktioniert, habe ich auf meinem Pc alles so eingerichtet
wie im Internet:

also SUSE LINUX 9.1 installiert
Apache
PHP
MYSQL
PhpMyAdmin

danach das Auctionsscript und schaue da es geht. Aber warum funktioniert es im
Internet auf dem Server nicht.

Hier mal ein Auszug aus dem Script:
 
CODE
// -------------------------------------- shipping
if ( intval($shipping)==1 )
$TPL_shipping1_value = "CHECKED";

if ( intval($shipping)==2 )
$TPL_shipping2_value = "CHECKED";

if ( !empty($international) )
$TPL_international_value = "CHECKED";

// -------------------------------------- reserved price
if ( $with_reserve=="ja" )
$TPL_with_reserve_selected = "CHECKED";
else
$TPL_without_reserve_selected = "CHECKED";

// -------------------------------------- photo source
if ( intval($imgtype)==1 )
$TPL_imgtype2_SELECTED = "CHECKED";
else
$TPL_imgtype1_SELECTED = "CHECKED";

// bm 05.12.2001 --------------------
// -------------------------------------- features

if ( !empty($fett) )
$TPL_fett_value = "CHECKED";

if ( !empty($marker) )
$TPL_marker_value = "CHECKED";

if ( !empty($topkat) )
$TPL_topkat_value = "CHECKED";

// ------------------------------------

$my_result = mysql_query("select * from features order by id");
$fett_preis = print_money(mysql_result($my_result,0,"value"));
$marker_preis = print_money(mysql_result($my_result,1,"value"));
$topkat_preis = print_money(mysql_result($my_result,2,"value"));
$bild2_preis = print_money(mysql_result($my_result,3,"value"));
$bild3_preis = print_money(mysql_result($my_result,4,"value"));

$TPL_fett_preis = $fett_preis;
$TPL_marker_preis = $marker_preis;
$TPL_topkat_preis = $topkat_preis;
$TPL_bild2_preis = $bild2_preis;
$TPL_bild3_preis = $bild3_preis;

$TPL_error_value = $$ERR;

// update current session
if ( isset($sessionVars["SELL_DATA_CORRECT"]) )
unset($sessionVars["SELL_DATA_CORRECT"]);
putSessionVars();

$user_nick = $HTTP_COOKIE_VARS["$LOGGED_IN_NICK"];
$user_query = "SELECT * FROM users WHERE nick='$user_nick'";
$user_result = mysql_query($user_query);
if ($user_result)

[SIZE=7]Dies sind die drei Warnings[/SIZE=7]
|
V
{
$location_zip = mysql_result($user_result,0,"zip");
$country = mysql_result($user_result,0,"city");
$frei = mysql_result($user_result,0,"suspended");
}

if ($frei == 1)
$TPL_suspended = "Achtung!<BR>
Sie haben Ihren Account noch nicht <a href=\"./help.php?topic=Verkaufen\">freigeschaltet</a>
oder er wurde gesperrt.";
else
$TPL_suspended = "";


// include corresponding templates/template and exit
include "templates/template_sell_php.html";
include "footer.php";
exit;
}


 
hoi kingeli,

Es ist nur ein warning, kein fehler... wenn du die warnings ausschalten möchtest öffne die php.ini datei und such dort auf E_ALL oder was ähnliches und gib E_ALL & ~E_WARNINGS damit siehst du nur fehler und keine warnungen.

Hier ein paar links.

http://www.developer.com/lang/php/article....10941_1472701_1

http://www.php.net/manual/en/ref.errorfunc.php

http://lists.evolt.org/archive/Week-of-Mon...930/123607.html

mein tipp ist die warnings nur local verwenden, wenn du deine seite live hast dann macht deine eigene error handler, wie du das machst findest du in die links oben.

Gruss
- Steven

 
Ich hab es geändert aber es zeigt mir immer noch die Warnings an.
 
Nö kann ich nicht das macht mein Anbieter automatisch.

Aber normaler weise müsste ich den Apache Server neustarten können aber
leider weiss ich den Befehl unter Linux nicht.
 
Ich habe Zugriff auf die php.ini
Mit dem Programm putty, log ich mich auf meinen Server mit root ein, dann hab
ich Zugriff auf die php.ini die ich ja schon geändert habe.
Nur weis ich den Befehl jetzt nicht wie ich Apache und MySql neustarte.
 
Hab dn Server jetzt neugestartet und folgendes zeigt er mir an da waren mir die Warnings aber lieber.
  • Notice: Undefined variable: PHP_SELF
    in /srv/www/htdocs/web2/html/includes/config.inc.php on line 223

    Notice: Undefined variable: PHP_SELF
    in /srv/www/htdocs/web2/html/includes/config.inc.php on line 239

    Notice: Undefined variable: PHP_SELF
    in /srv/www/htdocs/web2/html/includes/config.inc.php on line 251

    Notice: Undefined variable: PHP_SELF
    in /srv/www/htdocs/web2/html/includes/config.inc.php on line 283

    Notice: Use of undefined constant getSessionVars - assumed 'getSessionVars'
    in /srv/www/htdocs/web2/html/includes/sessions.inc.php on line 45

    Notice: Use of undefined constant putSessionVars - assumed 'putSessionVars'
    in /srv/www/htdocs/web2/html/includes/sessions.inc.php on line 86

    Notice: Use of undefined constant removeSession - assumed 'removeSession'
    in /srv/www/htdocs/web2/html/includes/sessions.inc.php on line 155

    Notice: Undefined variable: YA_SESSION_ID
    in /srv/www/htdocs/web2/html/includes/sessions.inc.php on line 199

    Warning: Cannot modify header information - headers already sent by (output
    started at /srv/www/htdocs/web2/html/includes/config.inc.php:223)
    in /srv/www/htdocs/web2/html/includes/sessions.inc.php on line 205

    Notice: Undefined variable: bid
    in /srv/www/htdocs/web2/html/includes/messages.inc.php on line 42

    Notice: Undefined variable: SESSION_ID
    in /srv/www/htdocs/web2/html/includes/messages.inc.php on line 160

    Notice: Undefined variable: id
    in /srv/www/htdocs/web2/html/includes/messages.inc.php on line 293

    Notice: Use of undefined constant ActualDate - assumed 'ActualDate'
    in /srv/www/htdocs/web2/html/includes/dates.inc.php on line 40

    Notice: Use of undefined constant ArrangeDate - assumed 'ArrangeDate'
    in /srv/www/htdocs/web2/html/includes/dates.inc.php on line 97

    Notice: Use of undefined constant ArrangeDateMesCompleto -
    assumed 'ArrangeDateMesCompleto'
    in /srv/www/htdocs/web2/html/includes/dates.inc.php on line 153

    Notice: Undefined index: baby_sun_LOGGED_IN
    in /srv/www/htdocs/web2/html/header.php on line 99

    Notice: Undefined index: baby_sun_LOGGED_IN
    in /srv/www/htdocs/web2/html/header.php on line 141
jetz blick ich garnicht mehr durch.
 
Danke für deine Hilfe, ich hab jetzt die Schna.... voll und lösch das Auctionshaus
von meinem Server und mach was eigenes aber nie wieder Auction, denn ich sitz
da jetzt schon über ein Jahr dran und es will einfach nicht.

Also dann bis demnächst, bei einem anderen Problem das ich sicher bald haben
werde
tongue.gif
.
 
Zurück
Oben