if don't have error submit form
Vote count: 0 public function Link() { $id=$this->params['id']; $url=$this->params['url']; $dviId=$this->params['divId']; $url=Yii::$app->urlManager->createAbsoluteUrl($url); $js2="$('#".$id."').on('click', function() { $.ajax({url: '".$url."',type: 'POST',success : function(res){ $('#".$dviId."').h...
Mail all users in my database
Vote count: 0 So im trying to make a script so i can mail all users in my database mailing them about updates etc the problem i have i can send a email to one user but not muti would this work? $sql = 'SELECT email FROM users ORDER BY id'; foreach ($db->query($sql) as $row) { $to = $_row['email']; $...
Combining a Vector
Vote count: 0 I have a data frame (called honey) that looks like: Importer year tons USD Japan 2010 523 776 Thailand 2010 1095 975 Singapore 2010 1 2 ... I want to parse out the distinct countries, and add one to the list in my code. unique(honey$Importer) Retu s the expected result; a list of 8 cou...
Why does this block my PHP code?
Vote count: -3 The query is $q1 = "SELECT * from `event` ORDER BY `upload_date` DESC"; This is the function function display_content($r, $dis){ foreach($r as $part) { $dis .= '<br /><div id="event_box">'; $dis .= '<div id="event_name"><a href = " http://'.$part['link'].'" target="_blank"> '.$part['n...
Visual studio Team foundation corrupted file
Vote count: 0 My machine crashed in the midst of a Team Foundation sync, and now when I try to commit changes, or change branches in my solution, I get the error: An error occurred. Detailed message: Invalid data in index - incorrect header signature How can I get my commits/sync working again? edit...
Where to instantiate a New List?
Vote count: 0 I have the following model in my Asp.Net Mvc project. When a new object is created, a new list of both Options and Foto's is also created so that you can simply add new Options and Pictures to the object. public class VehicleModels { [Key] public virtual int Id { get; set; } public vir...
Adding dependencies to a custom gradle plugin
Vote count: 0 I'm creating a gradle plugin that uses gson, but when I use the plugin at my client it throws this java.lang.NoClassDefFoundError: com/google/gson/Gson I expect I am linking my dependencies in the plugin in a wrong way, but i'm not quite sure so any help would be great. The build.gradl...
System.Windows.Markup.XamlParseException in Windows xp SP2
Vote count: 0 We have created a WPF application using .NET4 and VS2010. The application is getting successfully installed. When trying to launch the application we are getting an error as mentioned below in the Event Viewer of the Machine: Description: The process was terminated due to an unhandled ...
Rails + MongoDB + Set scope for only_name in User Model
Vote count: 0 In Rails Project, I am trying to set few columns of table in select statement for mongodb but I am not able to find those values. Model - User Columns :- _id, name, age, address, city, ... scope :only_name, select("id, name") But giving error for User.only_name wrong argument type Stri...
How to pass values to another php
Vote count: 0 <?php $sql="select * from $dbname.product_details"; $result=mysql_query($sql); if (! $result) { # code... die("invalid query to server"); } if (mysql_num_rows($result) > 0) { # code... while ($row=mysql_fetch_assoc($result)) { # code... echo "**<big><b><a href='productpage.php'>".$row[...
Python - Code keeps returning an unwanted "None" statement
Vote count: 0 My code below is retu ing an unwanted "None" statement. I have searched other questions in hopes to find a solution but I cant seem to figure it out. Any help would be appreciated. def int_mult(no1,no2): try: no3 = int(no1) no3 = int(no2) except ValueError: retu print("Error: Invalid A...
multiple tabs in one asp.net page with dataBase
Vote count: 0 i have 2 tabs in my web page. i have one model,2 repository folder in which i am calling stored procedures from back end,one view and one controller.i am able to insert data from both the tabs.but when i insert from second tab it is inserting row with null values in first tabs's table....
cannot be null - PhP PDO Funkcion
Vote count: 0 I have a problem with one function, function should be sent a text to base (phpmyadmin), or menu displays error.. Error code: Error: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'Code' ca ot be null My funcktion: public function UploadInvoice($CONN) { $SubmitOK = '1'; $...
pattern not matched fluentd elasticsearch
Vote count: 0 I am stucking with writting format of logs in fluentd for magento exception logs. single exception of exception.log [2016-04-30 11:37:42] main.CRITICAL: exception 'Exception' with message 'Report ID: webapi-571f53065307a; Message: Notice: Array to string conversion in /var/www/html/mag...