Feed on
Posts
Comments

Archive for December, 2007

querying!

have you ever thought how a very simple mysql insert query can be so frustrating!! grrr! was coding for the cms and had to write this idiotic query!!
$formdesc_query=”INSERT INTO `form_desc` (`page_modulecomponentid` ,`form_heading` ,`form_loginrequired` ,`form_headertext` ,`form_footertext` ,`form_expirydatetime` ,`form_sendconfirmation` ,`form_usecaptcha` ,`form_allowuseredit` ,`form_allowuserunregister` ,`form_showuseremail` ,`form_showuserfullname` ,`form_showregistrationdate` ,`form_showlastupdatedate`) VALUES ($compId, ‘”.mysql_escape_string($formdesc_content['form_heading']).”‘, ‘”.mysql_escape_string($formdesc_content['form_loginrequired']).”‘, ‘”.mysql_escape_string($formdesc_content['form_headertext']).”‘, ‘”.mysql_escape_string($formdesc_content['form_footertext']).”‘ , ‘”.mysql_escape_string($formdesc_content['form_expirydatetime']).”‘ , ‘”.mysql_escape_string($formdesc_content['form_sendconfirmation']).”‘, [...]

Read Full Post »

The arbitness of time and the highly jobless soul of mine forced me to write this uncanny post which while being written provoked me to think a lot about U!!
ps: hmmm, its so different..!

Read Full Post »

hmm… Well its weird. Actually nothing new for me. Lately everything is getting weirder and more weirder for me. But this one is something on which even you will agree because its so uncanny..!
Those who orkut will surely agree with me on this.. and are not psycos like the cases which i have mentioned here [...]

Read Full Post »

Anshu’s Blog

good morning!
hmm.. such a pleasant morning.. started my day with reading some blogs.. was actually looking up in each and every blog which is there in my blogroll to see whether anyone has blogged about anything recently.. to my surprise a lot of people are actively writing blogs these days..! naiice!
By the way read this [...]

Read Full Post »

my fortune cookie!

“Do not mistake temptation for opportunity.”
hello! finally got up after 6 hrs of a nice sleep in which i watched half of the epic movie, got bitten by mosquitoes because there was no current in the hostel, woke up some 7 times because of msgs.. twice because someone called..and once bcoz that idiot glenn was [...]

Read Full Post »

its almost 24 hrs since i came to octa.. had been here since then.. just went out for lunch and dinner.. did some work i guess!!
btw from the list.. just managed to finish only one.. and the second one almost done.. there is just one bug.. which i m not able to figure out.. so [...]

Read Full Post »

This is what we call external javascript too..
Anyway save your .js file as .php. For example, your js file will be named as file.php
The syntax to referencing a PHP file using external JavaScript is almost same as what we normally do for JS files:
<script type=”text/javascript” src=”file.php”></script>
where “file.php” is either an absolute or relative path to [...]

Read Full Post »

4:35 a.m.

hmmm.. good morning! my dad used to say.. u should get up early in the morning around 4-4:30 am and then study!! well i dint do any of that sort when i was a kid..!
haha.. anyway there should had been a good night before a good morning!!
still working.. actually finally started working! sahil just left.. [...]

Read Full Post »

copying rows in mysql

hmmm.. dint get much info about copying a row in mysql, so thought will put the code here.. its useful sometime..
the code is
INSERT INTO destinationTable (column_list) (SELECT column_list FROM sourceTable WHERE condition=check)
replace the condition with your condition.
To copy within the same table, the destination and the source table will be the same. And if you [...]

Read Full Post »

Kallege!

hmm.. two days since i got back here.. its so unusual to be in college at this time when almost everyone has gone back home for sem hols and just a bunch of jobless guys are here!
had gone to almost all the places where i liked to go.. continuously sat in octa for 14 hrs!! [...]

Read Full Post »

Older Posts »