Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: dldl
  • Order by date
  1. dldl

    convert a string to a decimal before update a table or insert data into table

    I got the solution already. pInsert[3] = new SqlParameter("@p4", SqlDbType.Decimal, 18, "price"); pInsert[3].Precision = 18; pInsert[3].Scale = 3; pInsert[3].Value = "";
  2. dldl

    convert a string to a decimal before update a table or insert data into table

    I'd like to ask you how to convert a string into a decimal before update a table or insert data into table, after a user inserts a row, or update a row from a dataGridView. In my case, I want the column of price to be decimal, I do it as following, but it is not work, please help, thanks...
  3. dldl

    search engin

    haha, the malformed data have not problem now, i change post data method by using POST, because i could not pass huage data by using GET method.
  4. dldl

    search engin

    So you enter that text in your textarea with then name content and... What do you mean "can not submit" ? the IE browser give me some massage with "HTTP 406 not acceptable"
  5. dldl

    search engin

    ...data like the following,sql injection attact, if i got too special characters "Man slugged $300 by police during dispute with local gym!@#$%^&*()_-+={}[]|\:";'<>,.?/" 3. Then I assume the use of $kwant in the code posted at on Mar 12 15:50 was a typo. i just make a typing mistake, it...
  6. dldl

    search engin

    if i post some data as following after i changed my code, it meets database attack. why? "Man slugged $300 by police during dispute with local gym!@#$%^&*()_-+={}[]|\:";'<>,.?/
  7. dldl

    search engin

    As from that fragment is not clear what $content variable does the form.php for user post a thread as we do here. and i change the code as following, please check it is ok now. Form.php <form action="verify.php" method="GET" > <textarea class="textarea" rows="10" cols="70" name="content"...
  8. dldl

    search engin

    >>No, I mean to escape the special characters in the received >>string. In your earlier code that would look like : Please check the following my code, is it ok form.php <form action="verify.php" method="GET" > <textarea class="textarea" rows="10" cols="70" name="content"...
  9. dldl

    search engin

    i try fulltext, it looks good SELECT ... MATCH () AGAINST() as score from .... WHERE MATCH () AGAINST () order by score desc; and i will change post data by using Get method
  10. dldl

    search engin

    ...most relevant with games keyword must sit on the top of the other one >>>Please note that you are grouping by id and id is primary key. So count(*) will never ever be greater than 1. For the same reason the presence of distinct clause makes no difference. it is true, but how i can...
  11. dldl

    search engin

    ...,('Games ') ,(' Games'); //////////////////// my code $search_string=$_POST['search_string']; $sql="select distinct count(*) as occurences, id, Description from keyword_relevance where ("; while(list($key,$val)=each($search_string)){ if($val<>" "...
  12. dldl

    could not output resize image

    ...content="text/html; charset=utf-8" /> <title>xxxxx</title> <script type="text/javascript" src="bbcode.js"></script> <style type="text/css"> * {padding:0; margin:0;} body{ padding:0; border:0; background-color:#8F898B; margin:0; } #container { width:1024px; height:1560px...
  13. dldl

    could not output resize image

    i also delete my cookie from my browser too, and restart my computer, but it still not help.
  14. dldl

    could not output resize image

    In another .php file, i have a code as following, but it still could not display out the image. $image="cat.jpg"; echo " <img alt=\"image\" src=\"display_thread_image.php?image=$image\" /> ";
  15. dldl

    could not output resize image

    you are right, i change it as following, but still not work. if(exif_imagetype($filename)==IMAGETYPE_JPEG) header('Content-Type: image/jpeg'); else if(exif_imagetype($filename)==IMAGETYPE_GIF) header('Content-Type:image/gif'); if(exif_imagetype($filename)==IMAGETYPE_JPEG)...
  16. dldl

    could not output resize image

    ...$height_orig) = getimagesize($filename); $ratio_orig = $width_orig/$height_orig; if ($width/$height > $ratio_orig) { $width = $height*$ratio_orig; } else { $height = $width/$ratio_orig; } // Resample $image_p = imagecreatetruecolor($width, $height); $image =...
  17. dldl

    w3 validator

    Nothing at all
  18. dldl

    w3 validator

    Thanks for your time anywhere , it is so hard to find the problem out.
  19. dldl

    w3 validator

    >>>> where in the code can you set $q = null to get the error?<<< From index.php include("getSql.php"); function get_number_of_rows(){ include("../condatabase.php"); $searchStr=$_GET['searchStr']; $q=get_sql($searchStr)...
  20. dldl

    w3 validator

    [CODE] convert_data.php <?php function output_post ($post) { //Make safe any html $post_no_html = htmlspecialchars($post); //Make sure there is no whitespace at the end of the message //It's conceivable that the user will start their message with whitespace $post_abridged =...

Part and Inventory Search

Back
Top