-
Posts
202 -
Joined
-
Last visited
Everything posted by anujgarg
-
website: http://www.zuberacorp.info
- 4 replies
-
- businessinternet
- development
-
(and 2 more)
Tagged with:
-
Hi, we've just launched our official website for web development and internet marketing. I will like to have feedback (good or bad), most specifically on : a. What do you think about the design ? b. Do you like the content ? c. As we are an organization and we try to drive customers to grow their business, is it possible to attract them by this site and our portfolio ? d. other Any recommendation ? Thanks
- 4 replies
-
- businessinternet
- development
-
(and 2 more)
Tagged with:
-
Hello All, Thanks for your valuable comments. I've updated my website to a great extent (popup ads are still there, working on the same). Please review the same and let me know the other critiques. Thanks in Advance
-
Hi, I am looking for critics on my classifieds site that I created in my spare time. All feedback are welcomed negative or positive. website url: www.zubera.co.in test username: anuj3149@gmail.com test password: suresh I used the template provided by OSClass and I really appreciate it. Thanks in Advance
-
Hi Everyone, I am trying to integrate payment gateway for my web application for which I have made PHP/Java Bridge successfully. I am using e24PaymentPipe class in my code but not able to find this class/plugin after searching a lot over google. If anyone has worked on e24PaymentPipe class/plugin, please share it with me. TIA Anuj Garg
-
For inserting record: $query = "SELECT * from jos_table"; $rslt = mysql_query($query) or die(mysql_error()); $total = mysql_num_rows($rslt); $row=0; while($content_var = mysql_fetch_assoc($rslt)) { foreach($content_var as $key => $val){ $columnPath->column = $key; $value = $val; $client->insert($keyspace, $row, $columnPath, $value, $timestamp, $consistency_level); } $row++; } For displaying record: for($i=0;$i<$total;$i++) { $keyUserId = $i; $result[$i] = $client->get_slice($keyspace, $keyUserId, $columnParent, $predicate, $consistency_level); } print_r($result);
-
Riwan, I am using cassandra and trying to move MySQL data to it. This is the format that cassandra displays after inserting the records in its table. I have displayed the output in my post above...if you want to see the code, please let me know...
-
Thanks for the reply, thorpe...but nothing is being displayed on page.
-
ok...so let me explain it: I have an array of objects that contains key-value combination. I have to display that key value pair in my result. For ex., in first element of array we have: [name] => access [value] => 0 [timestamp] => 1275304054 I need to fetch value of 'name' that is "access" and value of 'value' that is "0". Hope it is clear now...
-
Hi Everyone, I am having an array in this format: Array ( [0] => cassandra_ColumnOrSuperColumn Object ( [column] => cassandra_Column Object ( [name] => access [value] => 0 [timestamp] => 1275304054 ) [super_column] => ) [1] => cassandra_ColumnOrSuperColumn Object ( [column] => cassandra_Column Object ( [name] => activation [value] => [timestamp] => 1275299259 ) [super_column] => ) [2] => cassandra_ColumnOrSuperColumn Object ( [column] => cassandra_Column Object ( [name] => alias [value] => entertainment [timestamp] => 1275304054 ) [super_column] => ) ) I want to convert it in the following format: (Syntax) => name:value name:value (eg.) => access:0 activation: alias:entertainment Please suggest how can I do that? Thanks in advance Anuj
-
More specifically, the new table should be look like: id parent_id 10 0 11 0 12 11 13 12
-
Hi, I am writing a data migration PHP script. I have a table with following structure: id parent_id 1 0 2 0 3 2 4 3 This table data needs to be migrated in a different table that already contains some record. So, the ids will be different here (lets say following): id parent_id 10 0 11 0 12 2 13 3 But, as we are seeing the parent_id is same in new table. Here comes my problem. I want to change the parent_id according to modified (new) id in new table. How can it be possible? Please suggest... All suggestions will be highly appreciated. Regards, Anuj
-
Hi Everyone, I am facing a problem while managing a bundle of checkboxes. The scenario is as follows: I have two checkboxes at top c1 & c2. Further, I have s1 & s2 sections with their respective subsections. Now, I have some more checkboxes that have been kept under these sections and subsections like: c1 c2 s1 cb s1_1 cb s1_2 cb s1_3 s2 cb s2_1 cb s2_2 cb s2_3 When I click on c1 then the checkboxes respective to s1 and s2 are checked. But when I click on c2 then the checkboxes respective to s1 only should be checked. How can I perform this task? Please suggest... TIA Anuj Garg
-
Hi, I have successfully applied server side validation in my form and is working properly. The problem is: when I am on 'edit' form, it is properly displaying the values fetching from database. But whenever there is server side validation occurred after submitting the form then the new entries that I have filled in that form getting lost. It shows the same entry coming from database. How can I maintain my new entries in the form while editing?? Please suggest... Thanks AG
-
Hi, I am using a form in joomla that after submitting is being redirected to the same page containing form. I am also using server side validations into it. My problem is: when a server side validation occurs after submitting a form with a blank field, then I lose my form values that I filled before submitting the form. This is what I am using: $row->pkg_name = JRequest::getVar( 'pkg_name', '','post', 'string', JREQUEST_ALLOWRAW ); $row->int_desc = JRequest::getVar( 'internalDesc', '','post', 'string', JREQUEST_ALLOWRAW ); $row->ext_desc = JRequest::getVar( 'externalDesc', '','post', 'string', JREQUEST_ALLOWRAW ); if($row->pkg_name == "") $msg = "Package Name must have a value"; else if($row->price == "") $msg = "Price must have some value"; else if(!is_numeric($row->price)) $msg = "Price must have numeric value"; switch($show) { case '1': $msg = 'Package Modified'; break; case '0': $msg = 'Package could not be modified.'; break; default: } $this->setRedirect($link, $msg); The form is being redirected to the same page containing form but all values lost. How can I retain them? Please suggest... Thanks Anuj
-
Hi Everyone, I am stuck with a problem. I am using smarty for my application. I am trying to display a value fetched from database to be selected in the dropdown. The good thing is I am able to display the value on webpage (outside of dropdown) and the bad thing is that I am not able to get selected the value in dropdown. Lets take a descriptive look at my problem: I have a dropdown (see the snapshot). I am able to display the second value "registered" on webpage outside of dropdown but when I try to integrate it in dropdown it does not show me that value as selected. I am using following code for it: <select name="public_private"> <option value="public" selected>{$smarty.const._HWDVIDS_SELECT_PUBLIC}</option> <option value="registered">{$smarty.const._HWDVIDS_SELECT_REG}</option> </select> And I need to use it as: {foreach name=outer item=data from=$grp_memberlist} {$data->access} {/foreach} I am able to display the "registered" value on webpage by {$data->access}. But how to integrate it in dropdown. Please suggest... Thanks Anuj [attachment deleted by admin]
-
I have done it as: for($i=0;$i<count($var[1]);$i++) { $input = rtrim($var[1][$i] . " "); }
-
I have some problem further: After applying the following: preg_match_all('/c:(\d+)/',$input,$out); print_r($out); I am getting this: Array ( [0] => Array ( [0] => Duration: 00:01:25.67, start [1] => Duration: 00:01:29.48, start ) [1] => Array ( [0] => 00:01:25.67 [1] => 00:01:29.48 ) ) Array ( [0] => Array ( [0] => Duration: 00:01:25.67, start [1] => Duration: 00:01:29.48, start [2] => Duration: 00:01:29.48, start ) [1] => Array ( [0] => 00:01:25.67 [1] => 00:01:29.48 [2] => 00:01:29.48 ) ) Array ( [0] => Array ( [0] => Duration: 00:01:25.67, start [1] => Duration: 00:01:29.48, start [2] => Duration: 00:01:29.48, start [3] => Duration: 00:00:57.43, start ) [1] => Array ( [0] => 00:01:25.67 [1] => 00:01:29.48 [2] => 00:01:29.48 [3] => 00:00:57.43 ) ) and so on I am looking for the result from the last Array statement: Array ( [0] => 00:01:25.67 [1] => 00:01:29.48 [2] => 00:01:29.48 [3] => 00:00:57.43 I want to traverse this array and keep storing each value in variables. For eg. a = 00:01:25.67, b = 00:01:29.48 and so on. Is this the right way: for($i=0;$i<count($var);$i++) { $var[$i]; } How should I do it? TIA Anuj
-
Thanks for the reply. But is there any other solution apart from this?
-
Thanks for the quick replies...
-
Hi Everyone, I am facing a problem while splitting a concatenated string. The problem is: I have a concatenated string that is being appended in a foreach loop. All I need to do is to fetch the value from the last string in every concatenation. For eg. I have a string -> "a:10 b:20 c:30". This is concatenated by another string and looks like -> "a:10 b:20 c:30 a:50 b:60 c:70". This is again concatenated by another string and looks as -> "a:10 b:20 c:30 a:50 b:60 c:70 a:150 b:160 c:170" and so on. There is no delimeter to separate this string at the moment. I am trying to fetch the value of "c" in the last string of every concatenation/combination ie I want -> c:30 c:70 c:170 I have tried to convert it to array first and then iterate it but didn't find the desired solution. Please suggest how can I solve this problem. Any suggestion will be highly appreciated. Thanks Anuj
-
Hi, I am executing following query: SELECT * FROM `table` AS video WHERE video.public_private = 'public' AND MATCH ( title, tags, description ) AGAINST ( 'avi' ) AND video.published =1 But, it doesn't display the proper records matching with the text 'avi'. It exists in the field name "description" but it shows: MySQL returned an empty result set (i.e. zero rows). Please suggest how to solve this query... Thanks Anuj
-
Hi Everyone, I am building a website using LAMP in which there is a feature of video converter. I am using gmencoder for the same but getting following errors: ERROR: Problem with MENCODER - No Videos converted. Xlib: connection to ":0.0" refused by server Xlib: No protocol specified (gmencoder:3590): Gtk-WARNING **: cannot open display: Xlib: connection to ":0.0" refused by server Xlib: No protocol specified (gmencoder:3592): Gtk-WARNING **: cannot open display: Is gmencoder feasible to mencoder? Does it perform the same work as mencoder? Please let me know if anyone came across to gmencoder for video conversion.
-
Please see the attachment for more clarification. [attachment deleted by admin]