database
so, why won't you use a database again? It seems to make sense to use one. you can have a polls table, a banned IPs table, and a 3rd table that ties them together. You would even get voting statistics this way, if you wanted.
As for the text file, just by looking at your post, it seems like your new IPs contain a newline character which gets added.
What would happen if you were to add the new IP directly...
User Profile
Collapse
-
I was reading this thread out of interest, and I must say that I'm impressed with the effort shown by HaLo2FrEeEk to answer the question.
You elevate the quality of this forum!
Thanks!Leave a comment:
-
The correct output of this program is "0,0,1,2,3, 4,".
When using recursive function calls, execution path has two directions: winding and unwinding.
Winding is when your condition (x>0) is true and you call myfunc(--x). Note that no call to printf(...) is reached during the winding process!
Once your condition (x>0) is false, and you stop calling myfunc(--x), the first printf(...) is reached...Leave a comment:
-
um, am I missing something? I thought the query provided to you in the replies solved the problem.
Did you try it out on your Access database?...Leave a comment:
-
I didn't have MS Access installed, so this query is in a mysql database. The SQL is pretty basic, but you may need to check for compatibility.
For instance, the "to_date" function is in mysql only, but there should be something similar in Access, look at this:
http://office.microsoft.com/en-us/ac...984861033.aspx
here's the query:
Code:select b.fullname as 'Full Name', a.commDate
Leave a comment:
-
is this a Microsoft Access 2003 database
also, the first row in the output you provided has a rate that is missing from tblAllDedRate (48.00, should be 48.60?) is that a typo?Leave a comment:
-
Thank you Frinny for your reply. I ended up using a repeater like semomaniz suggested.
And then my boss wanted to use Ubuntu, Apache and PHP - so it looks like I'm back to page one.
cheers!Leave a comment:
-
2 rows for each database record in a gridview
hi and thanks for reading.
I am working on a web page that will display records from a database. Each record has a total of 8 columns. One column may be as long as 500 characters, and the other 7 columns are between 5 to 25 characters. For each record in the dataset returned from the database, the short columns should be above, and the long column below.
In other words, each database record is made of two rows, the 7 short... -
captainB replied to How to automatically insert data to mysql database without submit button in php?in PHPIn your server-side code you can run two separate SQL INSERT statements when the form is posted, one for each table.
You can also execute a stored procedure and pass it your form values, and have it insert the values to two tables or more.
If you need more help, maybe you can post some more information, like -
what are the FORM values you are inserting?
What is the table structure of these 2 tables?
...Leave a comment:
-
captainB replied to How to automatically insert data to mysql database without submit button in php?in PHPat any rate, if you know the length of the barcode, it should not be too hard to have the info posted back to the server right away, using ajax, or just the post method of the form...Leave a comment:
-
captainB replied to How to automatically insert data to mysql database without submit button in php?in PHPhi msmjsuarez -
how are you planning on doing this? Is it going to be based on a fixed length of the barcode number, or a timed interval?
are you going to use javascript?
It seems like you're going to have to use javascript here.
Maybe try coding something and post it here?
BLeave a comment:
-
which rows are missing?
when you are viewing the source code (html) of the page sent from this microcontroller , are you getting a complete HTML with all rows?
Next time you see missing rows, post the source code here.
What kind of web server are you using to send the page?
What kind of browser are you using to view the page?Leave a comment:
-
I don't think you should put the 3 tables in "TH" elements, put them in "TD" elements instead. As for the layout - you are referencing a css file - link <href="/styles.css" rel="stylesheet " type="text/css" />
can you post this file?Leave a comment:
-
can you post your HTML code here?
is there a live web page we can see?Leave a comment:
-
yes, you can have as many <table> elements as you want. The tables will be on top of each other by default, so to get the "side by side" effect, you can put <table> elements inside <td> elements.
For example, you could create a table that has one row, and three cells (<td>) within that row. Each cell will then hold a table with your status buttons and stuff :
<table><tr>...Leave a comment:
-
if you're using <tr> and <td> elements, you ARE using a table. (that's HTML table, not database table). You forgot to add the <table> and </table> tags.
If it doesn't work like you intend it to after that, let us know :)Leave a comment:
-
enumerator in custom configuration section
greetings!
In my asp.net application, I created a custom section in web.config that contain strings that are quotes to display in my home page. Every request for my home page (default.aspx) grabs a quote based on a random index.
my web.config section looks like this:
<configSections >
...
<section name="quotesSec tion" type="QuotesSec tion"/>
</configSections>
... -
serliazable attribute
what is the difference between [serializable] and [serializable()]?
Visual Studio intellisense tells me that the [serializable] attribute indicates that a class can be serialized. I understand that.
When I use the other attribute declaration - [serializable()], intellisense tells me
"initialize s a new instance of the System.Serializ ableAttribute class".
Can someone explain to me why I would use this...
No activity results to display
Show More
Leave a comment: