I would like to insert a mysql db date / time stamp so that I can return it later in the format:
March 20, 2007, 12:56 pm
my question is should I have the db field as datetime or timestamp and what is the function that generates the timestamp?
also I need this to be sortable by date.
I am filling a database field with valuse such as 67.50; they are either integers or decimal numbers.
What data type should I use in the db:
float
double
or decimal
What is the advantage of using either?
I have a script that toggles on and off the visibility of table rows. This works good except I need a script that simply turns off the visibility and does not toggle it.
function toggleoff(obj) {
var aTR=obj.parentNode.parentNode.parentNode.parentNode.getElementsByTagName('tr');
var...
I have a select box with values 1-20. What I'd like to do is onChange, write a set of textboxes corresponding to the value in the select box. For instance, if the user selects 6, then 6 text boxes would appear on the page.
It could be something like:
<input name="text1" type="text"...
I have 2 MySql dbs on 2 different servers.
I need 2 copy the data from one field in db1 and add it into a new field ind db2.
What is the easiest way to do this? Both tables have the same number of records.
In db1, tableoriginal let's say there's an int field named id and a field named copyme...
why does this give me the error: Expected ')'
<body onload="showAddress(<?php echo $address;?>); return false">
when
<body onload="showAddress('the address'); return false">
works fine
When I load this page I get the error:
Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in report.php on line 130 (the line that reads $result= mysql_query($sql,$o_conn);)
I know the query is valid and my datbase connection is correct, so there must be something...
I am building an application that generates PDF documents dynamically, and the client is asking to have the printing of these automated. He wants to be able to click a link or a button which will cue up all the documents and print them instead of opening each one individually clicking print for...
I have to write a program that opens up a pdf document and inserts a code somewhere inside the pdf and then saves the file on the server.
Right now the pdf has a line that reads
Your code is ______.
I need it to say your code is 7889. for example.
Anyone know how this could be done?
i have this piece of code:
header('Location: feedbackPage.html');
It loads the next page. What I would like to do is load the page ina new window and close the current page. How would I do this?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.