I have a simple question that I can't find an answer to.
My question is: Does a URL include a URN? If yes, how can it include a URN?
For example, this web address:
In this address, where is the URL, and where is the URN?
Is the URL the full path including "file.html"? Or is it just "www.example.com/folder"??

Thank you.

I think this is the second time you count the pages and replies here Sadun :D, and I also think that you're mistaken again. It's the page number 1501, isn't it? ;)

wenbnet commented: :twisted: +0

Nice titles.
Well, another suggestion has come into my mind after reading your suggestions:
"Multiplayer Discussion" :)
It means a discussion by different players about different games.
What do you think?

[QUOTE=flagstar]p/s: I'll create it if no one want to create it... [/QUOTE]
Yes please. Start the thread, and tell us when you do it.


Welcome Yilia.

I agree with you.
Tell me when you start it. :)

I agree with you wenbnet.. I'm not interested very much in movies too. :)

:yawn: Oh! How could I forget to type it!

Paaat commented: Heh, I think you'd better take a nap. :) Thank you anyway. +3

Actually, the problem you're facing is not in MySQL. :)
I think you only have to close the IF Condition bracket in the line #7 so it becomes:
[CODE] if(mysql_num_rows($checkUsername)){[/CODE]
Another mistake is in the line #12 where you have to escape the quotation mark in "you've" like this:
[CODE] echo 'The username or password you\'ve entered is not valid!';[/CODE]
To be more careful and avoid other errors, however, add this before the semicolon in the line #6:
[CODE]or die(mysql_error())[/CODE]

Could you clarify the problem more than this?
What do you mean by:[QUOTE=extremer][B]Edit Delete 0 0
Edit Delete 315 1[/B][/QUOTE]?
If the problem is in inserting the data into MySQL, then replace the line #25 with:
[CODE]$sql = mysql_query("INSERT INTO connection (subject_id,class_id) VALUES ('$subject','$id')") or die(mysql_error());[/CODE]

[QUOTE=jingda;1638720]Where should the thread be. Should in be in the Geek Lounge so other daniweb members can join us for a friendly discussion?[/QUOTE]
It depends on what kind of threads it will be. What do you think?

By the way, you can use a shorter form of that code like this:
$name = mysql_real_escape_string($_POST['name']);
$description = mysql_real_escape_string($_POST['description']);
//The following loop does the job for all the first 7 variables
for($fff=1; $fff<=7; $fff++){
$fieldName = 'field'.$fff;
$$fieldName = mysql_real_escape_string($_POST['field'.$fff]);
//The following loop does the job for all the second 7 variables
for($fff=1; $fff<=7; $fff++){
$fieldName = 'field'.$fff.'a';
$$fieldName= mysql_real_escape_string($_POST['field'.$fff.'a']);
$details = mysql_real_escape_string($_POST['details']);
$year = mysql_real_escape_string($_POST['year']);

Try the changing the line #2 through 19 into the following:
$name = mysql_real_escape_string($_POST['name']);
$description = mysql_real_escape_string($_POST['description']);
$field1= mysql_real_escape_string($_POST['field1']);
$field2= mysql_real_escape_string($_POST['field2']);
$field3= mysql_real_escape_string($_POST['field3']);
$field4= mysql_real_escape_string($_POST['field4']);
$field5= mysql_real_escape_string($_POST['field5']);
$field6= mysql_real_escape_string($_POST['field6']);
$field7= mysql_real_escape_string($_POST['field7']);
$field1a= mysql_real_escape_string($_POST['field1a']);
$field2a= mysql_real_escape_string($_POST['field2a']);
$field3a= mysql_real_escape_string($_POST['field3a']);
$field4a= mysql_real_escape_string($_POST['field4a']);
$field5a= mysql_real_escape_string($_POST['field5a']);
$field6a= mysql_real_escape_string($_POST['field6a']);
$field7a= mysql_real_escape_string($_POST['field7a']);
$details = mysql_real_escape_string($_POST['details']);
$year = mysql_real_escape_string($_POST['year']);
It usually does the job perfectly.
Hope it helps.

Hey. It's been a long time. :)
I agree with creating a new thread, but what will it be about?

wenbnet commented: Suggest any good topic.... +0

Welcome. You seem so enthusiastic. Good luck with learning.

To add anything, you may add something to the code written either in Javascript or in PHP. So, you have to take into account type of the changes you want to make. You can't just say I want to add something and add it anywhere.
Please clarify what you intend to do so that we might help you.

So you want to pass the values of the checkboxes into the hyperlink, don't you?
If so, then you can use Javascript like the following:
echo '
function changeHREF(A_ID,ChkBOX){

And the PHP-HTML code should become like:
echo '

download PDF document: Approve :Approve it ';[/CODE] I hope it helps.

Could you clarify more?
I guess your question is how to make a pop-up window, isn't it? If this is your question, then you need to post this question in the JavaScript section.
To open a new window you have to use the [B][COLOR="Green"]window.open[/COLOR][/B] method. For example:

var winObject; winObject = window.open("http://www.anywebsiteaddress.anything/anypage.any","theNewWindowName","menubar=yes,location=yes,resizable=yes,scrollbars=yes,status=yes");

You can find more about this method on:

I think it's enough to write: [CODE]or die(mysql_error());[/CODE]
And I think, according to his code, that he should know by either seeing the message: "Your comment was successfully sent", or by seeing the MySQL error, and if the data was not set, he would see a message (also according to his code) that tells him that he should send valid data.

I think it happens because of the web browser you're using. I guess you're using Firefox, aren't you?
It happened to me too. Using Firefox, I wrote a long comment on some page and tried to post it, but after sending the comment I realized that nothing changed in the page. It only realoded!! I also tried to reload it but nothing happened. My comment just disappeared!! :)
I tried to close the web browser then go back and post the comment again, and it worked.
I know still it is a problem, but this might be considered half or maybe quarter the solution. ;)

Welcome Yamuna.

Welcome David, and good luck with finding the answers you need. :)

Welcome. It's kind of you to do such a thing.

It's hard to say it, but how about most of the countries of the whole world?
Britain, the USA, Canada, India, Russia, France, etc.
Sometimes, many organizations try to charge the others with their own crimes. Unfortunately, many people believe that. It's been obvious that such kinds of crimes cannot be executed by one side. I mean what an organization that can cause violence and choas all over the world? Does this mean that the security is very vulnerable everywhere on Earth?
It's been also obvious that sometimes an international disguised organization carries out crimes all over the world to achieve one purpose.
(I'm not a conspircaist, but this is how the world seems to be going.)

Welcome. You seem nice! I'm not the one to be married now though :).
/ \

Welcome, Ehtesham.

Simply use str_replace as the following:
$X = $_GET['X'];
$pageTitle = str_replace('\','',$X);

karthik_ppts commented: yes +6

In fact, it has nothing to do with cookies.
All you have to do is remove your username and password associated, by the browser, with Facebook.
If you're using Firefox, you can go to [U]T[/U]ools menu -> [U]O[/U]ptions -> Security (tab) -> Saved [U]P[/U]asswords (which is under "Passwords"), then search for Facebook [dot] com. After that, select all the usernames, then remove them.
If you're using IE, as far as I know, you will have to remove all the saved passwords. Since you seem not to care about them, you can do the following:
Open the [U]T[/U]ools menu -> Internet [U]O[/U]ptions -> Content (tab) -> Under "AutoComplete" click on "Sett[U]i[/U]ngs", then clear all the selections, and keep the option "User names and passwords on forms" selected. After that, click on "[U]D[/U]elete AutoComplete history..."
Mostly it will do what you're seeking, and no usernames or passwords will appear after that.
Hope it helps.

Hani1991 commented: Thank you Pro2000, you always help me! THANKS! +3

Since you already know what these logical operators mean, you should only refer to:
which talks about the precedence of PHP operators in general.

Hani1991 commented: Thanks. +3