Jump to content

getmukesh

Members
  • Posts

    15
  • Joined

  • Last visited

Everything posted by getmukesh

  1. Actually problem is, javascript cannot access those controls which already disabled in document.
  2. which errors gives it. i think everything is okay... can you placed the other code which contains forms and controls.
  3. Replace this code in your code, i think, then you got solution while($row = mysql_fetch_array($result)){ $message = "<h1>Real Estate Term of the Day</h1>"; $message .= "<br>Date".$row['Date']; $message .= "<br>Par1".$row['Par1']; $message .= "<br>Par2".$row['Par2']; $message .= "<br>Par3".$row['Par3']; $message .= "<br>Par4".$row['Par4']; $message .= "<br>Par5".$row['Par5']; } $to = "email"; $subject = "Hi!"; $body = $message;
  4. You can use this function for populate single field from table of spacific record function GetField($TableName,$InputFieldName,$InputFieldValue,$OutputFieldName) { $sql= "Select ".$OutputFieldName." from ".$TableName ." Where ". $InputFieldName."='".$InputFieldValue."'"; $res=mysql_query($sql) or die(mysql_error()) ; $str=""; if (mysql_num_rows($res) > 0 ) { $res_arr=mysql_fetch_array($res); $str=$res_arr[0]; } //echo $str; return $str; } ------------------------------------------------------------- Another is, using this you will get two dimensional array. like if you pass $arr = select_row("select * from employee"); you can retrieve the fields like 1st record == $arr[0]['name'] 2nd record == $arr[1]['name'] Please check it, if you have any problem, please let me know.. function select_row($sql) { if ($sql!="") { $result = mysql_query($sql) or die(mysql_error()) ; if ($result) { while($row = mysql_fetch_array($result)) $data[] = $row; } return $data; } }
  5. i will do it quickly within 1 hours in $15..
  6. you can check by using select * from tablename where datefield >= sysdate() if numrows > 0 echo "errors" else echo "other errors"
  7. Let us try this query, i have replaced "in" instead of "=" SELECT name from components WHERE product_id in (SELECT id from products WHERE name='$prod') Try this, i think it will solved the problem.
  8. Please find attached exact code for ajax upload. If you did not find any solution. if you have any problem please let me know. [attachment deleted by admin]
  9. Please find attached file, i have give you actual code, its already running. successfully. please check it. If you have any problem please tell me. [attachment deleted by admin]
  10. if you not get any solution, plz tell me, i will give you script for updating mysql table using ajax
  11. To fix the select box size, you can give the style. <select name="selcountry" style="width:150px">
  12. i need to see your code, so that i will correct it, can you forward it.
  13. your problem has been solved or not? otherwise i will give you perfect solution.
×
×
  • 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.