|
Please shorten your code... It is hard to read this way...
I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is. (V)
|
|
|
|
|
I've scalped as much as it's readable.
|
|
|
|
|
Hi, I'm trying to clear a database table of data and reset autoindex to 1
<!DOCTYPE html><html>
<head>
<meta charset=utf-8>
<title>database table remove data</title>
</head><body>
=mysqli_connect(=============="; }
if(isset($_POST['total']))
mysqli_query($con,"TRUNCATE TABLE testtbl set id=1");
mysqli_close($con);
?>
|
|
|
|
|
Your syntax is wrong...
TRUNCATE TABLE testtbl set id=1
It should be like this
TRUNCATE TABLE testtbl
In MySQL TRUNCATE TABLE will reset AUTO_INCREMENT counters (before 5.0.3 it's true only if there is not FKs on the table, but since 5.0.3 it happens always regardless of FKs)...
I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is. (V)
|
|
|
|
|
I am programming in c# and html. On the bottom part of the page I would like to show a series of pictures, that need to scroll around. There are about 20 pictures.
I have tried to create a panel in html but am unable to scroll each picture. Any assistance will be appreciated.
<pre lang="SQL">
|
|
|
|
|
Do you mean like this:
This is a picture This is a picture This is a picture This is a picture
if so just add overflow-x, overflow-y, and overflow to css
Help people,so poeple can help you.
|
|
|
|
|
I need them to be next each other, and then be able to scroll across the page.
I will try your advice and let you know the result.
Thanks
Mike
|
|
|
|
|
This is a picture This is a picture This is a picture This is a picture
then add a div with width that contains all the pictures in one row inside your viewport and give your viewport overflow style
Help people,so poeple can help you.
|
|
|
|
|
|
guys;
I need to place a picture on a panel that has opacity less than 1, but i don't want this picture to inherit the opacity.
Can you help me with that please.
Help people,so poeple can help you.
|
|
|
|
|
In a vb.net 2010 web form application, the folllowing gridview control is loaded with data and 3
textboxes are displayed when the aspx page first loads. Now I want to allow the user to be able
to enter last name, first name, and/or middle name so they can search for 'selected' people by
name. This way less rows would be displayed in the gridview control
I would like to do one of the following options:
1. Have the user enter the appropriate name in up to 3 texboxes and click on a submit button. The
data would be reloaded into the gridview control displaying only the records the user selected to
view.
2. The other option would be if the user enters values in the applicable textboxes and the
gridview control would display the selected rows in the gridview control when the focus is lost
from each textbox.
Thus would you show me the code on how to accomplish this goal? The following is the applicable
aspx page:
<pre>
<asp:Content ID="Content1" ContentPlaceHolderID="MPHead" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MPContent" Runat="Server">
<asp:TextBox ID="lname" runat="server"></asp:TextBox>
<asp:TextBox ID="fname" runat="server"></asp:TextBox>
<asp:TextBox ID="mname" runat="server"></asp:TextBox>
<asp:GridView ID="GridViewSupport" runat="server" AutoGenerateColumns="False"
DataSourceID="sqlCampusOPS" Width="987px">
<Columns>
<asp:BoundField DataField="lastName" HeaderText="Last Name"
SortExpression="lastName" />
<asp:BoundField DataField="firstName" HeaderText="First Name"
SortExpression="firstName" />
<asp:BoundField DataField="middleName" HeaderText="Middle Name"
SortExpression="middleName" />
<asp:BoundField DataField="suffix" HeaderText="Suffix"
SortExpression="suffix" />
<asp:BoundField DataField="userid" HeaderText="User Id"
SortExpression="userid" />
<asp:BoundField DataField="schoolnum" HeaderText="School Number"
SortExpression="schoolnum" />
<asp:BoundField DataField="spa" HeaderText="SPA" SortExpression="spa" />
<asp:BoundField DataField="mrref" HeaderText="M Ref" SortExpression="mrref" />
</Columns>
</asp:GridView>
<asp:SqlDataSource ID="sqlCampusOPS" runat="server"
ConnectionString="<%$ ConnectionStrings:sqlCampusOPS %>" SelectCommand="SELECT i.[lastName]
,i.[firstName]
,i.[middleName]
,i.[suffix]
,a.[userid]
,a.schoolnum
,a.spa
,a.mrref
from [OPS].[dbo].[Identity] i
inner join [OPS].[dbo].[Person] p on i.identityID = p.currentIdentityID
inner join [OPS].[dbo].[UserAccount] u on u.personID = p.personID
inner join [CampusOps].[dbo].[AtnLtrUsers] a on a.userid =u.username
where (i.[lastName] like '%' + @lname + '%' or
i.[firstName] like'%' + @fname + '%'
or i.[middleName] like'%' + @mname + '%')
or (@fname is null and @lname is null and @mname is null)
order by i.[lastName], i.[firstName], i.[middleName]"
CancelSelectOnNullParameter="False">
<SelectParameters>
<asp:ControlParameter ControlID="lname" Name="lname" PropertyName="Text" />
<asp:ControlParameter ControlID="fname" Name="fname" PropertyName="Text" />
<asp:ControlParameter ControlID="mname" Name="mname" PropertyName="Text" />
</SelectParameters>
</asp:SqlDataSource>
</asp:Content>
|
|
|
|
|
I want to make website can add / update / delete content file text (.txt).
For example I created a textbox and fill information. Then press the button to save this information in a txt file. I also want to display the content of txt file in my web page. Please help me. Because I embedded web in microcontrollers, and it can't run apache, mysql, php so I must use html, javacript and I do not have much experience in javascript.
Thanks
|
|
|
|
|
|
Not really understand how microcontroller rules out web server...
If you wan to use html/javascript in a browser environment, you have a lot of problems. In that environment JavaScript can not access local resources like IO...
You may use node.js as a solution, but in any case your description of problem is unclear...
I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is. (V)
|
|
|
|
|
every dear friend!! need you warm heart and warm head. First I write a firefox extension which realize a function by javascript, then I want to call this js function by a c++ client, for example, there is button in the c++ client, when I click the button, the function in the js is called. From website I know xpcome has to be used, the call sequence is "c++ client" calling "xpcom" calling "javascript", right? I am a little puzzled, would you like explain? or better if there is souce code example. Thank you very ver much!
|
|
|
|
|
We developed one of the application using MVC3 framework and it is successful project. Now we are going to develop a new project with the latest Microsoft web technologies. This new project need to be scalable and efficient ,so that we can extend it as SaaS application. We are thinking of using MVC3 but we also need to look at other framework that fits our new project. Before starting a new project I need to evaluate Microsoft latest web framework.
So, do you have any suggestions for any web UI framework available?
Narendra
modified 18-Sep-14 13:21pm.
|
|
|
|
|
In my opinion Bootstrap is the latest UI framework. Websites developed in Bootstrap frame work are really amazing and at the same time responsive too and therefore it works great with any device.
|
|
|
|
|
I wanted to use Require Js in one of my projects. May I know if anyone could tell me if it would be a wise approach or not?
I have least idea on RequireJs. So would like to learn, so if possible please suggest some links.
Thanks
|
|
|
|
|
That's a tool / library, isn't it? Hence the question is: why do you want to use a specific tool? "I want to use a hammer in my project" - does it involve nails or screws?
|
|
|
|
|
That was not my question exactly.
What I meant was RequireJs is a new concept that is an alternative to bundling and minification in MVC projects and the requireJs optimizer is nice. So, I want to learn that, if you could provide me with any good articles to follow up with!!
|
|
|
|
|
|
Thanks ThatRaja
I will look into this and start working.
Have you used requireJs, so that I could post any doubts here.!
Thanks again
|
|
|
|
|
Nope, I don't have exp. on that. You could try the forum @ bottom of Sacha's article or RequireJs site.
I'm busy with learning AngularJs.
|
|
|
|
|
Ok Sure..
Thanks a lot
|
|
|
|
|
I want to make a popup to be shown on button click in wordpress. I had made button by using button creator plugin and also a pop up by using wordpress popup plugin. But the problem is that i am unable to give the link of popup to button. Please help me to give step by step process that how will i give popup link to button by which when i click on the button it will show popup .
|
|
|
|