199,114 Archived Topics
Remove Filter ![]() | |
Trying to redirect from inside an iframe ... that's the code: <?php include'file_constants.php'; $imgid = $_GET['id']; $con = mysql_connect($host, $user, $pass) or die("Can not connect to database: ".mysql_error()); mysql_select_db($db_name) or die("Can not select the database: ".mysql_error()); $sql = mysql_query("SELECT * FROM comments WHERE ImageID = '$imgid' ORDER BY Date DESC"); … | |
Hello. I need to simulate a button click with a Timer. That the action performed by the button, repeats every 60 seconds. I've never use timers, any help? | |
I am trying to write a query to update multiple tables. Here it is: DECLARE @old_team_id AS int; DECLARE @new_team_id AS int; UPDATE Players SET team_id = @ new_team_id WHERE team_id = old_team_id UPDATE managers SET team_id = @ new_team_id WHERE team_id = old_team_id UPDATE draft SET owner_id = @newteam_id … | |
hi for my programming class we have to write an average calculator program in any langauge we want. I did mine in Java and im fairly new to programming. the problem with my code is how can I improve it to make sure user's incorrect input ruins program. for example … | |
I am learning jQuery from thenewboston. I have learnt about ID selectors (#) and element selectors (<html element>). They have also used the colon selector (:). What is the colon selector for? Can somebody please explain in an easy way? | |
![]() | Hi, I'm new to the forums and could really do with some help on the following... I've got a mysql query which i'm running to log a user in to a secure section of a website. I've successfully managed this on another website, however with the query i'm running it … |
Was wondering if anyone could recommend both free and not free report generator programs for use with SQlite. I'll need charts, colours and the ability to generate some pretty flexible reports. Any suggestions? Thanks danny2000 | |
i am new to android. While i am running my application, it is running well in landscape mode, but in portrait mode, application is forcefully closed giving the following in log 05-31 16:48:30.958: W/KeyCharacterMap(428): No keyboard for id 0 05-31 16:48:30.958: W/KeyCharacterMap(428): Using default keymap: /system/usr/keychars/qwerty.kcm.bin 05-31 16:50:45.728: D/AndroidRuntime(484): Shutting … | |
Hi.. I want to hide/rewrite the URL of my php project. I found many forums regarding this. I have a doubt in .htaccess file. Is it need to create a new .htaccess inside my project folder ? | |
I have a url with parameters appended to it. I want to know if there's a way (similar to explode) that seperates a string based on a delimiter and makes the string on the left of the delimiter the key of an array and the string on the right of … | |
well here it is crashing on line 76 and throwing the error in the Preg_match statement Why? Warning: preg_match() [function.preg-match]: Delimiter must not be alphanumeric or backslash in /home/content/73/9352073/html/includes.php on line 76 line 76 reads if(preg_match("index.php", $_SERVER[SCRIPT_NAME])) I cannot see a syntax error can you? Thanks Rob ' | |
I found that there is a difference with the drawing of a custom bitmap brush, when I subclass TGraphicControl versus TCustomControl. The expected behaviour occurs when using the TCustomControl descendant. Each paint starts with the brush in the same position, no matter the location of the control (top-left). When using … | |
Hi, I have a problem with strtotime displaying months. See the code: print(date('M-d')); //prints May-31 print(date('M-d',strtotime('-1 month'))); //prints May-01 Since i need it to get the previous month, why is the function ignoring the fact that there are 31 days in May? Thanks | |
Hey When I try to interpret thru PHP, a Java web service that returns a boolean type, this error (more like a warning) pops up: Notice: Object of class stdClass could not be converted to int in C:\testing\page.php on line 29 How can I make the PHP page understand true … | |
Hi All, I am using vs2005 with access database. Developing a new application. I am the new one to the application development. This is what my situation which takes my time towards searching a reference but no where it is found: ***There is 2 tables named tblbill(contains VendorID & TruckID) … | |
Suppose I have items in combobox1 1) On button click event ,I want to copy all the items to combobox2 ? What is the coding for this? | |
Hello I am working on a web page(php based). I want to put a `like` button, so that when a user clicks it, he is added to the likers list in my database.(like in the facebook). I wrote a php funtion to execute this database insertion, but since the event … | |
Hi all, I have the following code to process through my requests, then use in a database. FIRST of all, I was wondering if i have it in the right order, and SECOND, if there are any other steps i could do to secure up my application. have a look, … | |
Hi, I would appreciate advise on what is incorrect in the following sample code? The result I get is always that the panel is not visible, even though the authenticated user is a member of 'Domain\ADGroup'. If I can at least confirm the code 'should' work, that would be a … | |
Hi to everyone, this is my first post in this site. I hope you'll be able to help me with mi little issue, as I've been trying to solve it for hours without results. The question is simple: I have a text file, and at the end of it there's … | |
I am signin my lgoin page it will redirect to my home page. The probs is when i am pressing back button it will go to login page. Again come on home page by press forward button. Is there any method to stop all this things. means it should be … | |
i want to creat crystal report in form of bulk and i want to use one 131 chqrqcter in that and at the end i want to use verticale bar | |
I have a shared folder with images in a machine. How can I display images from that machine in a web page in another machine. I used the follwing code but obtained no output ** <?php $img_src="file://192.168.0.138/E:/img1/12/12N69/12N69$0001A1.JPG"; ?> <img src="<?php echo $img_src ?>" alt="" width="1000" height="220" id="myimg" />** | |
hi everyone. i just want to know that how can i fetch any paragraph/line written in "p" tag in any website. i want to recieve a complete article written in any website into my c# window appication. | |
Hello I cant figure out how to recive a boolean from a method in another class. public boolean arYatzy() { boolean yatzy = true; for (int i = 0; i < tarn.length - 1; i++) { yatzy = yatzy && (tarn[i] == tarn[i + 1]); } if (yatzy) { return … | |
Hello, I am making a php comment box (without sql with a file where i post the comments) i'd like that the the time that the comment was posted be written along with the name of the person, but it gives me the current time, here is my php code. … | |
i need some proffesional helps... from yesterday night i have done a part of my practical and i saved to my pendrive... the folder name as <Chapter 3> and today i went to college computer lab continue to finish another part and i also saved to my pendrive, since i … | |
I have the following code for a wordpress theme. For some reason an arrow appears on the page. I originally thought it was because of the thumbnail but once I removed the thumbnail it still appeared but in a different spot. What I'm aiming for is have the blog post … | |
Dear all, My database cannot accept uploading file when filename contain single quote " ' ". Then it show the error. For example my filename testuploads'.xls Got the error message Error, query failed : You have an error in your SQL syntax; check the manual that corresponds to your MySQL … | |
In .php file i have $str = "I am in php file"; $str2; I want to copy specific amount of char in $str2. say suppose i want to copy " I am in" from $str. How to do? Is here any help??? | |
I`m sorry about the title. So, when i start my program i start to write everything in log.txt. The problem is when i start second instance of same program and they work at same time. Second program crash because log file is in use in this time ( by first … | |
Hi... I converted a basic adding program from matlab .m function file into .c & .h file. When i try to include the header file function "add" into my main function in dev-c++ 4.9.9.2 --- [Linker error] undefined reference to `add' is the error message on compilation. Here is my … | |
So I'm currently making program for my year 12 IPT assignment. It's a maths game for Year 4's and 5's. I need to carry a variable throughout the entire project (across forms) so I can easily specify what level the user is playing and how many questions they want to … | |
str(name)=input('Enter a name\n') is there a better way than using raw_input() ? | |
Hey guys, I've been stuck on this problem for quite some time now. I'm trying to have someone type some text into CK editor and then I want to count how many bold, italic, or underlined words have been typed. I've managed to count the number of tags there are … | |
I need help in c# about file scanning in c#. I want to scan all files or from specific path in background if application is in running mode. Scanning should start after every 10 min....... | |
it always goes to echo "failed;" and print error: Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\xampp\htdocs\login_test\forgotpassword.php on line 49 failed $to = $email; $subject = "Forgot password"; $message = "Hi $firstname_db,\n Your … | |
I want to make a trivia game in python. Let's say I have a set of 25 questions, how do I choose 10 random questions from that set without repeats? | |
Hey, i appreciate anybody who use up some of their own time to help me. I'n a newbie to python and i have a couple problems. First, the score NEVER gets updated. Second, i'm unable to select the same menu option twice in a row (eg select 'letterguess' first, complete … | |
Hi again, I am working on a small project which sort of resembles a makeshift programming language, in which if the user types "print" and then a value, the console will write the value, and not the string, for example, if I write *Print "Hello"*, it will output the string … | |
hello my project is web discussion forum i want to show topics or articles title in table and make it hyperlink . i want get data from database table and display in html table how its poossible...? | |
Hi, There is short explanation of queue at cplusplus.com site which tells that queue should contain front() and back() functions. As I have tested in VC++, if I use queue from <queue> and call any of these functions for an empty queue, program crashes. Could this problem be solved by … | |
I have this code: <?php foreach ($_options as $_option) : ?> <input id="xyys" type="hidden" name="xyys" value="<?php echo($_option['value']);echo ($_option['option_id']);?>" /> <?php if($_option['label'] != 'Corte'): ?> <?php $_formatedOptionValue = $this->getFormatedOptionValue($_option) ?> <dt><?php echo $this->htmlEscape($_option['label']) ?></dt> <dd<?php if (isset($_formatedOptionValue['full_view'])): ?> class="truncated"<?php endif; ?>><?php echo $_formatedOptionValue['value'] ?> <?php if (isset($_formatedOptionValue['full_view'])): ?> <div class="truncated_full_value"> <dl … | |
Hello everyone, Im new here and may i have answer to my question since i been looking for sutoliton a long time ago, I had a database looks like that user:pass (<IP>) user:pass (220.135.70.173:3128) that i need is to remove the text between ( and ) and the symbols too. … | |
Hi, i trying to do a registration form (easiest thing ever) but i'm having trouble doing the validation :S <?php include 'db_connect.php'; ?> <html> <head> <title>Adminstração</title> </head> <body style="color=#FFFFFF" bgcolor="#666666"> <table width="100%" height="100%" border="0" align="center" cellpadding="0" cellspacing="1"> <tr> <form method="post" action=""> <td align="center" valign="middle"> <table width="300px" cellpadding="0" cellspacing="3" bgcolor="#FFFFFF" style=" … | |
I need help with this problem can you solve it for me ( write the program) -A password-protected security door can only be opened when a user inserts a valid 4-digit personal identification number (PIN). -The program starts by asking the user to enter a 4-digit PIN.If it is valid, … | |
I have been trying to get my MVC C# code to connect to my sharepoint server. I have tried everything and I keep getting this error no matter what I try. The Web application at http://myserver/ could not be found. Verify that you have typed the URL correctly. If the … | |
hello everyone i need help with an assignemnt that askes me to read from a file and count the number of occurence of each letter in the alphabet . im stuck trying to group each letter in an array. i think using a switch statement would be the easiest way … | |
Hello forum! I was tinkering with a login script and I came accross the following error: Warning: mysql_result() expects parameter 1 to be resource, boolean given in /home/content/79/9398479/html/abyss/dio.php on line 60 //Code here: <?php $sqlError = 'We are experiencing very temporary downtime, please refresh or try again in 10 minutes.'; … |
The End.