- Strength to Increase Rep
- +7
- Strength to Decrease Rep
- -1
- Upvotes Received
- 35
- Posts with Upvotes
- 29
- Upvoting Members
- 12
- Downvotes Received
- 3
- Posts with Downvotes
- 3
- Downvoting Members
- 3
Student
- Interests
- Programming
99 Posted Topics
Re: [quote=Puckdropper;258247]It depends on what you want to do. You can pass the request to the system (only works for specific systems) or you can perhaps find a library that will allow you to do it. AFAIK, only text files can be opened without special manipulation in most programming languages. (Database … | |
Re: 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 … | |
Re: Try the changing the line #2 through 19 into the following: [CODE] $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 … | |
| |
Re: 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: [CODE=javascript] <script type="text/javascript"> … | |
Hello, 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: www.example.com/folder/file.html In this address, where is the **URL**, and where is the **URN**? Is the … | |
Re: Do you mean you want to create advertisements where visitors can type their websites titles, URLs and descriptions? | |
Re: 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 … | |
Re: On the one hand, learning to be a programmer makes you think in a more arranged way.. You start to be more resaonable and more logical in your thoughts. On the other hand, it might make you frequently imagine the world as a program! One programmer told me that sometimes … | |
Re: [QUOTE]The majority of our members ask one question, get the answer, and don't return.[/QUOTE] Yeah I noticed that too.. It's embarrassing because they post threads to solve and may go away with no return if they find the solution. So, the "poor" thread remains without being marked as solved, which … | |
Re: 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 … | |
Re: 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] | |
Re: 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] … | |
Re: Welcome David, and good luck with finding the answers you need. :) | |
Re: Welcome. You seem nice! I'm not the one to be married now though :). :) /|\ / \ | |
Re: 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: [CODE] echo '<script type="text/javascript"> function changeHREF(A_ID,ChkBOX){ document.getElementByID(A_ID).href="download.php?chk="+ChkBOX+"&pid='.base64_encode($id).'"; } </script>'; [/CODE] And the PHP-HTML code should become like: [CODE] echo '<br> <table> <tr><td colspan="2"><font color="blue"><b>download PDF … | |
Re: 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 … | |
Re: See this: [URL="http://www.php.net/manual/en/language.oop5.decon.php"]http://www.php.net/manual/en/language.oop5.decon.php[/URL] | |
Re: Simply use str_replace as the following: [CODE] $X = $_GET['X']; $pageTitle = str_replace('\','',$X); [/CODE] | |
Re: Since you already know what these logical operators mean, you should only refer to: [URL="http://www.php.net/manual/en/language.operators.precedence.php"]http://www.php.net/manual/en/language.operators.precedence.php[/URL] which talks about the precedence of PHP operators in general. | |
Re: Changes in the HTML form should also be considered as rv1990 hinted; for example, if you have the following text field: [CODE=HTML] <input name="MARITAL STATUS" type="text" ....> [/CODE] You have to make a change in its name in the same way as Hani1991 said. E.g. [CODE=HTML] <input name="MARITAL_STATUS" type="text" ....> … | |
Re: You can write the following: [CODE]$scc = mysql_query("select count(XXXX) from tableA",$connection); $sccA = mysql_fetch_array($scc, MYSQL_NUM); echo $sccA[0];[/CODE] (Replacing XXXX with a column name). This should make things work very well. | |
Hello everyone.. It's come to my mind that, as a form of facilitation, it's better to put a question mark beside most of the parts of DW pages. For example, in the members' CP there should be a question mark to click on so it takes us to/ shows us … | |
Re: Try fixing the flash disk using the fixing tool in Windows 7.. You can run it by right-clicking the flash disk drive, then choose Open AutoPlay.. Then choose Scan and Fix. | |
Re: I have a suggestion.. I can see very well that people here are misunderstanding each other.. So, why don't we "state our emotional state" when we "post a post".. E.g: [QUOTE]Calm: Please, try to be more explicit with your questions because we can't understand you this way![/QUOTE] E.g 2: [QUOTE]Angry: … | |
Re: I think this code is well-written and has no errors.. What's the browser you're running your code on? | |
Re: You can view the script being used by simply right-clicking in any space on the web-page. Then choose "View source" or "View page source".. Then see the code being executed. | |
Re: [B]I think you can do the following:[/B] [CODE]function hondt ($votesA,$votesB,$votesC,$votesD,$votesE,$seats) { for ($i=1; $i<=$seats; $i++) { $votes[0][$i]=$votesA/$i; $votesMax[0] = ($votes[0][$i] > $votesMax[0])? $votes[0][$i] : $votesMax[0]; } for ($i=1; $i<=$seats; $i++) { $votes[1][$i]=$votesB/$i; $votesMax[1] = ($votes[1][$i] > $votesMax[1])? $votes[1][$i] : $votesMax[1]; } for ($i=1; $i<=$seats; $i++) { $votes[2][$i]=$votesC/$i; $votesMax[2] = ($votes[2][$i] … | |
Re: I think it may be because of IE itself.. It makes me wonder how Microsoft still produces a program with such mistakes!! I mean although it's the 9th version of the program, still there are many problems that haven't been solved yet, and some new problems have recently emerged! | |
![]() | Re: [QUOTE=stru;1611369]I don't think there's much to do more than copy the files into the root folder of your local server.. For example (www)[/QUOTE] I think you should also copy the MySQL files into the path of MySQL on the upper folder of your localhost folder, e.g. [COLOR="Green"][B]C:\AppServ\MySQL\data[/B][/COLOR] Why don't you … |
Re: This means that it doesn't close an opened tag at all.. It closes itself by adding the slash to the end of it (with a space before). | |
Re: I don't think that listing is a very good way to show sections and articles unless you don't like to add graphical symbols for sections and articles, or to add much details like about the sender's name, the date of sending the last article and last comment, etc. | |
Re: I couldn't view your website.. There's an error retrieving it.. Anyway, usually you have to set the align property in the table tag in order for it to work on Firefox. You should do this even if you've set an alignment for a paragraph containing this table.. For example: [CODE]<table … | |
Re: Your main problem is with stating the units of [B]margin[/B] and [B]padding[/B].. Usually Firefox doesn't recognize the units being spearated from the values; you should stick them together so that your code becomes: [CODE] body { font-family:MFF2011; margin-top:14px 12px 14px 12px; /* <-- This is more concise; (top right bottom … | |
Re: Well I tried your code.. It worked the same on FF and IE9.. Also, I guess your problem has to do with CSS itself not with the code you posted. | |
Re: You may need to use some JavaScript code.. I'll try to get it hopefully. | |
Re: [QUOTE]you must write semi-colon ';' at the end of every PHP statements[/QUOTE] [B]You do not need to have a semicolon terminating the last line of a PHP block. The closing tag for the block will include the immediately trailing newline if one is present.[/B] You can refer to the manual … | |
Re: You may be facing this problem because of the single quote [COLOR="green"]'[/COLOR] or double quote [COLOR="Green"]"[/COLOR] mark inside some posted field.. Anyway, in order to know what's going wrong, please instead of: [CODE]or die ("<center><h3>Unable to update the data in row. Please try again in a bit.</h3></center>");[/CODE] type: [CODE]or die(mysql_error());[/CODE] … | |
Re: I think you should change the second line from your code so it becomes: [CODE]$GivenVar = str_replace("'",''',$GivenVar);[/CODE] Hope it helps. | |
Hello everybody.. I've been thinking what the best programming language to be used with the internet is.. In addition I want not to use ASP 'cause my web server works on Linux. Is C# better than ASP.net to download files automatically from the internet, update and retrieve information from databases … | |
Hello everybody.. Does anybody know what's the use of the execCommand() function?? Also, is it used to add tags in textboxes?? Thanks beforehand. ![]() | |
Re: I think most of this matter has to do with JavaScript. | |
Re: Although I think this thread should be put in the HTML and CSS forum (in the Web Design section), I'll answer: Instead of writing [COLOR="Green"]bgcolor="'.$bg.'"[/COLOR] you can type: [CODE]<div style="background-color:'.$bg.'"></div>[/CODE] | |
Re: This issue has to do with JavaScript.. Anyway, this is the code: [CODE] <script type="text/javascript"> function chk() { if(!formName.username.value || !formName.password.value) { alert("Please make sure all fields are filled!"); return false; } } </script> <?php echo '<form name="formName" action="" method="POST" onsubmit="chk();"> Username: <input type="username" name="username"> Password: <input type="password" name="password"> <input … |
The End.