cwarn23 387 Occupation: Genius Team Colleague Featured Poster

It means your page took too long to load and exceeded to time limit. Try setting the timeout in php.ini to zero for infinite timing or setting it to something like 99999 seconds.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

I must ask about line 13. You used the function end(); which returns the value of an array between the brackets. If you want line 13 to end/exit the code, you must use the exit element or the code as showen below.

exit;

So now lines 11 to 14 would look as below if you want that if statement to exit the code.

if($emptyFields != "") {
header("Location: /signup.php?empty=1&$emptyFields");
exit; //needed to skip below code.
}
//rest of below code
cwarn23 387 Occupation: Genius Team Colleague Featured Poster

If so is this the correct syntax

$table = "abc";
$sql = "DELETE FROM $table WHERE *";
mysql_query($sql);

Below is the correct syntax:

$table = "abc";
$sql = "DELETE FROM `".$table."`";
mysql_query($sql);
cwarn23 387 Occupation: Genius Team Colleague Featured Poster
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in C:\xampp\htdocs\globals\functions.php on line 35
The username and password provided did not match.

The error you have mentioned is from my experience, has always been the result of an invalid Mysql query. And I would say that your Mysql query has become invalid from an invalid database connection.

mysql_select_db($dbnames[$DATABASE_MAPLESTORY]);

	$result = mysql_query("SELECT * FROM `accounts` WHERE `name` = '" . $username . "'");

So above are the lines which I believe are needed to be focused on and need altering. So first alter the mysql_select_db line so instead of an array inside the brackets, as a test place the database name (not table name). Then for the Mysql query, add the optional variable at the end which I think is the connection variable. So the above should look something like below:

mysql_select_db("database name");

	$result = mysql_query("SELECT * FROM `accounts` WHERE `name` = '" . $username . "'",$conn);

So the above code is just roughly what it should be but the syntax can be checked at www.php.net

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

I have had to do similar things in the past and I find division and rounding to be the answer. An example is as below:

$loop=0;
while ($loop<=100)
	{
	$val=$loop/10;
	if ($val==round($val))
		{
		echo ($i % ($amount / 10) == 0) ? "<div class=\"load\"></div>" : "";
		}
	$loop+=1;
	}

Hope that helps to answer your question.

MVied commented: Your response helped me solve my problem. Much thanks. +1
cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Well $_GET[] should always have quotation marks between the brackets and numbers/letters/characters between the quotation marks. So $_GET[] on its own isn't a valid command. You need something like $_GET or $_GET and if it does not exist in the url bar then it will return a string with 0 letters 0 numbers and 0 characters. So basically a $_GET statement which has letters between the brackets and quotation marks but those letters/variable does not exist in the url bar will return the below string if you remove the quotation marks:
"" - as you can see there is nothing between those quotation marks so you will just receive a blank string if it does not exist in the url bar.

So just a reminder, you always need something between those brackets (more than just quotation marks).

Edit:
I just saw more of what you are asking for and to check if there is nothing there i prefer to use the preg replace function just like follows:

$urlvars=preg_replace('/(.*)?(.*)/i',$2,$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI']);
if ($urlvars='')
	{
	//code in here
	}

The preg replace should be something along those lines.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

So the line in the middle of the example above is basically telling the server to 'get' the variable 'nflag' from the url bar and to echo/display it.
From: http://www.daniweb.com/forums/thread147753.html

You may want to check the reply I made on your previous post.
The array $_GET[] basically just tells the server to get a variable from the url bar and the name of that variable goes between the two brackets. So say for example the address is as follows:
http://www.daniwebs.com/forums/newreply.php?do=postreply&t=14773
Then to get the variable 'do' you would use the following code to print/echo/display it to the browser:

<? echo $_GET['do']; ?>
Above produces below
postreply

or if you wanted to get the other variable in that address you would use

<? echo $_GET['t']; ?>
above produces below:
14773

So the $_GET array and any other array beginning with $_ (dollar sign then underscore) is a inbuilt function.
As for the default value, there is no default value as it only holds the values that are in the url bar.

Shanti C commented: Good Reply... +2
cwarn23 387 Occupation: Genius Team Colleague Featured Poster

In my example of login.php, the variable was stored in $nflag with the use of the first 3 lines making it $nflag. Also the code $_GET retrieves the variable named nflag from the url bar.

Just in case if you are confused or are wondering on how the example I wrote for login.php works I shall explain each line. As most php programmers would know, lines 1 and 3 are the opening and closing of the php code. In line 2, the variable $nflag is being assigned to be just like the previous page so you wouldn't need to use an array to call the value and for good looks. Also below will work just the same:

<html><body>
The variable passed on is <? echo $_GET['nflag']; ?>.
</body></html>

So the line in the middle of the example above is basically telling the server to 'get' the variable 'nflag' from the url bar and to echo/display it.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

The best way to pass short variables such as a page title is using url variables so use the following code:

First page before redirect.

// Note it redirects to a php page.
echo "<meta http-equiv=Refresh content=0;url=login.php?nflag=".$nflag.">";

Login.php page

<?
$nflag=$_GET['nflag'];
?>
<html><body>
The variable passed on is <? echo $nflag; ?>.
</body></html>
cwarn23 387 Occupation: Genius Team Colleague Featured Poster

when user select his unit corresponding value again fetch form mysql and fill to other combobox but onchange() my browers url change http://localhost/MIS/PS/add/add_ps2.php and other combobox value are not fetching form mysql. i make a function sel() <document.form.submit()> onchange combobox item.but problem is not solving
please help me form rohit

Although the information in that quote is hard to understand (a bit fragmented), I can spot several things wrong with the below mysql query. One is you have a bug in the debugger, that is the last line of the below code and the variable in the mysql query needs the appropriate surrounding code so the script searches for the value of the variable instead of the name of the variable.

$res = mysql_query("SELECT distinct untcode FROM table where division='$division'")
or die("Invalid query: " . mysql_query());

So basically replace the above with the below.

$res = mysql_query("SELECT `distinct untcode` FROM `table` where `division`='".$division."'")
or die("Invalid query: " . mysql_error());

or if the words 'distinct' and 'untcode' are two separate columns then use the following:

$res = mysql_query("SELECT `distinct`, `untcode` FROM `table` where `division`='".$division."'")
or die("Invalid query: " . mysql_error());

So the above is what I have notices without fully understanding the problem although you did describe what is happening ok.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

If alignment of the image wont work, why not make a barrier around the image. An example is

$imgwidth=64; //Image width
$imgheight=64; //Image height
echo '<tr id="divider"><td>
<table border=0 cellpadding=0 cellspacing=0 width=$imgwidth 
height=$imgheight align=left>
<tr><td>
'.$row['profileimg'].'
</td></tr></table>
'.$row['username'].'</td></tr>';

The above is just from the top of my head so don't be too suprised if there is a bug or 2.

Kavitha Butchi commented: Genious +1
cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Sounds like you may have a few corrupted sectors on the harddrive or if during installation a few steps were skipped. I'm not sure if I remember reading about something like this in google news but if I remember correctly, there are a few difficulties upgrading from Windows 2000 to xp. I would suggest doing the following in the order as typed below:
- First putting all your files on a disk/flash memory stick or something along those lines ready for your drive being formated.
- Make sure the surface of your xp installation disk is not scratched or damaged.
- Insert the disk and format drive C with all of its partitions.
- Make sure no external devices are plugged into the computer.
- Take out the disk then reinsert it. Then reinstall windows on drive C.

- If the problem continues then reboot the computer into safemode else ignore this paragraph. To get into safemode, while the computer is turning on, keep on pressing the F8 key. But when rebooting, check if there is a beep noise. If there is a beep noise then that means you have a hardware error.
- Now when in safemode, windows will look a bit poxy as only 16 or 256 colors can be displayed.
- Select the account that you created when reinstalling windows.
- Click 'Start' --> 'Run' and type 'dxdiag' without the quotes and click ok.
- A question …

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

I would suggest first making a website on everybodys favourit topic (whatever you think that is) then when you get around 3 visits a day, create a community. As for getting the website to generate $30 monthly, first use google adsense to place advertisements on your site (remember to read the maximum amount of adds to be placed).

When you get at least one visitor a day, expand the site enough so that some parts have a login system that requires small monthly payments to be able to access those parts of the site. By saying small payments, I mean like $4 American Dollars.
You could also have people with a different type of page access account costing $6 monthly where they are add free. This would be done through php which you can pm me for help on.

Then when you have about 3 visitors a day (average) add a forum:
If you use something such as phpbb for the community forum on your site, set it so that when a person joins the forum, there is a one time joining fee. This can be done by using a setting that makes admin approve of a members registration.

Of course, the first thing you need to do before all of this is to attract plenty of visitors and to have plenty of content ready to upload.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

If the recycle bin software is currupted then try the following. Open my computer from the desktop.
Then at the top of the window you will notice a wide bar like the address bar in a webpage. Select everything in it and type:
C:\Recycled
Then press the enter key. After that, select everything in it by pressing Ctrl+A
Then press 'shift+delete'. That should delete what is in the recycle bin without using the recycle bin.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

You will find that if it says 'Your computer might be infected' it simply means that something is disabled. However, if it says 'Your computer is infected' then you need to use Norton to diagnose it. This is because if Norton can detect it to display the message then Norton should be able to delete it by detecting it.

So if it has the word 'might' in the phrase then something is disabled else you will need Norton to remove it and set up Nortons firewall to make sure the spy-ware can't send information to the internet.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

I have checked the list you provided and unless it is an anti-virus scanner reporting the spy-ware, there shouldn't be much of a problem. And when looking at your processors, it appears you have Norton which I think comes with a firewall to stop the spy-ware reporting the information on the internet. But make sure that your Version of Norton does have a firewall (Don't trust the default Windows firewall). If it is Norton reporting the spy-ware then use Norton to remove the threat if it is the program showing the message.

As a note that could change everything about this topic, I know with Norton, if it is a yellow shield symbol near the bottom right of the screen then it could just be saying that Norton is not fully active and that is why it may be showing the message. So if it appears in a balloon box at the bottom right corner of the screen each time you turn on the computer, then it means that something has been disabled in Norton. If you are using a trial version which has expired, then you can just ignore it providing you use AVG or another virus scanner instead.

If on the other hand it is a proper window with a bar at the top of the window with ok or cancel button then that means you would need make sure you security is up to date and to be sure that you have a firewall. With …

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

First run a virus scan. If you already have one then use it or if you don't have a virus scanner, use AVG. The link to download avg is http://free.grisoft.com/
and make sure you select the free version. That should diagnose the problem. If it does not then you will need to detect the problem. So press Ctrl+alt+del and select the 'Task manager' option (if it appears) then at the top of the window, click the processors tab. Then check if there is anything suspecious and google it. Or you could just type a list of what appears to see if any of the background processors are spyware. If it doesn't appear that any are, then it is most likely to be a file which every so often interacts with the system. To prevent the file interacting with the system, you will need to find a way to safely remove it. You will find that just scanning the computer will not always detect spy-ware. Sometimes you need to browse the system folders for AVG to detect viruses and spy-ware. So just look at each folder in 'C:\program files', and check the following individual folders:
'C:\windows'
'C:\windows\system'
'C:\windows\system32'
If AVG does detect the spy-ware, instead of removing it, just send the spy-ware to the valt. This way the spy-ware cannot reproduce itself. This is because sometimes you find that after a file is removed, it just copies itself back into place from a different …

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

http://www.geekstogo.com/forum/Windows-XP-Installation-Microsoft-Windows-Installer-3-1andquot-t153864.html

Quote form forum in link above:

go to the location: HKEY_CLASSES_ROOT\IMsiServer
Right-click on IMsiServer -> Permissions
Click on Add -> Enter the exact name of the local user account name in which you are logged in and click on Check names.
Highlight the username and make sure there are check marks under Allow for Full Control and Read.

The quote above from the forum link you provided shows where things went wrong. This is a problem where it may be impossible to fix depending on what you changed.
So first log into your admin account (the account that was created when installing windows on your computer and do the the below instructions.

1) Be sure to be in the location of the registry: HKEY_CLASSES_ROOT\IMsiServer
2) Right-click on IMsiServer -> Permissions
3) This step is where you will need to modify the permissions. So, from here, you will need to find the set of permissions you added. To do this, you will need to find where the functions (read and write) are and for all accounts have read ticked. For the administrator account and the system creator account you will need write ticked.

If you can not understand the instructions above, try the second way below. Remember that the second set of instructions below will only work for Windows XP Pro. Also, you may need to try these instructions in each account as your altering of account permissions (shown in …