64,152 Solved Topics
Remove Filter ![]() | |
I,m going through a tutorial for pagination using php mysql and ajax. I'm getting this error Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\wamp\www\phpAjaxPagination\pageData.php on line 16 This is the file. <?php include_once('inc/dbConnect.inc.php'); include_once('inc/pagination.inc.php'); if(isset($_POST['pageId']) && !empty($_POST['pageId'])){ $id=$_POST['pageId']; }else{ $id='0'; } $pageLimit=PAGE_PER_NO*$id; $query="SELECT post,link from pagination … ![]() | |
Hi, I am unable to run the code given in the following link https://github.com/hamilton/LocalitySensitiveHashing properly. Can anyone help me on the instructions, as in where and how to provide the data. I am facing problem in the following step : this_lsh.bin_data(data) as given in the README. I am unable to … | |
Hi guys, I have a php code that displays a list of dishes where a user can check on those dishes and then save the selection to the database. My code works find when selecting and saving the data. But the problem is that when I try to uncheck one … | |
I tried to create those 6 radiobuttons(bh1,bh2,bh3,bh4,bh5,bh6) using a for and placing them in a dictionary but I get the following error whenever they should be displayed! I have attached a folder with the images. Any help please is highly appreciated! Thank you Exception in Tkinter callback Traceback (most recent … | |
Hello programmers! I have another easy problem. I want to write code that can find a word in the string, that contains another substring. Code needs to get or just copy specific word in string. To get that word, this word need to contain some specific string (ex: "Platypus"). If … | |
I am using a framework, and I am having an issue with getting the results of this particular associative array. All others work except for this one and I am not sure why. This one only returns one result. Here is what I have in my model: public function listStats($id) … | |
Hello, On my website i am trying to get my site to display the users address details if they are logged in have tried a stored procedure: ALTER PROCEDURE dbo.showAddress @userid nvarchar(256) AS SELECT Fullname, Address, County, Postcode FROM Addresses WHERE @userid = UserId RETURN But i get an area … | |
hello experts . . . i am using following code:- `con.Execute "insert into tbl values('" & Text1.Text & "','" & Text2.Text & "') ", adCmdText` i am trying to insert data using above statement and its working well but an error occures when i input data (contaning the symbol `'` … | |
need help here guys! i want to open record from form1 and form1 composed of two listview namely listview1 and listview2 if i choose listview1 or listview2, form2 will appear and data will display in labels then if listview1 was selected then save it on table 1st_sem and listview2 on … | |
Hi i've created a class which name is testclass.cls Inside of testclass.cls i created this code public void Insert(string materialSize, string KgPermetre, string PricePerCut, string MaterialType, string LineColour) { SqlConnection objcon = new SqlConnection(Cls_Connection.srConnectionString); objcon.Open(); SqlCommand cmd = new SqlCommand("sp_MaterialSize", objcon) { CommandType = CommandType.StoredProcedure }; cmd.Parameters.AddWithValue("action", "Insert"); cmd.Parameters.AddWithValue("MaterialSizeId", ""); … | |
Hi All, I've hit a brick wall trying to get the jquery autocomplete to work correctly. The problem is with the .php file and the way the While loop works, as what it does is create a array for every name rather than one single array. I've tried to move … | |
i have a code that creates a login password for a user in my android app. The code first of all compares the setPass and the confirmation pass then saves it in the db. My problem is that its doing the checking on the first part of the if function … | |
I have this code so far #Add two digits def add(a,b): return a+b #Subtract two digits def sub(a,b): return a-b #Multiply two digits def mul(a,b): return a*b #Divide two digits def div(a,b): return a/b #returns an integer that the user enters def getCommand(): cmd = input("Choose: ") return cmd #Execute … | |
hi there.. I just need some help for my loan management system. thus anyone know how can i stored schedule of amortization to the sql serve? is it 1 insert statement is enough to store in database? do this problem need looping. I don't know what code should I need … ![]() | |
hi Im using chart to display data in VS 2010, its working properly with this code... Chart1.Series(0).Name = "Days Used" Chart1.Series(0).Color =Color.Red Chart1.Series(0).XValueMember ="Account Name" Chart1.Series(0).YValueMembers ="Days Used" Chart1.Series(0).IsValueShownAsLabel =True my x&yvaluemembers value came from sql server database. The "Account Name" And "Days Used" are alias of my database column … | |
hi all. I want to fill the Listview from a mssql database in vb.net but it not show all the data in Listview. I have the followning code. Dim sSQL As String Dim lvwItem As New ListViewItem() sSQL = "SELECT field1, field2, field3 FROM tablenam e " sSQL = sSQL … | |
![]() | basically i am using xpath for a search query, the results display like this Array ( [0] => SimpleXMLElement Object ( [TITLE] => Empire Burlesque [ARTIST] => Bob Dylan [COUNTRY] => USA [COMPANY] => Columbia [PRICE] => 10.90 [YEAR] => 1985 ) [1] => SimpleXMLElement Object ( [TITLE] => Greatest … ![]() |
Hello Community, I was wondering if it is possible to access and use an api from my website? | |
is it posible to pass information held inside a MySQL database into a javascript array using PHP code? something like: $sql = mysql_query("SELECT * FROM uploads WHERE ref_id = '$refID'"); //javascript below var array = new Array() while(<?php echo $row = mysql_fetch_array($sql)?>) { array.push(<?php echo $row['name']; ?>) } or am … ![]() | |
I wanted to read data from multiple files simultaneously but I am getting NULL error. Could anyone help in pointing out my error in the code. I am not sure if I can make arrays of FileInputStream and DataInputStream the way I have done. [CODE=Java] import java.io.*; class Count1 { … | |
Hi. I have a php file with image links(mysql data) in one div, when a link is clicked the product_id is sent to another php file that builds the html to display all images(in another mysql table) with that product_id in another div. Someone else helped me out withsome ajax … | |
Hello daniweb folks. I am here to ask some guidance, tips, suggestions and advices regarding the round robin scheduling algorithm. We are tasked to solve for the waiting time and turn around time of each process. They all have the same arrival time which is zero. here is my codes: … | |
Hello people! I want to develop for Windows Phone (7.5/7.8). Can someone point me where I should start? I'm kinda familiar with C#, I need to know what changes from C# development on desktop and C# development on WP. Sorry for the vague question, I really don't know where to … | |
Hello everyone, i am fairly new to shell scripting so please bear with me. The following script is supposed to read words from a file and depending on the word print different things. However it always prints the default value. It also refuses to work completely if the first line … | |
is there any way to pass a variable from php into a variable in javascript? or do I need to revert to AJAX to get this done? ![]() | |
Sorry for everything being marked as code. It wouldn't let me post it unless I did (and, yes, I did try using the Inline Code option as you can see by the single quotes around much of what is written here). I have a page with an updatepanel that contains … | |
Okay I am wondering what is a syntax to create a new property with read-write proprties, I read the book but it is not clear. Your help is appreciated | |
Hi I have the following email script, which is working fine except none of the carriage returns work and the entire message from all the fields just goes in one line without any spaces. I've tried to look up carriage returns and didn't find anything different from \r\n Any help … | |
Hi all, I am trying to create an excel file in PHP which I then want to send as an attachment via the mail() function. I am able to create the excel file using the following code: function setHeader($excel_file_name)//this function used to set the header variable { header("Content-type: application/octet-stream");//A MIME … | |
Hello, I ajust need a help here. I have 2 tables in my database (ms access) table1 = employees table2 = eID In employees table I have a column name "myimage" in "OLE Object" data type I just want to copy the cell value in table "employees" at column "myimage" … | |
Hello Community, I was wondering if there is a way to goto the direct link of a file (eg. http://example.com/files/test.txt) and for it to download insted of loading and displaying the file. I want to do this for every file in the "files" folder and only that folder. | |
Yesterday when I was working on php script I noticed that categories and subcategories works seperatly if I clicked on main category its show all articles under this main category and nothing imported from subcategories, now am working on somthing like this, so what should I do to avoid this … | |
Stock Recording System - I basically wants to see the data recorded in the table sql. yet this is not the case. mysql_query("INSERT INTO Produk FROM stock VALUES ('Produk')"); mysql_query("INSERT INTO Jumlah FROM stock VALUES ('Jumlah')"); mysql_query("INSERT INTO Tanggal_Masuk FROM stock VALUES ('Tanggal_Masuk')"); Is that instruction not enough to record … | |
Please any one can help me to fix my last statement of code I'm traying to have a user input the temp and then convert ot either F or C. But my last if else statement doesnot engage well with the over all code. I'm beginner Java programnig. Thank you … | |
go through every combination ie(0,0,0,0),(0,0,0,1), .... ,(3,3,3,3) But in a general way such that it's always 0-3, but it may be 4 digits or it may be 5 digits or any other number? If I know the length I could do nested for loops, but since I don't...is there an … | |
here is the slideshow styles, <style> body {font-family:Arial, Helvetica, sans-serif; font-size:12px;} .fadein { position:relative; height:361px; width:640px; margin:0 auto; background: #000; padding: 0px; } .fadein img { position:absolute; left:0px; top:0px; } </style> here is the javascript <script type="text/javascript"> $(function(){ $('.fadein img:gt(0)').hide(); setInterval(function(){$('.fadein :first-child').fadeOut().next('img').fadeIn().end().appendTo('.fadein');}, 5000); }); </script> and here are the phps … | |
Hi guys, I'm working on a holiday scheduling app and I was wondering that if a person wants his holiday for example 10 days. id uid data1 data2 ore tip_concediu ts 7 244 2013-01-25 2013-02-05 3 2 2013-01-25 16:08:35 How would it be possible that I could track the holiday … | |
Problem : If ComboBox contains "x" display DialogBox1. Whats the code after it? | |
hi, i have been struggling to find a good autocomplete script with mysql backend. i now have an easy to use one and all is working, however in my page after the search has been typed and user selected instead of the users name appearing in the search box i … | |
All, Is this adeqaute to close all resources associated with clientSocket? public void readAll(String[] s) { using (TcpClient clientSocket = new TcpClient(host, port)) { NetworkStream clientStream = clientSocket.GetStream(); StreamWriter toOmega = new StreamWriter(clientStream); StreamReader fromOmega = new StreamReader(clientStream); toOmega.Write(readTemp); toOmega.Flush(); //Command is not sent until buffer is flushed s[0] = … | |
Hello Daniweb, I'm learning Python at the moment, and I'm starting by looking at automating some of my server tasks, namely things like backups, virus scans and checking for IP changes (being on a dynamic IP, automating this task will be very helpful). I've started by creating some code which … | |
I am looking for a C# editor and I am wondering what is the best one (hopefully for mac) and I noticed that Visual studios is good (but i believe it is windows only though)... I am wondering if anyone has any recommendations for an editor (unless Dreamweaver or Coda … | |
# Purpose: Tax input amount # #----------------------------------------------------------------------- # VARIABLE DEFINITIONS salesAmount= 0.0 salesTax=0.0 total=0.0 #----------------------------------------------------------------------- # CONSTANT DEFINITIONS #----------------------------------------------------------------------- # FUNCTION DEFINITIONS #----------------------------------------------------------------------- # PROGRAM'S MAIN LOGIC salesAmount = float (raw_input("Enter the sales amount:")) salesTax = float(salesAmount*0.08) total = salesAmount + salesTax print "The sales amount is $", salesAmount print … | |
hello, I am working on a project that involves a bit of directory manipulation. Until now i only had to create create directories as per user input, so till now the commnad mkdir worked fine: mkdir("c:/test"); But now i have to do some manipulations on the string to get the … | |
i have search box,listview and 3 labelcaption namely: fname,lname and total. my database name is students and table name attendance. if i search particular student and display in listview, once i click the name on the listview automatically display on the labels, and display total number of records of that … | |
Yo. I am making a project in vb6. The backend is MS Access 2003. Data is entered into the form and stored in the database table. The code: With cnct .BeginTrans .Execute "INSERT INTO Employee_Info (EI_CNIC, EI_FirstName, EI_LastName, EI_Gender, EI_Birthdate, EI_Country, EI_Language, EI_MaritalStat, EI_Education, EI_Designation, EI_Salary, EI_ResdAddress, EI_ResdContact, EI_Cellphone, EI_EmailID, … | |
hey, i am creating one project where i am using MDI system, so when i am opoening MDICHild in MDI Parent it adds new title bar for MDI child. I tried formborderstyle, have hide controlbox, max - min button but it dident worked ? so can anyone have any solution … | |
Hello, I would like to seek help from all experts in VB.NET (VB Language) regarding copying file from source folder to destination folder. I have a files named YYYYMMDDHHMMSS.txt. Now i want to build a small project to copy those file to destination folder. The project should work in following … | |
I just download new version of eclipe on to my computer and it create a folder called 'workspace'. Is there way i can put all my project from my old workspace in to new workspace? i tried copying from old workspace and pasting in to new workspace. than i open … | |
Hi... I am using xampp-win32-1.7.3.I want to use Adodb.I had seen that adodb is included on xampp package(xampp/php/pear/adodb).I had used the following code to retrieve data from mysql database. [CODE]<?php include("adodb.inc.php"); $db = NewADOConnection('mysql'); $db->Connect("localhost", "root", "", "emp"); $result = $db->Execute("SELECT * FROM employ"); if ($result === false) die("failed"); while … |
The End.