- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 2
- Posts with Upvotes
- 2
- Upvoting Members
- 2
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
53 Posted Topics
Re: [CODE] $username = $_SESSION['username']; $query = "SELECT * <--------mysql_query removed... FROM tblpatient_pass p, tblpatient_info i WHERE p.RelationMR_no = i.MR_no AND username='$username'"; $result = mysql_query($query) or die(mysql_error()); while ($patient = mysql_fetch_array($result)) { echo $patient['RelationMR_no'].'<br>'; echo $patient['username'].'<br>'; echo $patient['password'].'<br>'; echo $patient['email_address'].'<br>'; echo $patient['lastname'].'<br>'; echo $patient['firstname'].'<br>'; echo $patient['mname'].'<br>'; echo $patient['gender'].'<br>'; echo $patient['age'].'<br>'; } … | |
Heyy...i'm trying to save the attachment file location in mydb...the thing is it's just saving the file name eg.database.txt i want it to look like this C:/bla/bla/test my codes addtask.php <html> <head> <title>Task Management System</title> <link rel="stylesheet" href="Appcss.css" type="text/css"/> <script src="datetimepicker_css.js"></script> <script type="text/javascript"> // Javascript function which takes care for … | |
Good Evening earth.... I have a question here, can someone guide me with my question Here it goes. I have a html form, which calls the function in javascript and prompts the user whether to delete a specific user.The dialog box prompts but it is not sending the value that … | |
I'm an enginnering student, our lecturer has ask us to create an opengl app tat shows the bersenham so far i have derive the algo and the pixels...but i don't know how to draw a line between those pixels.. this is what i have so far void init(void) { glClearColor(1.0, … | |
hey guy, i need some help in reading a file across my network... this is what i did... $myFile = fopen("\\10.102.216.129\backup\Gatepass\Gate_Pass.csv",'r') or die("cannot connect"); $rows = file("$myFile")or die("cannot connect"); but each time i'm getting an error : failed to open stream: No such file or directory can someone help me | |
Guys, need some guidance here... i have this php codes that copies all the value in a table to another table....some sort of table replication now, the problem is when i tried copying them, keep getting an error Database down **1054: Unknown column '124928F014007570' in 'where clause'...** the codes dataverification.php … | |
I'm having trouble deleting this file... keep getting this error : Warning: unlink(Gate_pass.csv) [function.unlink]: Permission denied in C:\wamp\www\SVS\copydata.php on line 31 i search trough some sites, they said replace the $myFile with the orginal name Gate_pass.csv, but still getting the same error...can someone guide me on this matter. thank you … | |
Re: your bumping an old thread...its probably solved by now..... | |
Re: veedoo, wanna ask you something....can this code be done purely in php(not using javascript) thanks | |
okay....my cookies and session varibles are not working on my handheld...but its working on my computer...i have checked my handheld using phpinfo(), it does accepts cookies...in desperate need to idea...kindly guide me please invoice.php <?php session_start(); //starting session $host="localhost"; // Host name $username=""; // Mysql username $password=""; // Mysql password … | |
okay guys....currently i'm using session for my web application, the problem is evertime i click the browser "back" button, the session expires and the variables are reseted. i want to retain this value until the user quits the browser. | |
okay....i've creating a web base application...its running fine on my computer...but now, i wanna run it in a handheld...the size is too big...so, i converted it using doing this... what happens is, my background goes missing and the size remains the same...can someone guide me...thank you in advance <LINK href="web.css" … | |
okay...seem to be experiencing some problem here....in my pc, the web application is running perfectly....but when i run it from my handheld, its showing error... this is my code <?php session_start(); //starting session $host="localhost"; // Host name $username=""; // Mysql username $password=""; // Mysql password $db_name="test"; // Database name $tbl_name="test3"; … | |
Re: i still don't get what you want...yes please.... | |
Heyy, guys...i have developed a php/mysql program...now i would like to run it from a handheld...should convert or do anything...1st time doing this...thank u in advance | |
Re: i don't quite get what you want....could please be more specific...thanks.. | |
Hey, i'm trying to connect to databases together in a single php, i follow a guide i searched in google, but there is something wrong with it...no error, juz a blank page... [CODE] <?php //This file is to check for the invoice number whether it exists or the field is … | |
heyy, as the title says, i need help regarding this issue... okay, the thing is i have two databases with the same number of fields. i need a function that runs over time, checking and maintaining the data inside both database A takes data from my company server, database B … | |
okay....i can't delete the row... the screen is juz blank...been trying to figure this out.... [CODE] $invoice_no=$_SESSION['invoice_no']; $dbh1=mysql_connect("$host", "$username", "$password")or die("cannot connect"); $dbh2=mysql_connect("$host", "$username", "$password",true)or die("cannot connect"); mysql_select_db("$db_name",$dbh1)or die(mysql_error()); mysql_select_db("$db_name1",$dbh2)or die(mysql_error()); $sql="SELECT * FROM $tbl_name WHERE invoice_no = '$invoice_no'"; //the sql query $result = mysql_query($sql,$dbh1); $row = mysql_fetch_array($result); $container_no=$row['container_no']; $document_no=$row['document_no']; … | |
helloo....guys need a favour from you....okay this is the scenario i have a attribute called document_no, now i would like to append running numbers behind it to fill in a new attribute eg: document_no = 123222 serial_no = 12322201 12322202 12322203 now the number starts from 01 and go on … | |
Re: do this [CODE] <?php extract($_POST); $uname=$_POST['user']; $pwd=$_POST['password']; $con=mysql_connect('localhost','root','') or die('could not connect:'.mysql_error()); mysql_select_db("priya",$con); $result=mysql_query("select * from user where user='$user' and password='$password'"); if(($row=mysql_fetch_array($result))!=0) { $msg="Login successfu!!!"; header("refresh:1;url='insertphpnamehere'.php"); //that 1 means( after one second delay) } else { $msg="Access Denied"; } echo $msg; mysql_close($con); ?> [/CODE] | |
heyy guys....i manage to connect to diff database in a single form...but how do i compare the value... for eg. now i would to compare invoice_no for the both of them [CODE] $host="localhost"; // Host name $username=""; // Mysql username $password=""; // Mysql password $db_name="test"; // Database name $tbl_name="test3"; // … | |
Re: use session variable... [CODE] $student=$_POST['student']; // $_SESSION['student']=$student; [/CODE] calling in the 3rd page [CODE] $student=$_SESSION['student']; [/CODE] should work | |
Heyy guys, need some help here...the thing i'm suppose to do is, update a value for a single row, but currently its updating the value for all the row... [CODE] <?php session_start(); $host="localhost"; // Host name $username=""; // Mysql username $password=""; // Mysql password $db_name="test"; // Database name $tbl_name="testing3"; // … | |
Re: could you be more specific....don't quite get you anyways, if would you like go to another page use this [CODE] header("location:insertphpnamehere.php"); [/CODE] go to a page after a certain time [CODE] header("refresh:1;url=insertphpnamehere.php"); [/CODE] ![]() | |
heyy guys...really could use some help here... my table is not updating its value, but there are no errors...the syntax seem to be correct [CODE] <?php session_start(); $host="localhost"; // Host name $username=""; // Mysql username $password=""; // Mysql password $db_name="test"; // Database name $tbl_name="testing3"; // Table name $invoice_no=$_SESSION['invoice_no']; $container_no=$_SESSION['container_no']; // … | |
Okay this is my code, i can't get the else statement part to work...can anyone kindly assist me...i find nothing wrong with the syntax...thank u... ps: no error... [CODE]<?php session_start(); $host="localhost"; // Host name $username=""; // Mysql username $password=""; // Mysql password $db_name="test"; // Database name $tbl_name="testing"; // Table name … | |
Guys, need some help regarding this issue, i have a php file, which requests an invoice_no(invoice.php), then searches the database and returns the other value associated to it(eg,document_no,PO_no) to another php file(displaydata.php). Now the problem is, i wanna send the invoice_no not only to displaydata.php but to another file test.php. … | |
| |
Hello all, Guys need some advise and some help regarding displaying data from database... so, basically this is what i'm trying to do, have a keyword (invoice_no)...i'm suppose to search the database, and the find record...the display the remaining attributes (document_no,pallet_no and so on) invoice.php [CODE] <FORM ACTION=".php" METHOD=get> <h1>Enter … | |
helooo.....i'm developing a login page currently...and i'm getting tis particular error...i have look it up on the net, changes were made....but still can't find a solution to this problem...i would be grateful if you guys could help me.. [CODE] <?php $host="localhost"; // Host name $username=""; // Mysql username $password=""; // … | |
okay guys, i've already created a satellite but now i need it to rotate....i did something like this... [CODE] void myDisplayFunc(void) { glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); glPushMatrix(); glTranslatef(posX, posY, posZ); glRotatef(rotateX, 1.0f, 0.0f, 0.0f); glRotatef(rotateY, 0.0f, 1.0f, 0.0f); glRotatef(rotateZ, 0.0f, 0.0f, 1.0f); glScalef(scaleX, scaleY, scaleZ); GLUquadricObj *pObj = gluNewQuadric(); gluQuadricDrawStyle(pObj, GLU_FILL); … | |
hey guys, i'm designing a satellite for my project....the thing is its looks kinda plain...so i read abt texture coor....but i'm not sure how to use it....could you help me out with this.... [CODE] glColor3f(0.5f, 0.0f, 1.0f); glTranslatef(0.0f,0.0f,0.0f); gluCylinder(pObj,5.0f, 5.0f, 10.0f, 24, 24); //drawing cylinder(but got holes...=(,must cover them up) … | |
Help me.....i'm tryin to figure out how to link to another java class using a button but i falied to do so...kindly assist me....thanks [CODE] public Login() { setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); setSize(400,400); java.awt.Container contents = getContentPane(); contents.setLayout(null); setTitle("Air-Malaysia"); contents.setLayout(null ); contents.setBackground(Color.black); contents.setForeground(Color.orange); am.setFont(f1); usrnm.setFont(f2); clk.setFont(f2); clk.setBackground(Color.black); clk.setForeground(Color.orange); btnOk.setBackground(Color.black); btnOk.setForeground(Color.orange); btnCancel.setBackground(Color.black); btnCancel.setForeground(Color.orange); usrnm.setForeground(Color.orange); … | |
[CODE] package testt; import java.awt.*; import java.lang.*; import java.applet.*; import java.awt.event.*; import javax.swing.*; public class Login extends JFrame implements ActionListener { //JFrame logframe = new JFrame(); JLabel am=new JLabel("Air-Malaysia...."); JLabel usrnm=new JLabel("Username : "); JLabel nwm=new JLabel("Not yet a member? "); JButton clk=new JButton("Click Here"); JLabel pswrd=new JLabel("Password : "); … | |
I'm having some trouble with the output here...can anyone help me...learning how to use to C language, more of a C++ programmer...i tried using all sort of declaration but the output is still the same... [CODE] int i; float x = FLT_MAX - (2.0); double y = DBL_MIN - (2.0); … | |
okay i need some help with this...i'm creating a graph program..the problem is the linked has to be user specified...i manage to create a linked list..i don't know how to create another one...its some sort like this : 0 1 2 0 - - > created this 1 - - … | |
okay, i'm having problem with fitting my background into my web browser. the image is somehow moving to the left. [CODE] <HTML> <TITLE>A New Beginning...</TITLE> <HEAD><B><FONT COLOR = "ORANGE">My life...</FONT></B></HEAD> <BODY BACKGROUND="wall.jpeg" position="center"> </BODY> </HTML> [/CODE] thanks guys.. | |
hey can't seem to send and receive data...i followed an instruction from another site...but its not working...can u guys help me out.. [CODE] Private Sub conn_button_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles conn_button.Click LoginPanel.Hide() dport.Text = ComboBox1.SelectedItem drate.Text = ComboBox2.SelectedItem SerialPort1.PortName = ComboBox1.SelectedItem SerialPort1.BaudRate = ComboBox2.SelectedItem End Sub … | |
ok...i'm having trouble changing a value in a array into a character [CODE] void gameon(int **game,int &size,int &x,int &y,int &score1,int &score2) { int i,j,num1,num2; cout<<"Please enter a number from the selected row/column -->"; cin>>num1; for(j=0;j<size;j++) { if(num1==game[x][j]) { cout<<"Number found"<<endl; game[x][j]=='X'; score1=score1+num1; y=j; } } display(game,size,score1,score2); } [/CODE] i can't … | |
hey...i'm having trouble passing a user define 2d array... [CODE] void genrand(int &game[][],int &size) { int i,j; for(i=0;i<size;i++) { for(j=0;size;j++) { game[i][j]=(rand()%100); } } } int main() { int size; int game[][]; cout<<"Please enter your Game Size"; cin>>size; genrand(game[][],size); return 0; system("pause"); } [/CODE] This is my code...i read in … | |
can somebody help me with this....i'm creating a 4X4 sudoku program...with 8 auto-generating numbers and 8 user inputs...i used the random number function rand() but the numbers keep on repeating...the problem is i'm not allowed to use arrays... [CODE] int main() { int row1col1,row1col3,row2col2,row2col4,row3col1,row3col3,row4col2,row4col4; int row1col2 = 0; int row1col4 … | |
I'm juz wondering how do I send a single value to a 8-parameter function... [CODE] void enterdata1(int &row1col2) { cout<<"Please enter the number for Row 1-Columm 2"<<endl; cin>>row1col2; if(row1col2 != 1 && row1col2 != 2&& row1col2 != 3 && row1col2 != 4) { cout<<"Please enter the correct number (Which is … | |
hello....i'm juz wondering is there any that generates UML diagrams such as sequence diagram,activity diagram n more once i enter my source code??...help me pls most of the software i use only generates class diagrams... could anyone tell me which is can help me...... | |
hello guys, can anybody help me with smart devices....i need a good website to learn abt this with tutorial and example...can anyone supply me with links??? thanks Gopinath.. | |
hi, i'm currently doin a booking system...i have a problem regarding with the booking date... Ok, lets say i'm booking a table on the 7th of october at 7.00pm which is 2 days from today...once i book the table it is booking from today...the timer runs from now until the … | |
can some help me with this datetimepicker problem... btime1 is my datetimepicker(format is time) [code] Dim time559 As DateTime Dim time1001 As DateTime time559 = FormatDateTime("5:00:00 PM", DateFormat.LongTime) time1001 = FormatDateTime("10:01:00 PM", DateFormat.LongTime) If Btime1.Value < time559 And Btime1.Value > time1001 Then MsgBox("Booking Time is only available from 6.00 PM … | |
how do i output like datetimepicker.text to a listbox... I tried datetimepicker1.text but it did not work....can someone help me please my code is like this... Rpanel.Hide() Plistbox.Items.Add("Customer Name" & ControlChars.Tab & _ ControlChars.Tab & "Booking Date" & ControlChars.Tab & _ ControlChars.Tab & "Booking Time") Plistbox.Items.Add(Bcusname.Text & ControlChars.Tab & _ … | |
hello guys, i need help assigning details in a listbox to a button, therefore changing the buttons color....any idea...i manage to do something here.... [code] PListBox1.Items.Add("Customer Name" & ControlChars.Tab & _ "Booking Date" & ControlChars.Tab & _ ControlChars.Tab & "Booking Time") PListBox1.Items.Add(Bcusname1.Text & ControlChars.Tab & _ ControlChars.Tab & ControlChars.Tab & … |
The End.