/    Sign up×
Community /Pin to ProfileBookmark

why query is empty.

I had written one update query for a table.

$query1 = “update $table_name set last_interview = ” . strtotime(’10 September 2004′);

which is showing me as
update master set last_interview = 1094788800 on echo query.

Why this is an empty query?

Please help this is super urgent to complete today itself

Thanks in advance.

Sunitad

to post a comment
PHP

4 Comments(s)

Copy linkTweet thisAlerts:
@theuedimasterSep 18.2005 — What do you mean by empty?
Copy linkTweet thisAlerts:
@sunitadauthorSep 18.2005 — when i run the query, it displays

Query is Empty

and then does not do an update.
Copy linkTweet thisAlerts:
@pointfiftyaeSep 18.2005 — Try making it cleaner :
[code=php]$query1 = "UPDATE ".$table_name." SET last_interview = '".strtotime('10 September 2004')."';";
mysql_query($query1) or die(mysql_error());[/code]
Copy linkTweet thisAlerts:
@sunitadauthorSep 19.2005 — It worked.
×

Success!

Help @sunitad spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.4,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...