I'm trying to store a String which contains HTML in a MySQL database using Longtext data type. But it always says "You have an error in your SQL syntax". I tried to store a normal String and it works.
Update:
This is the query:
st.executeUpdate("insert into website(URL,phishing,source_code,active) values('" + URL + "','" + phishingSt...
I have a small webpage with a form, iframe-d in. When I put invalid input inside the form, the iframe covers up the navigation bar and I can't get the navigation bar back without closing and opening the page again.
Here is where I am (temporarily) hosting the webpage: dl.dropbox.com/u/1144456/rlp/v2/demo.html
the css stylesheet: dl.dr...
Any idea why the below code doesn't trigger if I were to put some HTML inside the textarea? It works fine it I don't have HTML in it, but I'm not sure why it doesn't work with it. Here is the code.
<% using (Ajax.BeginForm("AddPost", new AjaxOptions { UpdateTargetId = "blogPosts" }))
{ %>
<table>
<tr>
<t...
Hello all,
I have an ordered list (ol) on my page but the numbering is not showing up at all! I have done this:
<ol>
<li>my text</li>
<li>my text</li>
<li>my text</li>
</ol>
As I have typed the above, stackoverflow was able to render it correctly the way I wanted it to, like so:
my text
my text
my text
...
I have a list of complex entities (divs), that are scored.
The list will be sorted based on updates from the server as the user fills out a form.
What i haven't figured out is how to animate the entities into their new positions.
I don't want to just refresh the list.
Is there a magic JQuery technique that achieves this?
...
I want to have my title tag look like this:
My Website - Name of Page
I want to prepend the My Website - part so that I don't have to type it on every new page I make. So the title tag that I actually have on the page would be:
<title>Name of Page</title>
Is this possible?
...
I tried to make a simple contact form via HTML and PHP but the form doesnt seem to submit. it stays on the HTML page and doesnt post to the php form. would love someone to look over the code, thanks in advanced.
simple_form.html cdoe
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xh...
Hello im developing some backends in ASP.NET 2.0 and i have put all the images in Cache, GZIPED my CSS, JS files and everything to speedup the load of each options.
the performance its good and i have no problems with the clients but i want "MORE" fast loads and im looking for some recomendations.
Is important to mention that those web...
input[disabled='disabled']
{
background-color:#FFFBF0;
color: #28B51D;
}
I am using this example but that is not run in iexplore.
But also run in other browsers.
If any body know then please tell me that how to change the color of disabled html control in iexplore.
...
So I have simple video tag on HTML 5 page playing OGG video. I want to take Its RGB colors in format of array (assuming we know width and height) conteining colors for each pixel (from pixel 1,1 to maxWidth,maxHeight) like { {R:Color, G:Color, B:Color}, {R:Color, G:Color, B:Color} ,... }
...
I am trying to code an all in one HTML/PHP contact from with error checking.
When I load this file in my browser there is not HTML. I am a newb php programmer so most likely forgot something pretty obvious.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html ...
I have a CSS entry that looks like this:
.header {
background-image: url("./images/embouchure.jpg");
background-repeat: no-repeat;
height:160px;
padding-left:280px;
padding-top:50px;
width:470px;
color: #eaeaea;
border-bottom:1px solid #eaeaea;
}
How can I add the link to the the background image in t...
I'm trying to deploy a Google-Web-Toolkit web application on my tomcat. It works in Eclipse Hosted mode, it works on XAMPP without the rpc calls but on tomcat it doesn't even find the HTML.
Before anything happens I always gets
localhost:8080/test.html
the requested resource (/test.html) is not available.
Even when I just put a Hello...
I have the following HTML structure:
<div id="subgroup">
<h3>Group name #1</h3>
<a href="#">Link #1</a>
<a href="#">Link #2</a>
<h3>Group name #2</h3>
<a href="#">Link #3</a>
<a href="#">Link #4</a>
</div>
I have this flat structure because I want to use jQuery UI's accordion effect. I want to wrap all a elemen...
That's an HTML templater, not a php templater, not java or whatever.
I am looking for something like HAML for PHP. I tried the 2 projects for PHP, PHAML and PHPHaml both of which are suffering from serious bugs.
Do you know of any good html templater out there, preferably for PHP?
EDIT I''m looking for something that can turn this
<...
I have 3 menu's like cust , quote and table
Under customer,i have edit and delete.It's displaying but the list item in table isn't getting displayed
http://dpaste.com/hold/184077/
...
I have a ASP has a Function that converts
ä to ä so far so good.
I have lets say space for 10 char's if there are more cut them of if there are less fill the space up with  's. . Like this:
test            
but if i say "täst" it does this:
te ä t  
It interprets the ä not as one char...
I was having trouble with two types of buttons.
It was a form button and a css button basically. And I was advised that the css button whould use display:inline-block;
This made the whole a href tag actually look like a button.
But this invisible margin seems to be screwing up something. I tried separating them into separate css classes...
With ASP.NET Webforms, I could drag and drop a control on a form and be able to access its properties:
if (number == 0)
AddButton.Enabled = false;
Although I cannot drag and drop a control on a ASP.NET MVC View template, can I change its attributes?
For instance:
disable a button in some conditions and be able to enable it if c...
I'd like to take a string of text and find all of the hyper link tags, grab their href value, and replace the entire hyper link tag with the value of the href attribute.
...