I use codeigniter3.0.0 version, when i run the project i get this error plz tell me how i fix this error. Error Number: 1048 Column 'no_of_people' cannot be null INSERT INTO reservation (no_of_people) VALUES (NULL) Filename: C:/xampp/htdocs/book/application/models/Books_model.php Line Number: 26 My model code is class Books_model extends CI_Model{ public function __construct(){ $this->load->database(); } public function get_restaurants() { $sql = "SELECT restaurant_id, names FROM restaurants "; $query = $this->db->query( $sql ); return $query->result(); } public function insert_into_db() { $people =$this->input->post('no_of_people'); return $this->db->insert('reservation', array('no_of_people'=>$people)); } } Controller <?php error_reporting(E_ALL); ini_set('display_errors', 1); class Booking_Controller extends CI_Controller{ public function __construct(){ parent::__construct(); $this->load->model('Books_model'); } public …

Member Avatar
Member Avatar
+0 forum 3

I am trying to find a way to create an un-deletable partition/content on a USB pen drive. Basically my client wants to give customers a pen drive as a welcome gift with some multimedia and document content already recorded on a partition of the drive. The rest of the drives capacity would be for the customer to use as normal. Is there a software or method I can use to prevent erasure of this content?

Member Avatar
Member Avatar
+0 forum 8

Is there any method in java to generate random number (integer, byte or float). please tell me if any i need it in my program. if possible please give full example. thanks.

Member Avatar
Member Avatar
+1 forum 12

I am trying out a function from a book for the first time. I could use some help. It goes: [CODE] function sanitizeString($var) { $var = stripslashes($var); $var = htmlentities($var); $var = strip_tags($var)' return $var; } [/CODE] I have two simple forms. One that asks for an email address and another that does fahrenheit-celsius conversions (interesting stuff, I know). I have been testing this sanitizeString function out and it doesn't seem to do anything. Any HTML, or slashes or anything I put in text fields are not stripped of any of the harmful stuff. The code in its entirety is: …

Member Avatar
Member Avatar
+0 forum 5

Hi there, I am having trouble with hp deskjet 3550 printer..the ink is full..but the problem when i print something it starts printing but when it's finish print an empty paper comes out...nothing on the paper...i tried several times but no success yet...so whats the best method to solve this problem any idea...pls help me...thanks in advance...Zulfiker.

Member Avatar
Member Avatar
+1 forum 26

Can somebody tell me how to increase page rank ?

Member Avatar
Member Avatar
+0 forum 10

Alright this one has me stumpted. I have a piece of code to do TCP Listening running on a thread that was executed from the ThreadPool, using this little one liner `ThreadPool.QueueUserWorkItem(ServerListener);`, that will continue to run until a status flag is altered. When the thread has ended I need to clean up some resources. The only thing is I want these done on the main thread, and not within the thread spun up by the ThreadPool. This is to ensure that another piece of code doesn't run that could be counter to what I am doing with closing a …

Member Avatar
Member Avatar
+0 forum 1

Good Morning group! I've made some minor changes to my coding (to open a log file, write to it and then close it) and now I'm getting an error that I've not seen before. The error code is CA2213. I've read what it says and I've tried to look it up online, but I don't seem to grasp what it means. Hopefully you can help. When I double click the error, the yellowed out line is: `Protected Overrides Sub Dispose(ByVal disposing As Boolean)` The remaining code says: Try If disposing AndAlso components IsNot Nothing Then components.Dispose() End If Finally MyBase.Dispose(disposing) …

Member Avatar
Member Avatar
+0 forum 4

I am looking for someone who has used jQuery in the capacity of assigning a value to a text area when the user clicks a radio button. Here is the example code I have worked on so far that does not work. [code] <div id="donationForm"> <form id="formDonate" method ='request' onsubmit='return isNumeric();' action='content/creditCardAuthorize.php'> <fieldset id="fieldDonate"> <legend>Donation Form</legend> <br /> <p><input type='radio' id="donation" name='donation' value='10' /> &nbsp; $10</p> <p><input type='radio' id="donation" name='donation' value='20' /> &nbsp; $20 </p> <p><input type='radio' id="donation" name='donation' value='30' /> &nbsp; $30 </p> <p><input type='radio' id="donation" name='donation' value='40' /> &nbsp; $40 </p> <p><input type='radio' id="donation" name='donation' value='50' /> &nbsp; …

Member Avatar
Member Avatar
+0 forum 2

I am declaring in my model the following: import DS from 'ember-data'; export default DS.Model.extend({ name: DS.attr('string'), age: DS.attr('number') }); My server is returning the following json: {"name":"ali","age":33} When i extend the JSONserializer that expects this form must I override any method like extractArray since I am calling findAll in the route as follows: import Ember from 'ember'; export default Ember.Route.extend({ model: function(){ return this.store.findAll('person'); } });

Member Avatar
+0 forum 0

I know this is really messy code but I am writing a Paint app in Java for a class and I'm getting an ERROR when I drag the mouse. MousePressed works properly (prints). MouseDragged, however, throws a NullPointerException. Please let me know what the problem is here. I'll put a comment "#ERROR:FIXME" above the problem method (way down at the bottom). package view; import java.awt.BorderLayout; import java.awt.Color; import java.awt.Font; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; import java.awt.event.MouseMotionAdapter; import java.util.Enumeration; import javax.management.remote.SubjectDelegationPermission; import javax.swing.AbstractButton; import javax.swing.ButtonGroup; import javax.swing.JColorChooser; import javax.swing.JComponent; import javax.swing.JFrame; import javax.swing.JPanel; import javax.swing.JRadioButton; import com.sun.javafx.geom.Rectangle; import …

Member Avatar
Member Avatar
+0 forum 1

I have a gambling site which has not bad performances in Search engines. There is a problem with the subsection about casinos, the main keyword is "free online casino games for real money" and the link to the subsection is here: http://www.slotozilla.com/free-slots/real-money . I'm not using geotargeting or anything like that. I bought some natural links and some blogposts, but I can not detect why does it loose positions from time to time 1 to 10 positions for each query per week. Can not detect what is the problem? Maybe the problem is in the relevance of the article to …

Member Avatar
Member Avatar
-1 forum 5

I need a ArrayList of Entertainment objects of some size. Then I need a menu that searches, adds, deletes, prints, and lastly quits this is a loop. I need the user to choose between Movie or TVShow my other classes to pass over to my constructors. Each menu option needs to be its own methods so I can't do a switch. Whatever the user puts in needs to go to a text file. I don't know where to begin anyhelp would be appreciated! My other classes /*Create a TVShow class that also extends Entertainment. Give it some attributes and methods. …

Member Avatar
Member Avatar
+0 forum 1

<form action="checkbox.php" method="post"> <div class="checkbox"> <label><input type="checkbox" name="size[]" value="s">S</label> </div> <div class="checkbox"> <label><input type="checkbox" name="size[]" value="m">M</label> </div> <div class="checkbox"> <label><input type="checkbox" name="size[]" value="l">L</label> </div> <div class="checkbox"> <label><input type="checkbox" name="size[]" value="xl">Xl</label> </div> </form> here is my html code i want to selelct more then one checkbox, and it will fetch data from databse respectively from the selelct checkbox. please tell me what to do? here i dont want to use <form> tag.

Member Avatar
Member Avatar
+0 forum 2

I have to create a program that accepts the number of tile as input from the keyboard, and returns the number of tiles to the main method. It has to accept the number of tiles and calculates the cost of each tiles. The method has to return the cost to the main method and prompt the user if he/she wants to purchase another item. I'm having trouble computing the subtotal, and how to keep a previous subtotal and add it to a new one they might be interested in... and further on down the line Here's my code: const int …

Member Avatar
Member Avatar
+0 forum 2

I have working struts1 dispatch action and a form having two submit buttons which have parameter and value which calls method name with value. Well there is no problem. But when clicking on delete button, I want to confirm with bootstrap dialog. $('.btnDelete').on('click', function(e){ var $form=$(this).closest('form'); e.preventDefault(); $('#confirm').modal({ backdrop: 'static', keyboard: false }) .one('click', '#delete', function (e) { var sectorId = $(this).parent().parent().children()[0].innerHTML; var input = document.createElement("input"); input.setAttribute("type", "hidden"); input.setAttribute("name", "sectorId"); input.setAttribute("value", sectorId); document.getElementById("sectorForm").appendChild(input); $("#sectorForm").submit(); }); }); Here **e.preventDefault()** is needed to stop form submitting. And when a delete button is clicked from dialog a hidden parameter will be passed and …

Member Avatar
Member Avatar
+0 forum 1

hello, i am new to link list in java, the output() method isn't displaying the last value entered by the user, can i get some help? also you will see some commented methods that i still need to create, if would be of much help, if you can get me started on them as well, but for now i need help with the output import java.util.*; public class Node{ int num; Node next; public Node (int n){ num = n; } } public class JavaApplication3 { public static void main(String[] args) { Scanner in = new Scanner(System.in); Node top, np, …

Member Avatar
Member Avatar
+0 forum 2

I have this method that is used to set the columns and data in the listview based on a string. I'm not sure how to add the columns I need programactically. I need to use different data types though. private void populateLeaderBoardList() { string btnContent = (string)btn_exportLeaderBoard.Content; if (btnContent.Contains("Totals")) { // Using data type Player // Set Columns (leaderBoardPosition (#++ each row), playerTeamName, playerPoints) } else if (btnContent.Contains("Players")) { // Using data type Player // Set Columns (leaderBoardPosition (#++ each row), playerTeamName, playerPoints) } else if (btnContent.Contains("Drivers")) { // Using data type DriverPoints // Set Columns (leaderBoardPosition (#++ each row), …

Member Avatar
+0 forum 0

hi..... i am searching for the query for retrieving the deleted data from the table.From the web i got "flashback" method to get the dropped table.Any one has any idea pls,help me thanks in advance

Member Avatar
Member Avatar
+0 forum 11

I need to convert the findWithinHorizon method to C#, is there anything equivalent to this?

Member Avatar
Member Avatar
+0 forum 4

Why is my finally block not firing after projectDCThread.join() is called? This method IS in a class that implements Runnable, however it's not overriding the deprecated stop() method. public synchronized void stop() { if(isRunning || safeCloseRequested) { try { isRunning = false; projectDCThread.join(); } catch (InterruptedException e) { Logger.append("Exception thrown when attempting to join Thread '" + projectDCThread.getName() + "'"); Logger.append(e); } finally { EventDispatcher.getInstance().dispatchEvent(new GameClosingEvent().setEventPhase(EventPhase.POST), EventPhase.POST); } } }

Member Avatar
Member Avatar
+0 forum 14

Hello everyone! do you have any idea about it? I need a huge number of company data [mobile no., address etc.]. Is there any company which are going to provide this services? Actually my goal is I need a huge number of company data that are related to my services. Is there any online tools or tips by that I can search, Successfully ..?

Member Avatar
Member Avatar
+2 forum 7

I'm very new to the Raycasting algorithim, and was reading a webpage on how it works with CPP code to accompany. I followed what the page described and converted it into Python/Pygame and then ran it, but my result was *very* different. I have a feeling it has something to do with try: deltaDistX = sqrt(1 + (rayDirY * rayDirY) / (rayDirX * rayDirX)); deltaDistY = sqrt(1 + (rayDirX * rayDirX) / (rayDirY * rayDirY)); except ZeroDivisionError: pass Here is the code I wrote: http://pastebin.com/nLW6ELvv And here is the webpage on Raycasting: http://lodev.org/cgtutor/raycasting.html Help is appreciated <3

Member Avatar
Member Avatar
+0 forum 1

I want to create Input method Editor (IME) of my Balochi Keyboard and when I run setup file of this Balochi keyboard and install, after that when i open Language and region from control panel and add Balochi keyboard then this Language Keyboard come in Language Bar of my or any computer on which it installed and capable to write on any platform means ms office, note pad or any browser

Member Avatar
Member Avatar
+0 forum 1

Because the organization is changing name following a merger, the websites of both legacy organizations will need to be consolidated into one without losing the prior seo of each original web pages. I understand that I will need to use redirections and modifications in the DNS, but apart from that, I do not even know how to start planning the migration. Can someone help me understand what I will need to do and plan? Thank you in advance for your help.

Member Avatar
Member Avatar
+0 forum 6

Hello, I created a small windows service in VB.net, intended to run on a MS Windows server 2012, which uses the EventLog.WriteEntry Method to write entries to a custom log file. All works as intended, however, I am wondering if there would be a better way to write to the event log other than following these steps for each section of code that executed: 1st - the declaring and setting a variable: Dim myMessage As String = "Try\catch exception triggered for archiving n the test.log" 2nd - defining the severity level: Dim myEventLogEntryType As EventLogEntryType = EventLogEntryType.Error 3rd - defining …

Member Avatar
+0 forum 0

I am moving an object around from one node to another. I need to tell the object to stop moving when it has reached its destination node. I am currently using this algorithm for movement and node checking [CODE] if (!isFinished) { // If the level has arrived at the current destination node and not at the final node // Destination node is based on the interpolated points on the spline if (AtNode(catmullRomSpline.InterpolatedPoints[nodeIndex], node)) { // If we have not reached the final node/interpolated point on spline if (nodeIndex + 1 < catmullRomSpline.InterpolatedPoints.Count) { // Increase the node index nodeIndex++; …

Member Avatar
Member Avatar
+1 forum 21

I am trying to assign a method to a varibale called from a constructor, but it returns null when I am calling it. public class ProjectManager { Calculation a = new Calculation(); private Scanner in = new Scanner(System.in); private Scanner price = new Scanner(System.in); private Scanner duration = new Scanner(System.in); private String input; private Calendar calendar = new GregorianCalendar(); private SimpleDateFormat sdf = new SimpleDateFormat("dd-MMMMM-yyyy"); private String printCal = sdf.format(calendar.getTime()); private AdvertisementType ad = new AdvertisementType("webAdvert", "email", "radio"); private AdvertisementType[] array = new AdvertisementType[1]; double aa = a.getTotalPromotion(); When i try to print out "aa varibale" it gives me null …

Member Avatar
Member Avatar
+0 forum 1

Hi. I have a MVC project with a form and a submit button. The values are passed to the controller. One method will fetch data from the dataset according to the parameters passed. Then some VB functions will work with the data retrieved. Currently I have the whole dataset being filled after the ajax. My problem is the db is very big and it takes more time to get the results than I wish to. I tried to fill the dataset at windows.onload puting a specific function just for that in the same controller but that way when the ajax …

Member Avatar
Member Avatar
+0 forum 2

Hi all. I have a program that uses a class called PersonalInformationClass. The assignment says: Design a class that holds the following personal data: name, address, age, and phone number. Write appropriate accessor and mutator methods. Demonstrate the class by writing a program that creates three instances of it. One instance should hold your information, and the other two should hold your friends' or family members' information. I think I may have got the code for the class to come out ok, but the demo doesn't come out to be exactly how I want it. The demo part needs to …

Member Avatar
Member Avatar
+0 forum 16

The End.