Welcome Guest, Not a member yet? Register   Sign In
need a help in debugging
#1

[eluser]samitrimal[/eluser]
hi
i started a blog.When i tried to post follwing code
Code:
<?php echo "hello";?>
Here is the example of mysql

CREATE TABLE IF NOT EXISTS `tbl_albums` (
  `album_id` int(8) NOT NULL AUTO_INCREMENT,
  `album_name` varchar(128) NOT NULL,
  `album_thumb` varchar(128) NOT NULL,
  PRIMARY KEY (`album_id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;
The result was
Code:
CREATE TABLE IF NOT EXISTS `tbl_albums` (
  `album_id` int(8) NOT NULL AUTO_INCREMENT,
  `album_name` varchar(128) NO
The line below it is not visible.
please check this link click here to see the problem and give me the idea or suggestion to overcome this problem.
#2

[eluser]techgnome[/eluser]
Since you're in HTML at that point, try wrapping the code in pre tags.

-tg
#3

[eluser]samitrimal[/eluser]
@TechGnome
I tried it but it didnt worked. i have used htmlspecialchars in the posted value when adding data so when i use <pre> it is shown in encoded form. Do i have to change anything while i am adding data in the table?
#4

[eluser]InsiteFX[/eluser]
You can also try code tags!

InsiteFX




Theme © iAndrew 2016 - Forum software by © MyBB