![]() |
data is not being update
when insert data in the GUI which is connected with mysql from php..
it is not being updated, meanzz when i open the page insert.php and insert the required data like.. Heading :- hello world Description:- text but when i submit, the data is not inserted in database. but database do update.. but when i insert only Heading: Hello World Description : <<nil>> Bingoo! also database is updated...and heading do insert in it. help me what is the problem behind this.. |
Re: data is not being update
Please post the source code, so that I can look for the bug.
|
Re: data is not being update
add.php
Code:
<?Code:
<? |
Re: data is not being update
The looks pretty simple, there seems to be no problem at all. TEXT type allows 65535 characters, so that shouldn't be a problem.
Try to debug the SQL query by printing it out, and check for any syntactical errors. |
Re: data is not being update
you right! but i am still face problem......actually there is no error outcome.
some time if i add heading, and let say i add only one line it do take and save it in database... |
Re: data is not being update
e.g
in description i am try to add Player of the Year Award Ricky Ponting (Australia) Test Player of the Year Award Ricky Ponting (Australia) ODI Player of the Year Michael Hussey (Australia) but when i add the same...but add more in it it do not insert Player of the Year Award Ricky Ponting (Australia) Test Player of the Year Award Ricky Ponting (Australia) ODI Player of the Year Michael Hussey (Australia) Women's Player of the Year Karen Rolton (Australia) i noted that when i remove the (single quote) after the women's i do insert... what is this problem i dont think this might be an error.. |
Re: data is not being update
' holds a special meaning in the SQL of end of string and so is the problem.
|
Re: data is not being update
oky fine but this problem didnt occur before two month ago...it used to word accurately
any how thanks for your help... |
Re: data is not being update
Probably becauase either you did not had ' in the data you were inserting or had the delimiter backslash for it.
|
Re: data is not being update
well i need to know that solution of this problem...
correction in last post oky fine but this problem didnt occur before two month ago...it used to work accurately |
| All times are GMT +5.5. The time now is 21:30. |