Hello, I'm using php for making queries for mysql. Here is one:
UPDATE `subscribers` SET `curDate` = NOW() WHERE `e_mail` = "$resEmail"
curDate - DateTime type. The problem is that after this query curDate of given email is
0000-00-00 00:00:00
What's wrong?
I have a PHP script that uses standard POST variables like $_POST['email']. When a form on a remote server sends a POST request to my script, it doesn't receive the POST data at all. It's not in $_REQUEST either.
Thanks for any help!
I've made 2 apps, App A and App B. App A's sole purpose is to allow users to sign up and App B's purpose is to take select users from App A email them. Since App A & B were created independently & are hosted in 2 separate Heroku instances, how can App B access the users database in App A? Is there a way to push certain relevant rows from App A to App B?
I currently am working on a web application that needs to collect data from a form and will take the information and put it in a report format and sent it to a fax machine and print it out.
What is the easiest way to do this. I would like it to act similar to collecting informastion off of a form and then sending an email, but I would like to send it to a fax instead.
Thanks!
I have created a sequential workflow for use with a SharePoint List. In this workflow i send an email using the SendEmail activity.
Later in my workflow I need to know if the mail was successfully sent, so I tried using this condition:
success = sendEmailStep1.ExecutionResult == ActivityExecutionResult.Succeeded;
But that does not work, any ideas?
I have the following class
class Identity < OmniAuth:: Identity:: Models:: ActiveRecord
attr_accessible :email, :name, :password_digest, :password, :password_confirmation
end
I wonder if the above properties are the only ones allowed for a class that derive from a OmniAuth. I wish I could add some more like FirstName, LastName, age, gender, and so on. Do I need to create an other model for those properties or can I just add them to the Identity model?
Thanks for helping.
I am stuck on how to pass data from one control to another. If I have a listbox control and the Contol Item contains a datatemplate which renders out 5 fields ( first name, last name, email, phone and DOB) all of which come from an observable collection. How can I allow the user to select a listbox item and have the valuesbe stored within a new listbox control?
Is this done through the creation of a new collection or is there a more simple way to bind these values to a new control?
thank you,
Hi,
I need to do three task in UIWebView,
Open safari,
Open mail
Place the call.
I know that i can do it by using UIApplication's openURL, but i need to do by using UIWebView only, because my data is coming from server, and i need to do this task in that data, if data has www.link, email addres or call number.
Does anyone knows that what is the actual idea.
Thanks.
I'm looking to extract key pieces of information from the following website to simplify the signup process. More or less I want to build a quick import script that will grab the following:
1) Username
2) Type (Model / Photographer)
3) Age
4) Sex
5) City, State, Zip
6) Email
7) Photos
I will then take all of this data and add it to join form / push the photos through a manipulation script.
Any ideas?
How/Where can I store some values such as a phone number or email address so I can use these values on any page in a my custom theme?
Example: I want to store a contact phone number that should be displayed in the header file of my theme but i dont want to hardcode it into the html. I would like to store it in a simerlar way custom values are stored but accessable from any theme page.
Basically what I want to do is to send an email to follow up on order placed in 3 hours later.
What I try to do is to get the current date (up to hours level), then compare with the orderdate+ 3 hours, to see whether it match.
Example orderdate: 2010-06-12 18, after add 3 hours should become 2010-06-12 21
However, after add hour, the final result sometimes become bigger, sometimes become smaller... something wrong.
$now= date('Y-m-d H');
echo $now . "<br>";
...
...
while ($data = mysql_fetch_array ($result))
{
$orderid = $data['orderid'];
$orddate = $data['orddate'];
$corddate= date('Y-m-d H:i:s', $orddate);
$year = substr ($corddate, 0, 4);
$month = substr ($corddate, 5, 2);
$day = substr ($corddate, 8, 2);
$hour = substr ($corddate, 11, 2);
$actualorderdate= $year . "-" . $month . "-" . $day . " " . $hour;
$new_time = mktime ($hour+3, 0, 0, $month, $day, $year);
$year = date ('Y', $new_time);
$month = date ('m', $new_time);
$day= date ('d', $new_time);
$hour= date ('h', $new_time);
$xhourslater= $year . "-" . $month . "-" . $day . " " . $hour;
echo "actualorderdate: ". $actualorderdate. " xhourslater: " . $xhourslater. "<br>";
if($now==$xhourslater)
{
echo "now is 3 hours later" . "<br>";
//send email follow up, then update status as sent, in order not to resend anytime in the 3rd hour.
}
}
In my joomla install I have removed the email registration and instead added a Captcha field to the PHP code using the recaptcha.net method.
For some reason I am still getting what I think are spam users (robots) but I don't know how they would get around the Captcha field.
Anything I should check?
I have a controller that has if-condition:
def update
@contact_email = ContactEmail.find(params[:id])
if @contact_email.update_attributes(params[:contact_email])
flash[:notice] = "Successfully updated contact email."
redirect_to @contact_email
else
render :action => 'edit'
end
end
Where do I put the respond_to block:
respond_to do |format|
format.html {}
format.json {render :jason =>@contact_email}
end
Hi,
If a user is reading e-mails in Mail.app and closes this application and opens my application .I want to show the information about the mail read by the user. Is there some way to get information about the email (in Mail.app), so that I use it in my application.
Thanks.
Hello All
I am looking to write an extremely simple "contact us" form that will email the response to me. My two technologies are PERL and PHP. What I am wondering is, which technology is more secure? Any and all opinions will be appreciated.
Thanks for reading, and have a great day.
So, I've been doing android application tutorials and everytime I create a package, for example the helloAndroid tutorial is com.example.android. When it saves this to src it creates a folder for com, another for example and one last one for android. So it gives me the error "class com.example.android does not exist" because its broken into different folders.
If anyone can help me out please email me at: [email protected]
Thank you very much.
I have a spreadsheet where I have cell within a row that will contain specific text via data validation. So for instance a cell could contain the text "Due in 7 Days", "Past Due", or "Closed".
I want the row color to change depending on the text that appears in the cell. So if the text "Past Due" appears in the cell I want that entire row to turn red, if "Due In 7 Days" appears the row should turn yellow, and if "Closed" the row would turn gray.
How can I do that?
I have an app that creates a new data entry in a sqlite db with several columns. I would like to have a simple share button on the final activity so they can share the results (or even a simple text field) with apps that accept it (email, mms, twitter, etc..).
I did some reading on ContentProviders but the more I read, the more I'm thinking i'm heading down the wrong path. Any help is appreciated.
Thanks!
On login:
$result = mysql_query("SELECT `id`, `username`, `email` FROM `users`
WHERE `username` = '$username'
AND `password` = '$passwd'");
$userdata = array('id','username','email');
$_SESSION['user'] = mysql_result($result, 0, $userdata);
And when i want to print the users username
echo $_SESSION['user']['username']
it only prints the first letter :/
whats wrong`?
often i want to email some code without attaching a file, are there any gmail/google wave/gdocs plugins for code sharing?
gmail would obviously be most useful!
I am reading the Head First PHP/Mysql book and they say to store both the user's username, email into cookies and sessions. Is it safe to assume that everyone know a day has cookies? Or should I store both in sessions and cookies?
I am not storing any sensitive data in cookies such as password, etc.
As title, should i defined a separate index on email column (for searching purposes) or the index is "automatically" added along with UNIQ_EMAIL_USER constraint?
CREATE TABLE IF NOT EXISTS `customer` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL,
`first` varchar(255) NOT NULL,
`last` varchar(255) NOT NULL,
`slug` varchar(255) NOT NULL,
`email` varchar(255) NOT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `UNIQ_SLUG` (`slug`),
UNIQUE KEY `UNIQ_EMAIL_USER` (`email`,`user_id`),
KEY `IDX_USER` (`user_id`)
) ENGINE=InnoDB;
when user submit the form need to export form data to text file.exporting username ,password and email from form data to text file for forgot password.
please help us.
Thanks & Regard
pmms