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.
how can I modify this function to pass it a specific value or a specific set of values?
for example right now I am invoking it like this:
onClick="toggleprob(this);"
I'd likre to do it like this onClick="toggleprob(3,4);"
and have table rows in position 3 become visible and table rows in...
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 don't understand the logic behind it. It' not as if you have conditionals in it.
I've figured out that if I do this: aTR[i].style.display=(aTR[i].style.display=='inline')? show : 'inline';
it will always show.
I need the exact opposite.
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
Ok, I got what you mean about declaring variables, so I moved the connection info inside the function:
$o_conn=mysql_pconnect("localhost","testuser","testpassword");
mysql_select_db('testdb',$o_conn) or die("Couldn't open database");
now when the function is invoked I get the error...
I tried it but it didn't work.
I'm sorry I forgot to paste this line of code which was right above the function declaration:
display_assigners($thisoneid,0);
$adderid is a value that is passed from a get variable, it is set earlier in teh page
$o_conn is in an include file. It is a...
<script>
// (C) 2000 www.CodeLifter.com
// http://www.codelifter.com
// Free for all users, but leave in this header
// NS4-6,IE4-6
// Fade effect only in IE; degrades gracefully
// =======================================
// set the following variables
//...
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'm not really sure of the version. I was hoping that I can do this without trouble tickets, tech support calls, and headaches.
Let's assume I have permission to install software on the server, can you suggest one of the packages listed? If this is not enough info I can contact the host in the...
Ok, so I'm running a Linux server remotely. Can you please pick out what I need to install on it from this list:
http://www.accesspdf.com/article.php/20041130153545577
Also do I need to involve the tech people or can I do this myself. The client has a dedicated server hosted by interland.
courtarro,
I was able to create fdf data, but pdftk is a command line tool. I need something that can run on a linux server and can be launched from a php script.
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...
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.