Hi, guys I am working on vb project, which will save client database. I've done the coding of ADD, NEW, SAVE, EDIT button. Now, I am stuck at DELETE button. When I delete any particular client then I want my client_id (it's a column in my access database) should get updated (like if I have five clients in database and if I delete 3rd client, then the client_id should start from 1,2,3,4; not like 1,2,4,5) I am using ADODB and Ms-access at backend, please help!!!!! for DELETE, I've done following coding: [CODE]Private Sub cmdDelete_Click() If rs.State = 1 Then rs.Close …

Member Avatar
Member Avatar
+0 forum 11

help please.. guys this is just the only problem in my program i cant print my data from sql..i need my thesis to finish soon..help please.. heres my code <?php require('fpdf.php'); $fullname = ""; echo $contractno = $_REQUEST['contractno']; echo $sname = $_REQUEST['sname']; echo $fname = $_REQUEST['fname']; echo $mi = $_REQUEST['mi']; echo $dob = $_REQUEST['dob']; echo $cpprefix = $_REQUEST['cpprefix']; echo $cpnum = $_REQUEST['cpnum']; echo $eadd = $_REQUEST['eadd']; include ('connect.php'); $str = "SELECT contractno,sname,fname,mi,dob,applno,cpnum,eadd WHERE ((contractno='".$contractno."')AND (sname='".$sname."') AND (fname='".$fname."') AND (mi='".$mi."') AND (dob='".$dob."') AND (applno='".$applno.'")); echo $result = mysql_query($str,$db); class PDF extends FPDF { function Header() { $this->Image('lifehead.jpg',25,10,150); $this->SetFont('Arial','B',12); $this->Cell(80); $this->Ln(20); } …

Member Avatar
Member Avatar
+2 forum 27

This snippet defines a function returning new identifiers created from reading the computer's time.

Member Avatar
Member Avatar
+0 forum 5

I've made a timer and six labels. Then a number is being generated for each label seperately. After testing how it works, I found out that sometimes two same numbers are being generated at the same time. In the picture attachment you can see how two numbers were generated at the same time. I was wondering if it's possible to prevent the random generation of two numbers at the same time for the numbers in the blue box. Here is the code that is in the timer: Randomize() Dim Number1, Number2, Number3, Number4, Number5, Number6 As Integer Number1 = Int(Rnd() …

Member Avatar
Member Avatar
+0 forum 21

im using api for twitter post, when i post content, twitter not generate the status id, i got this below error Fatal error: Uncaught exception 'EpiTwitterNotAuthorizedException' with message '{"errors":[{"message":"Could not authenticate you","code":32}]}' in

Member Avatar
Member Avatar
+0 forum 2

hi friend , m facing problem to generate pdf file. i m using following code:- if(isset($_POST['pro'])) { include "common.php";// for db conectivity $tablename="rentsum"; $sql = "Select empcode,ticket_no,ctgcode,empname,allot_dt,to_char(qtrno) qtrno,type,seccode,wt,lf,'0' arr ,CONSERV con,met_chg,'0' eu from $tablename where MONTH='$month' AND YEAR='$year' and type not in ('4','5','0') order by qtrno "; $result =oci_parse($conn,$sql); oci_execute($result); $filename="hrent.pdf"; header("Content-type: application/pdf"); header("Content-disposition: pdf" . date("Y-m-d") . ".pdf"); //header("Content-disposition: attachment;filename=$filename"); while($result=oci_fetch_array($sqldata,OCI_BOTH)) { $empcode=$result['EMPCODE']; echo $empcode."\r\n"; } } but it is not working. means pdf flie is generate but when im open the file it show error nmassage the this file is in damage format. plz help me that

Member Avatar
Member Avatar
+0 forum 23

Hello! So recently I have written a lexer/tokenizer and am working on a parser for a language with a friend. At this point everything is going great but I'm beginning to think about how I want to do code generation. Are there languages or systems that generate for example C code, compiles it then executes? If I were to do this how should I set this up? What are other ways code generation is done? Right now I'm thinking about generated C or maybe even D code and compiling. Any ideas or other methods? Thanks!

Member Avatar
Member Avatar
+0 forum 9

Hi... I'm seeking out some suggestions, ideas, or anything that could help... my .xl report is taking too long to generate... I'm doing this report under php and html but then It takes too long too generate... Is there any suggestion you could give me to fix such kind of problem?.. I don't know if this is about the query I've done or something wrong with my codes... Even generating a report for one employee takes longer than it needs to be...

Member Avatar
Member Avatar
+0 forum 1

Hi all, i am developing web application in asp.net backend MS-Sql.<br/> i have to retrieve a particular table values for example table name "costomer" and its fields are "c_id,c_name,c_contactno" like that and when i retrieve this values, it should be bind the checkbox for UI. now i've code for generate check box but it is not working well. only display single column c_id or C_name or C_contact number. but, i have to display all (c_id,c_name,c_contactno). i don't know how to do this, if anyone know please help me. #region generate checkbox public void generateckbox() { try { objAddValuesClass = new …

Member Avatar
Member Avatar
+0 forum 3

I have a table called `DUTY` (columns: `dutyid, dutyname, staffid`) and a table called `STAFF` (columns: `staffid, staffname`) In order to be fair, each of the staff will be auto assigned to each duty entry (record). So what should I do whenever I would like to insert a duty entry, it will auto assign the `staffid` (sequential) for it. Example * staffid : 1 staffname: Jack * staffid : 2 staffname: Mary So when I insert a new entry (first entry) for duty, it will auto insert `staffid = 1` for duty table. For second entry, `staffid` will be 2. …

Member Avatar
Member Avatar
+0 forum 1

Hello everyone, As a freelance i am working on my own project name myOnlineDesk. I want to make a module in admin section where i can create a database backup file and save to the system. The thing that i want is ".SQL" file. When i click on a Backup button then a complete database with stored procedures, Views and function generate a script file and able to download. If is there any kind of help or suggestion you have please feel free to write and comment here.

Member Avatar
Member Avatar
+0 forum 7

Hello, I have a program I have made in vb which works perfectly fine. It has a couple of variables I would like the user to define though such as the timer interval. To do this I would like to have one program where the user can download it, run it, input the specific information (Timer interval) and click generate then the program will generate the second program with the custom variables the user defined. I hope you know what I mean. How do I do this? Thanks

Member Avatar
Member Avatar
+0 forum 2

sir i need c code to generate random numbers between 1 to 100 and where the user can select the range(say 50 random numbers between 1 to 100 or 20 random numbers from 1 to 100 ) such that generated random sequence are not psuedo random numbers when it is run for different times and also in the generated random numbers no number should be repeated even if the program is run several times.

Member Avatar
Member Avatar
+0 forum 2

Hello, I'm very new to using VB.Net so I found it quite difficult to understand other answers that I searched for. Basically, I have an project to develop where a user can create an account, and log in with it. So far I have : Created a database in ms access with the relevant fields (2003 edition) Created a VB form with the correct text boxes etc. and linked the text boxes to the database. What I need : I would like to be able to code it so that when the form is opened, a new blank record in …

Member Avatar
Member Avatar
+0 forum 33

Hello everyone... I love the magic that programming does, that's why am here. Right here, I am using ..........Visual Studio (VB.net) 2012 ..........SQL Server 2012 I am actually creating a program to do two main functions.... 1). To Search for records from multiple MSsql tables and display the result in a report viewer or crystal report. (I don't want to use datagrid display on forms) I have a screenshot of the User Interface, but I wish I could attach it here. Problem: I want to search the student table when the user selects the first radioButton and to search the …

Member Avatar
Member Avatar
+0 forum 2

Hello again. Generating item codes for my inventory system became complex when the panel said that this must be the format of the generated ID number: "CATEGORY-ITEMNAME-ITEMINDEX" For example: School Supplies - Coupon Bond short- Second Item in the database would result to an item ID : SCS-CBS-002. Advanced thank you again. :)

Member Avatar
Member Avatar
+0 forum 3

Hi, I have googled but found nothing about this. I am trying to generate a random number from a given array. But how do i do it? **Suppose:** I have an array `int arr[]={3,89,99,4,55};` and i want to generate a random number among these numbers. thanks in advance.

Member Avatar
Member Avatar
+0 forum 2

Hi, How could I generate a new number/ID for a new line in my database? Tell me if I'm not clear enough. Thanks

Member Avatar
Member Avatar
+0 forum 2

hey friends, i am new to vb.net so i have a problem to sort out.Can u pls help me. In my form i have a combobox and textbox,when i select an value from combobox then in the txtbox it has to automatically generate value (from database) corresponding to value selected in combobox.For clear understanding suppose,if i selected an name of the student frm combobox then in the txtbox it has to display the rollno corresponding to tat name... pls help me.And thanks in advance..

Member Avatar
Member Avatar
+0 forum 4

Hi all, I am currently trying to generate a number from a specified range using a function int number_range(int from, int to) { return (from + rand() % (to-from+1)); } but negative numbers cause the program to crash. How can i go about doing this so it can take numbers of all kinds?

Member Avatar
Member Avatar
+0 forum 4

Hi! I have a php code that generates an excel file that is populated with mysql data of course through a mysql_query.. Here it is.. <?php require("aacfs.php"); header("Content-type: application/ms-excel"); header("Content-Disposition: attachment; filename=Reservation Summary_sortbydate.xls"); header("Pragma: no-cache"); header("Expires: 0"); $head1="Ayala Aviation Corporation"; $head2="RESERVATION SUMMARY"; $head3="For the period ___________"; $heads="$head1\n$head2\n$head3\n"; $query = "select bdate as 'Date', cliename as 'Client', grpcode as 'Group Code', bperson as 'Contact', reservno as 'Reservation No.', acode as 'Aircraft', fdate as 'Flight Date', itinerary as 'Itinerary', etd as 'ETD', eta as 'ETA', pname as 'Passengers', status as 'Status', cutoff as 'Confirmation Cut-off', adminid as 'Reserved by' from reservation order …

Member Avatar
Member Avatar
+0 forum 2

Hey guys, well im new to the php scene, but want to put this form which will auto-generate a new page (example : www.abc.com/123 or something like that) and then send a thank you email with the link to the auto generated page to the recipient. it will have fields of name/email/phone/address/country/drop down area/text area/image upload area. this is like it, i want some help with this form development. will be very thankful for the help you will post. thanks already!

Member Avatar
Member Avatar
+0 forum 7

I want to make a program that it can create a HTML page. It should be able to make a table (with data provided) using the HTML by the program itself. This code also uses wsgi so when the program runs you will need to type the localhost on a browser. But there are some errors in this code and I am not exactly sure what is wrong with them. Any suggestions? [code]def table(headings, data): tableString = """<html> <title>This is the Title</title> <table> <tr> """ + getHeaders(headings) + """ </tr> """ + getRows(data) + """ </table> </html> """ def getHeaders(headings): …

Member Avatar
Member Avatar
+0 forum 2

Hi, I'm using joomla.. I need to generate user name with ID. like: (different names for male-female, standart-member,gold-member,platinium-member) John567,John568,John569.... Jane345,Jane346,Jane347.... SilverJohn567,GoldJohn568,

Member Avatar
Member Avatar
+0 forum 1

I am developing a Interactive Spoken Dialogue System, in which user will say something to the system and system will answer him in voice and generating facial expressions according to the voice. But, i can't get any idea that how can i generate facial expressions. Will anybody tell me that how can i start or if there is any open source package already exists then it would be very nice. If anybody know about any open source software related to this then please tell me.

Member Avatar
Member Avatar
+0 forum 1

hi im told to make a program where the user enters a large number like 13195 and the prgrams gives it the highest prime factor, which i 29. now i have to do this using recursion in basic c, without using loops of any kind, so noo for, while etc. prof showed a way to call the funtion again by it self but dont really get him so thats why need a bit of help.. [CODE]#include<stdio.h> #include <math.h> int main() { long int num; long int prime(long int num); long int primefactor(long int num); printf("Enter the number whose prime factors …

Member Avatar
Member Avatar
+0 forum 1

Question: Write a single statement that chooses a random number from each of the following sets: a) 2,4,6,8,10 b) 3,5,7,9,11 c) 6,10,14,18,22 I wrote the following statement for the set (a): [CODE](1 + (rand() % 5)) * 2;[/CODE] but I am unable to write ones for sets (b) and (c). Can someone please give me some hint about how to choose random numbers from these sets using a single statement?? I was able to do this using a switch selection structure but in in a single statement.

Member Avatar
Member Avatar
+0 forum 4

Hello to all, I need your help,,,I m beginner of the php... i have to generate a user id for register users & it depends upon the batch field,, <option <?php if(($batch)=="1983-86")echo "selected";?>>1983-86</option> <option <?php if(($batch)=="1984-87")echo "selected";?>>1984-87</option> <option <?php if(($batch)=="1985-88")echo "selected";?>>1985-88</option> <option <?php if(($batch)=="1986-89")echo "selected";?>>1986-89</option> i need to select batch="1983-86" , year 1983 last 2 digits... that means 83001,83002,83003.....etc like this i need to generate please help me.........

Member Avatar
Member Avatar
+0 forum 2

its been 6 days passed since i started making this assignment of mine it is to show how objectdatasource is used, until now, i still cannot getaway with this error, [B][U]The data source for GridView with id 'GridView1' did not have any properties or attributes from which to generate columns. Ensure that your data source has content.[/U][/B] is anybody can help me? and check what is wrong with my codes? [CODE]<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Default2" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title></title> </head> <body> <form id="form1" runat="server"> <div style="background-color: #FFCC00" > &nbsp;<asp:GridView …

Member Avatar
Member Avatar
+0 forum 4

I designed an invoice system that add rows automatically and computes the results, print it in another file that can be downloaded by other users.can i get help on how to multiply the price and quantity to get amount? this is my code: <SCRIPT LANGUAGE="JavaScript"> function showamt() { //var unitprice = document.form1.unitprice[].value; //var qty = document.form1.qty[].value; //amount = unitprice*qty; //document.form1.amount[].value = amount; var a= document.getElementById('unitprice[this]'); var b= document.getElementById('qty[this]'); var c = Math.ceil(a.value*b.value); alert(b); document.getElementById('amount[this]').value =c; } </script> <SCRIPT language="javascript"> function addRow(tableID) { var table = document.getElementById(tableID); var rowCount = table.rows.length; var row = table.insertRow(rowCount); var colCount = table.rows[0].cells.length; for(var i=0; …

Member Avatar
+0 forum 0

The End.