Vote count: 0 I have this form , i perosonal details will be inserted into personal table then book details into book table. book details has 1 original and 4 cloned rows. i want to insert all them at once into database. Earlier i had used php mysqli_real_escape_string which was working perfectly with bootstrap 3. but same is not working with materialize css. giving error Waing: Invalid argument supplied for foreach(). here is my code, $mysqli = new mysqli($host,$user,$password,$database); $user...
ادامه مطلبVote count: 0 hi i tried this code to search in database and display result in datagridview but it seems something is wrong what is the wrong ? this is my code if (comboBox1.Text == "month") { SqlDataAdapter dataAdapter = new SqlDataAdapter("SELECT name, mil_no, rotba, arrival_time, leaving_time, day, year FROM dbo.Hodor_data where month LIKE ='" + textBox1.Text + "'", co); DataTable dt = new DataTable(); dataAdapter.Fill(dt); dataGridView1.DataSource = dt; } and this is my interface my interfac...
ادامه مطلبVote count: 0 I'm trying to convert a scaleR script into T-SQL (with exteal_script execution) for in-database R analytics in SQL Server. The scaleR script that I'm working with is on the DeepDive Data Science Tutorial on Fraud data by MSDN.All my data is in SQL Server now (from the tutorial), and all I want to do is query this table to get summary using the rxSummary scaleR function (in-database).This is my attempt: exec sp_execute_exteal_script @language = N'R', @script = N' sumOut...
ادامه مطلبVote count: 0 I am trying to use inheritance for sake of re-usability and I have a base class named 'Partner' and two sub classes 'Lawyer' and 'Accountant' as below: abstract class Partner{ } class Lawyer extends Partner{ } class Accountant extends Partner{ } It's all good with the code, but I was wondering more when it comes to database, how do I store these information in db, should I have one table partners for both entities, or I should have separate tables for each entity, based on fact tha...
ادامه مطلبVote count: 0 I have anchor functionality on one of my sites and in the Menu system i need the Link text to include an inverted comma which is playing havoc with my anchor linking mechanism (because i use the link text to generate the anchor data attribute) so i need to strip the inverted commas from the data attribute ideally with javascript on the fly. BESS'S MISSION asked 26 secs agoLee Woodman Let's block ads!...
ادامه مطلبVote count: 0 I initially used a local mysql database for my cakephp 3 application and everything was working as it should. I'm in the process of deploying my cakephp3 application so I created a RDS MySql instance and coected it to MySql workbench and just copied the database I had before to the RDS database. My settings in my app.php are like so. To define my constants I have if (!defined('RDS_HOSTNAME')) { define('RDS_HOSTNAME', $_SERVER['myendpoint.us-west-1.rds.amazonaws.com']); define('RDS_...
ادامه مطلبVote count: 0 Simple question, probably been asked a million times but I've searched and am no closer to getting this to work. I have a PHP script within the UserFrosting framework that serves a file to the user via their browser. I would like the file to open in their browser if they select 'Open' insteand of download. Problem is, the only things that are opening properly are text files. Anything else (PDFs and JPGs tested so far) are just opening as a page of ASCII/garbled code instead of bein...
ادامه مطلبVote count: 0 I'm uploading an image by using tag. After uploading, I need to get the image path and save it to the database. How I get the image path through uploading??? asked 33 secs agoƤŕaśađ Şŕįɱał Let's block ads!...
ادامه مطلبVote count: 0 I have tick data containing symbols, bid prices, and ask prices. I was able to find the average spread and standard deviation of each symbol. I'd like to create a confidence interval for each symbol and have the final DataFrame output have the columns ticker symbol average spread lower bound 95% confidence upper bound 95% confidence How can I do that? This is how far I've been able to get: df = pd.read_csv('C:\Users\William\Desktop\tickdata.csv', dtype={'ticker': str, 'bidPrice': n...
ادامه مطلببخوانید prepare("INSERT INTO dados (tipo_equipamento, equipamento_marca, modelo, tipo_so, tipo_sistema, processador, ram, disco, anomalias, nome_cliente, telm_cliente, email_cliente) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)"); $sql_gravar->bindParam(1, $tipo_equipamento); $sql_gravar->bindParam(2, $equipamento_marca); $sql_gravar->bindParam(3, $modelo); $sql_gravar->bindParam(4, $tipo_so); $sql_gravar->bindParam(5, $tipo_sistema); $sql_gravar->bindParam(6, $processador); $sql_gravar->bindPara...
ادامه مطلبVote count: 0 Is it really diferent from PHP 5... I have this code that gives me a Parse error: syntax error, unexpected 'New' (T_NEW) in /home/u670931909/public_html/php.php on line 16 PHP code:...
ادامه مطلبVote count: 0 I am using soap api in my project that api contains image url field. I stored that image url field in sqlite database.It has been storing in table . I am checking with net coection it is displaying image.while i am checking without inteet coection it is not displaying what would be the problem? I need it very urgently can anyone help me asked 3 mins agoneha Let's block ads!...
ادامه مطلبVote count: 0 I know this is probably going to be some complex coding, however it's the only option I am left with. Our retail store uses retail express for it's P.O.S system and although they claim on their site (http://retailexpress.com.au/addons-integrations/) they integrate with Adobe Business Catalyst, it has since become apparent that they do not. Now we're left with both services as BC won't give out a refund. What I'm instead looking to do is work out a way to use the export customers fe...
ادامه مطلبVote count: 0 So I'm having people submit a question using a form, then I display all the questions on the same page. It works fine when the validation passes (minimum 25 characters) but when it doesn't pass, I get this error: NoMethodError in Questions#create Showing /home/ubuntu/workspace/app/views/static_pages/home.html.erb where line #20 raised: undefined method `each' for nil:NilClass Extracted source (around line #20):...
ادامه مطلبVote count: 0 Here i want to get the sum of balance of selected customer_id.for example here the customer_id of 19 is having an sum of 120 but the result is not fetching. here is my controler public function make_payment() { $data['active_mn']=''; $data['active_mn']=''; $data['result']=$this->Account_model->view_order_id($code); $customer_id=$this->input->post('customer_id'); $data['details'] = $this->Account_model->order_details($customer_id)->row(); $this->load->view('make_payment',$data); } T...
ادامه مطلبVote count: 0 Apologies for my nebie like question but i'm trying to lea a lot here, new to MVC and CodeIgniter. I have a simple CRUD that i'm building, but i'm stumped on what I think is a very simple thing if you know what you are doing. I have a View that is being used to Update a Tyre to the db into a table 'tyres'. In that View I want to display a dropdown of Brands that are held in a seperate db table 'brands'. In my Model I have a class of Tyres and in that I have a function : public func...
ادامه مطلبVote count: 0 how to add menu for asp.net Content management system application in responsive bootstrap ,menu data retrieve from database with menu order. asked 1 min agonataraj ragavan Let's block ads!...
ادامه مطلبVote count: 0 I need help doing this. i cant figure out how to retu the boolean, and it seems that my condition's not working. i would very much appreciate the help. asked 49 secs agoUser134 Let's block ads!...
ادامه مطلبVote count: 0 I have the following sheets: Sheet1 Code M P Z 11 14 13 6 19 14 17 1 12 7 Sheet 2 Code A B C 12 1 2 3 14 1 4 3 7 2 2 2 11 6 5 2 6 3 3 2 12 1 2 3 I want to get this table in sheet 1 Code M P Z 11 6 5 2 14 1 4 3 13 NA NA NA 6 3 3 2 19 NA NA NA 14 1 4 3 17 NA NA NA 1 NA NA NA 12 1 2 3 7 2 2 2 I want to move data from sheet 2 to sheet1 using only codes. Thank you for your help asked 1 min agouser1309 Let's block ads!...
ادامه مطلبVote count: 0 How to create image file in android from dataURL which is generated using JavaScript data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEBLAEsAAD/2wBDAAMCAgMCAgMDAwMEAwMEBQgFBQQEBQoHBwYIDAoMDAsKCwsNDhIQDQ4RDgsLEBYQERMUFRUVDA8XGBYUGBIUFRT.......== asked 3 mins agosaikumar Let's block ads!...
ادامه مطلب