Jump to content
php.lv forumi

Vestules scritps


Recommended Posts

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 :)

Link to post
Share on other sites

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 by gta1151
Link to post
Share on other sites

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.

Link to post
Share on other sites

ī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 by gta1151
Link to post
Share on other sites

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ā..

Link to post
Share on other sites

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

Link to post
Share on other sites

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?)

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...