rotten69 20 Posting Whiz

I think he wants to pass the value of the variable id from a file to another. $_GET[] should work.

rotten69 20 Posting Whiz

I hope all your problems are solved. If yes so, please kindly mark the thread as solved.

rotten69 20 Posting Whiz

Try using $_GET

rotten69 20 Posting Whiz

Aha. The problem is in your form. The attribute name in the input field is called nama.

Change this line.

Name : <input type="text" name="nama" value="<?php echo $row[1] ?>"/><br/>

To this line.

Name : <input type="text" name="name" value="<?php echo $row[1] ?>"/><br/>

This should solve your problem. Tell us how you go with it.

rotten69 20 Posting Whiz

I also tried using Arabic characters but the compiler didn't seem happy to accept them. I wonder if I only need to change something in the compiler's settings or do something else..

rotten69 20 Posting Whiz

You may also have a look at LINQ to SQL if you plan on making a big game. LINQ to SQL is a very elegant way of retrieving data from a database. You'd only need to interact with database objects rather than using SQL queries.

Try these sites: 1- Intro to C#
2-Microsoft's website(should be your reference site for functions/ APIs..)

Good luck.

rotten69 20 Posting Whiz

if this solves your problem, please kindly mark it as a solved thread.

rotten69 20 Posting Whiz

Change the attribute ID to name in your form. This will fix the problem. If it doesn't, then try the steps below:

Delete the $ sign before table name in your query

$sql="SELECT * FROM tbl_name WHERE username='$myusername' and password='$mypassword'";
if $count => 1

then Try checking if the username and password are typed.

$mypassword = $_POST['mypassword'];
$myusername = $_POST['myusername'];

if ( isset('$mypassword') && isset('$myusername') ){

DO SOMETHING 

}else{

echo "username: $myusername and password: $mypassword  are not correct";

}
rotten69 20 Posting Whiz

I have noticed something wrong with your form.

<td align="right" width="130px">
    Username:
    </td>
    <td><input type="text" size="40" id="myusername" class="inputbox" /></td>
    </tr>
    <tr>
    <td align="right">
    Password:
    </td>
    <td><input type="password" size="40" id="mypassword" class="inputbox" /></td>

OK. Change the IDs for password to mypassword and for username to myusername. Try this and I'm sure it will work. The reason I'm telling you to do so Because you have got different names that don't match the names in your query.

rotten69 20 Posting Whiz

Try to use the default username = root and default password if you havent changed it.

rotten69 20 Posting Whiz

The adjective (public) given to a class meaning that it is accessible so you can use this public anywhere in your java project. (int void) means that it will return or give you an integer value. And this method takes/expects a String parameter which is specified in between the brackets and it is (String s). So you specify the data type before the variable name as you did in this example. So, the data type for "s" is "String".. I am not sure what's inside the body does if anyone does know it. Please explain it to us. Thanks in advance.

I hope this helps.

rotten69 20 Posting Whiz

They are both database langauages and I think the difference between them is to do with the version of PHP that is used in the application. For example, if you're using the latest version of PHP and that is php5, you will need to use mySQLi because it's the improved and newer version of mySQL. Therefore, mySQLi gives PHP developers new features to use such as

1-Object-oriented interface .

2-Support for Prepared Statements .

3-Support for Multiple Statements .

4-Support for Transactions .

5-Enhanced debugging capabilities .

6-Embedded server support .

For more information on the differences between them and what features they offer, here is a link for you


I hope this helps you.

Thanks,

rotten69 20 Posting Whiz

Show us your HTML form( all fields) please,,,

rotten69 20 Posting Whiz

it is safer and cleaner to separate PHP section/query. Therefore, try putting all PHP codes into a PHP file. Then, name it, for example query.php, then put the name into the action attribute of your form. In regard to adding/updating data on your site, I can NOT see any fields in your form except the submit button. OK, here is a simple way of doing this, in your form where you have the input fields, have an attribute

name = "nic"

then in your PHP file. Call it to get the data from users like

$nic = $_POST['nic']

I hope this helps.

rotten69 20 Posting Whiz

I'd be very happy with firefox working. I have stopped IE for development reasons. It also crashes all the time !

Good luck with it, mate.

rotten69 20 Posting Whiz

I think you may have to change file size that is specified in your php.ini in the apache server. As I can slightly remember the line, it is " upload size maximum" or something like this. Because by default, it only allows you to upload a maximum of 4 MB, I think.

And in your HTML form, you may also have to add this line after your submit button.
The below code is just an example to illustrate to you.

File to upload: <input type="file" name="userfile" size="20" /> <br />
	<input type="submit" value="submit" />
	
	<!-- MAX FILE SIZE IN BYTES -->
        <!-- You add the size in value atrribute and it's BYTES -->

	<input type="hidden" name="MAX_FILE_SIZE" value=" ...">

I hope this helps.