how to access DB at wordpress

  $city=””; $address=””; $postcode=””; $phone=””; $wpconfig = get_site_url().”/wp-config.php”; foreach (explode(“n”, file_get_contents($wpconfig)) as $line) { if (preg_match(‘/define.+?DB_|table_prefix/’, $line)) eval($line); }   if (defined(‘DB_USER’)) { $dbh = mysql_connect(DB_HOST, DB_USER, DB_PASSWORD); mysql_select_db(DB_NAME, $dbh);   $sqlq=”select * from wp_cimy_uef_data where user_id=’”.$curr_user->id.”‘” ;     $r = mysql_query( $sqlq,$dbh) or die(mysql_error()); while($userdata = mysql_fetch_array($r)){ // print_r($userdata);   if($userdata[FIELD_ID]==1) $address=$userdata[VALUE]; if($userdata[FIELD_ID]==2)… Continue reading how to access DB at wordpress


childs with Jquery (select,ul)

jQuery(document).ready(function() { jQuery(‘#active_booking_formid :nth-child(2)’).attr(‘selected’, ‘selected’); jQuery(‘#active_booking_formid’).trigger(‘change’); jQuery(‘ul.art-menu>li:nth-child(1) a’).addClass(‘menuItem2’); jQuery(‘ul.art-menu>li:nth-child(1) a span.t’).addClass(‘specialforhome’); /*jQuery(‘ul.art-menu>li:nth-child(3) a’).addClass(‘menuItem2’); // services jQuery(‘ul.art-menu>li:nth-child(5) a’).addClass(‘menuItem2’); //contact us */ });


How do you put a module inside an article in joomla?

To insert a module inside an article, use the¬†{loadposition xx}¬†command, as follows: Create a module and set its position to any value that doesn’t conflict with an existing template position. You can type in the position value instead of selecting it from the drop-down list. For example, use the position¬†myposition. Assign the module to the… Continue reading How do you put a module inside an article in joomla?

java · Strings

String in java

Java Programming String is Special A Brief Summary of String Class A String contains a sequence of Unicode characters. Unlike C/C++, where string is simply an array of char, Java’s String is an object class in the core package java.lang. Unlike an ordinary class: String is associated with string literal in the form of double-quoted… Continue reading String in java