<?php

   $con=mysql_connect("localhost","root","");
      if(!$con)
    	{
	   	 die('Could not connect:'.mysql_error());
         }

mysql_select_db("test",$con);





$result = "SELECT Fieldvalue FROM jos_rsform_submission_values WHERE SubmissionId IN (SELECT FieldValue,SubmissionId FROM jos_rsform_submission_values WHERE FieldValue = '".$_POST['searchterm']."')";



       
       print_r(mysql_fetch_array($result));



--> i dont know what to do with this part..




 mysql_close($con);

 ?>

Recommended Answers

All 3 Replies

Since you posted your question [?] in a thread with the same title, I am guessing you need help with the same.
I suggest you to read the sticky thread . :)

Btw, You don't have mysql_query in your code.

Your query is not being executed because there is no call to mysql_query in the code.

$excuteresults=mysql_query($result);
 print_r(mysql_fetch_array($excuteresults));

try like this.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.