gta1151 Posted May 15, 2010 Report Share Posted May 15, 2010 Labdien te atkal es,gribu jūs man palīdzat ar vēstules scriptu Script Erroru met 58 un 61 rinda. Quote Link to comment Share on other sites More sharing options...
Kemito Posted May 15, 2010 Report Share Posted May 15, 2010 Varbūt parādīsi arī to error :D Quote Link to comment Share on other sites More sharing options...
Kemito Posted May 15, 2010 Report Share Posted May 15, 2010 Tu uzskati ka šis ir pareizs sql vaicājums? $result = mysql_query("SELECT * FROM veestules WHERE sanjeemeeja_id = $id"); Lai mainīgo liktu kverijā izmanto - '".$id."' Laikam tā vai pēdas otrādi :) Quote Link to comment Share on other sites More sharing options...
chizijs Posted May 15, 2010 Report Share Posted May 15, 2010 Šīm skriptam ir jaiet, jo autors ir ownmen (laikam ^^) Ā Tu sql ieliki? :D Quote Link to comment Share on other sites More sharing options...
gta1151 Posted May 15, 2010 Author Report Share Posted May 15, 2010 (edited) Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in I:\xampp\htdocs\vestules\veestules_inbox.php on line 58 Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in I:\xampp\htdocs\vestules\veestules_inbox.php on line 61 Jā ielieku,scripts tapat paņemts nevis viss faili Edited May 15, 2010 by gta1151 Quote Link to comment Share on other sites More sharing options...
mickys Posted May 15, 2010 Report Share Posted May 15, 2010 man liekas, vai es neredzu, kur ir connects uz DB Quote Link to comment Share on other sites More sharing options...
briedis Posted May 15, 2010 Report Share Posted May 15, 2010 Tu uzskati ka šis ir pareizs sql vaicājums? $result = mysql_query("SELECT * FROM veestules WHERE sanjeemeeja_id = $id"); Lai mainīgo liktu kverijā izmanto - '".$id."' Laikam tā vai pēdas otrādi :) Pirmkārt, tās ir dubultās pēdiņas, otrkārt, ja tas ir INT's tad tas nav jāliek vēl atsevišķās pēdiņās. Quote Link to comment Share on other sites More sharing options...
gta1151 Posted May 16, 2010 Author Report Share Posted May 16, 2010 (edited) īsti nepratu ko darīt. Connection <?php $db_host = 'localhost'; $db_user = 'root'; $db_password = 'parole'; $db_name = 'database'; $connection = @mysql_connect($db_host, $db_user, $db_password) or die(mysql_error()); mysql_select_db($db_name, $connection); mysql_query("SET NAMES utf8"); ?> Edited May 16, 2010 by gta1151 Quote Link to comment Share on other sites More sharing options...
lostz Posted May 16, 2010 Report Share Posted May 16, 2010 nu ja tu saliki tam connect, visu kā vajag tad ar to nebūtu jābūt problēmām. Quote Link to comment Share on other sites More sharing options...
Pentiums Posted May 16, 2010 Report Share Posted May 16, 2010 pļe, tu to erroru parādīsi vai nē? Iespējams ka datubāzē to tabulu ko gribi izsaukt vai lauku sauc savādāk nekā kverijā.. Quote Link to comment Share on other sites More sharing options...
gta1151 Posted May 16, 2010 Author Report Share Posted May 16, 2010 Varēji drusku aukstāk apskatīties. Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in I:\xampp\htdocs\vestules\veestules_inbox.php on line 58 Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in I:\xampp\htdocs\vestules\veestules_inbox.php on line 6 Quote Link to comment Share on other sites More sharing options...
briedis Posted May 16, 2010 Report Share Posted May 16, 2010 Varēji drusku aukstāk apskatīties. Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in I:\xampp\htdocs\vestules\veestules_inbox.php on line 58 Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in I:\xampp\htdocs\vestules\veestules_inbox.php on line 6 Varēji apskatīties arī siltāk ;) 100% Kļūda kvērijā... (mysql_error() ko satur?) Quote Link to comment Share on other sites More sharing options...
gta1151 Posted May 16, 2010 Author Report Share Posted May 16, 2010 Varēji apskatīties arī siltāk ;) 100% Kļūda kvērijā... (mysql_error() ko satur?) Ko tālāk darīt. Quote Link to comment Share on other sites More sharing options...
briedis Posted May 16, 2010 Report Share Posted May 16, 2010 Ko tālāk darīt. Labot kļūdu, ko tad vēl citu? :) Quote Link to comment Share on other sites More sharing options...
gta1151 Posted May 16, 2010 Author Report Share Posted May 16, 2010 it kā viss tur ir pareizi. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.