Instead of asking 'how to use PHP/MySQL to let users affect webpages' I'll ask this, because I learn better from projects and examples.
So how would I incorporate a VERY basic comment feature using PHP and MySQL?
...
I want to implement modules such as comment, rating, tag, etc. to my entities. What I thought was:
comments_table -> comment_id, comment_text
entity1 -> entitity1_id, entity1_text
entity2 -> entitity2_id, entity2_text
entity1_comments -> entity1_id, comment_id
entity2_comments -> entity2_id, comment_id
....
Is this approach correc...
Notepad2 is by far my most favorite editor to do quick edits to HTML, XML, etc...
One thing that would be absolutely awesome is the ability to highlight a chunk of XML and comment it out or uncomment it.
Is this possible with Notepad2?
...
Anyone know if there is a way to add comments to a file passed to resgen.exe?
Example:
ApplicationName=Hello World
ApplicationVersion=1.0
ApplicationMaker=Hello World Maker
;CommentHere
ValueYes=Yes
ValueNo=No
...
Consider this (horrible, terrible, no good, very bad) code structure:
#define foo(x) // commented out debugging code
// Misformatted to not obscure the point
if (a)
foo(a);
bar(a);
I've seen two compilers' preprocessors generate different results on this code:
if (a)
bar(a);
// and
if (a)
;
bar(a)
Obviously, this is a bad thing ...
I'm creating web pages (html) every day, but I would like the pages to have a comment in the source code.
In php you can set something like this
/**
* this is the info on the page
* @param x
* @author me
*/
Is there a similar standard that is used to set comments in html pages?
I would like to specify at least these options:
inform...
I have tried to find some resource for Subversion how to make revision history and logging message on source code; This question might be a simple
We changed our CVS to Subversion. I am having a problem that how to make Revision history and log message to show on source codes. In CVS , we had used
/**
* Revision:
* $Log$
*
*
* ...
It is valid JavaScript to write something like this:
function example(x) {
"Here is a short doc what I do.";
// code of the function
}
The string actually does nothing. Is there any reason, why one shouldn't comment his/her functions in JavaScript in this way?
Two points I could think of during wiriting the question:
The st...
Ok...I am new to rails so this may be a stupid question but need help. I just watched and implemented Ryan Bates screencaset about setting up a blog. You can see it here http://media.rubyonrails.org/video/rails%5Fblog%5F2.mov. Here is the skinny:
Two tables: Posts and Comments. Everything works great including the addition of comments v...
Hi,
Given the following xml document
<root>
<childnode0/>
<childnode2/>
<!--Comment1-->
<childnode3/>
<childnode4/>
<!--Comment2-->
</root>
I know the xpath to select all the comments at a particular level in xsl
string xPath = "/root/comment()";
However i'd like to select a comment where the inner xml is "Commen...
We have a MySQL table that was altered with
ALTER TABLE t COMMENT 'foo'
we later realize that we don't want that comment. Is there a way to delete it?
simply saying
ALTER TABLE t COMMENT 'NOT foo'
simply adds an additional comment, so that when you do a SHOW CREATE TABLE t it shows BOTH comments...
ETA:
AH, the problem seem...
Could you tell me the meaning of /*=NULL*/ below?
CMyCla::CMyCla(CWnd* pParent /*=NULL*/)
: CDialog(CCycleTimes::IDD, pParent)
{
// Some code here
}
And btw, i copied the same line.
Commented successfully as the syte below
// CMyCla::CMyCla(CWnd* pParent /*=NULL*/)
// : CDialog(CCycleTimes::IDD, pParent)
Otherwise, commen...
my python code is interlaced with lots of function calls used for (debugging|profiling|tracing etc.)
for example:
import logging
logging.root.setLevel(logging.DEBUG)
logging.debug('hello')
j = 0
for i in range(10):
j += i
logging.debug('i %d j %d' % (i,j))
print(j)
logging.debug('bye')
i want to #define these resource consumi...
How to add a comment node before the root <svg> element but after the xml prolog?
Or will it be less resource expensive to insert the comment with a regexp on the serialized DOM?
...
I remember an addon for VS.NET which allows you to see the styled preview of an XML code comment when you mouse over. This is quite useful when typing XML comments to ensure that style is correct.
I googled but couldn't find it, can anyone remind me what was that addon? Or am I just imagining things? :)
...
This has been bothering me for a while, maybe I am missing something.
The following throws an error with the commented attribute (expected >), but shouldn't I be able to do something like this?
<Label x:Name="Gaga"
FontSize="20"
<!--
Content="{Binding SomethingThatIsEmptyAtDesignTime"}
...
Is there a way to display just ping counts (number) on Wordpress?
Actually there are comments_number function but that showing total count of comments, pingbacks and trackbacks.
...
hello!
I'm new for facebook developer. I want to add comments box to my application and I follow the tutorial in facebook wiki. It's not work in my application.
My Canvas Callback URL is http://122.155.0.71/~facebook/ and I upload xd_receiver.htm to root directory.
and I paste the code
FB.init("b6e07896a1d0889...
We allow commenting on our website (like a blog). Now we want to change it so that people can comment other comments.
Our table looks something like this:
ID | CommentID | Comment | User | Date
-------------------------------------------------------------------------
1001 | 1 | Nice site ...
I'm using IExpress 2.0 to create the deployment for my Visual Studio project, and it has generated an SED file that I'd like to document.
What's the syntax for me to place a comment inside the SED file?
...