Jump to content

Wrong parameter count for mysql_result()


JankaZ

Recommended Posts

<form method="post"> 
Jautajums: <input name="jautajums" type="text" /> <input type="submit" value="Jautat" />

<?php
$conectdb = mysql_connect("localhost","root","1991jz9969470");
if (!$conectdb)
  {
  die('Could not connect: ' . mysql_error());
  }
mysql_select_db("db", $conectdb);
$atbilde = mysql_result(mysql_query("SELECT atbilde FROM bot WHERE jautajums='".$_POST['jautajums']."'"));
echo $atbilde;
?>

<br />
<? echo("Tu: $jautajums"); ?>
<br />
<? echo("Bots: $atbilde"); ?>

 

Plzz help with this error

jautajums = question

atbilde      = answer

 

Link to comment
https://forums.phpfreaks.com/topic/197971-wrong-parameter-count-for-mysql_result/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.