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...
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"
...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...
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!@#$%^&*()_-+={}[]|\:";'<>,.?/
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"...
>>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"...
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
...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...
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\" /> ";
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)...
>>>> 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)...
[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 =...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.