which syntax is correct:
if (empty ($_POST['var'])) {
or
if (!empty ($_POST['var'])) {
and if both are correct, what determines the use of the leading !
thanks
amy
I am searching for codes examples that show how to use PHP with MySql to send form data into more than one table.
i can send form data into one table only,
no matter how i try, no data will go into the second table.
the sequence that works for data into a single table is:
1. set variables -...
my db has multiple tables with an online form that captures data to go into one or more of these tables.
i have total success with a single table db - from user entered data to mysql db record - perfecct.
now i am testing the new multi-table db using just two of the tables, and i know the...
I have a form with differing inputs: text, checkbox, radio, select option.
(www.sutryn.com/2007webscripting/contact_form_includes.php)
All the data goes via PHP into MySQL db with no trouble EXCEPT in the case of the checkbox array.
I found information about "serialize", but i've missed some...
our company is experiencing an increase in disappearing or undeliverable emails going into or coming out of China, Taiwan, and other asia-pacific countries.
no matter the nature of the error (550, spam blacklist, just plain gone into the ether), there is some days that mail goes and comes fine...
this bit of scripting crashes the page when i add it into the existing php scripted page that is handling the form data from another page.
// checks for a set radio button and assigns the value to a variable (or NULL)
if (isset($_REQUEST['gender'])) {
$gender = $_REQUEST['gender'];
} else {...
I am happy for your review and suggestions to troubleshoot this little problem of mine:
I suspect either the script or html returns this Firefix browser error message:
The server encountered an unexpected condition which prevented it from fulfilling the request.
The script had an error or it...
Please offer me a clear and simple explanation of how to get an image to print all the way to the edge of the paper on a desktop inkjet or laser printer.
I've not succeeded with any combination of margins, bleeds or image placement inside of InDesign thru to the pdf export...
Hi All,
Two computer-independent branch offices have inadvertently EACH parked the companydomain.com at their choice of host.
The branch that uses an exchange server was mis-informed during configuration, parked the companydomain.com on the server and is now not able to resolve the calls for...
Email Synch with laptop on July 17 - no records show activity after June 20. Desktop records are all current and up to date with activity up to and including July 17.
How best to trouble shoot this?
Thanks for all suggestions and ideas
yamy
How can I export my contacts as a vCard or LDIF file?
I am using Mac OS X and wish to use its Address Book with my Palm.
Thanks for your comments and ideas.
Yamy
Every day I receive a text file containing updates to my database.
So my plan is to simply update the link to the linked table every day.
As I was creating the database, I ran a MakeTable query on the linked file and then modified it with additional fields, which were also populated using...
<code>
UPDATE UsersTable SET UsersTable.[Activated Date] = ([UsersTable]![Registered]+3)
WHERE (((UsersTable.[Account Activated])="yes"));
</code>
This query works fine in the test database
It will NOT work in the current version. I've checked and checked and checked again for a...
How can I best process this task list in Access (with Excel Help I suspect)
Data Source 1 = text file (4MBzip and growing daily)
Data Source 2 = excel spreadsheet that duplicates many fields from DS1 but adds others that I need.
from DS1, I extract about one thrid of the records
to which I...
When I use a macro behind a command button to export a report to excel, do i first need to have the macro open the query before output. seems like it would have to be open to be output but not sure - please comment - thanks
yamy
I have a database where most (but not all) source data is a delimited text file that is updated daily.
I have additional Fields that are not contained in the original text file.
The fields are divided among eight tables that various queries and forms are designed around. These queries and...
My database contains many companies in many countries.
How do I write one query that prompts for the country while the rest of the fields stay the same?
Rather than write thirty separate queries that are identical except for the "criteria"
SELECT...
UPDATE UsersTable INNER JOIN StatusTable ON UsersTable.uID=StatusTable.uID SET StatusTable.sStatusLookup=0 WHERE (((UsersTable.uDateAdded) Is Not Null) and (( StatusTable.sID) is Null));
This query is "...about to update 0 row(s)...."
Huh?
I have 600+ records that should be updated...
Here's the basic info:
Table:User
Source,text-
New,number - default = 1,always is 1
Act,number - default 0, will change to 1 at some point
Table:Company
CoName,text
AcctMgr,text - has many companies with one or more users and one or more sources
Select Query =
Co.AcctMgr
U.Source -group by...
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.