199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for vindom

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"); …

Member Avatar for vindom
0
3K
Member Avatar for George_91

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?

Member Avatar for skatamatic
0
1K
Member Avatar for watoth

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 …

Member Avatar for BitBlt
0
621
Member Avatar for newprogrammer12

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 …

Member Avatar for jackbauer24
0
220
Member Avatar for jackbauer24

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?

Member Avatar for JorgeM
0
93
Member Avatar for dan_ord

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 …

Member Avatar for tough
0
4K
Member Avatar for daino

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

Member Avatar for pritaeas
0
416
Member Avatar for baig772

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 …

Member Avatar for baig772
0
191
Member Avatar for divyakrishnan

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 ?

Member Avatar for divyakrishnan
0
2K
Member Avatar for Venom Rush

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 …

Member Avatar for Venom Rush
0
142
Member Avatar for rstandley31

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 '

Member Avatar for pritaeas
0
202
Member Avatar for pritaeas

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 …

Member Avatar for pritaeas
0
239
Member Avatar for Buppy

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

Member Avatar for cereal
0
143
Member Avatar for riahc3

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 …

Member Avatar for pritaeas
0
399
Member Avatar for vijaycare

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) …

Member Avatar for vijaycare
0
201
Member Avatar for mansi sharma

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?

Member Avatar for somu1205
0
622
Member Avatar for tymaut

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 …

Member Avatar for IIM
0
321
Member Avatar for gotboots

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, …

Member Avatar for veedeoo
0
262
Member Avatar for ShaggyDogg

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 …

Member Avatar for ShaggyDogg
0
647
Member Avatar for tuputavieja

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 …

Member Avatar for Sokurenko
0
121
Member Avatar for newbie1234

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 …

Member Avatar for broj1
0
151
Member Avatar for hanaac++
Member Avatar for salman_hundekar

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

Member Avatar for salman_hundekar
0
104
Member Avatar for divyakrishnan

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" />**

Member Avatar for vibhaJ
0
353
Member Avatar for xzero1

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.

Member Avatar for zid8ne
0
128
Member Avatar for wab9jon

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 …

Member Avatar for wab9jon
0
214
Member Avatar for Sanchixx

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. …

Member Avatar for Sanchixx
0
360
Member Avatar for gahhon

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 …

Member Avatar for gahhon
0
136
Member Avatar for kimmi_baby

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 …

Member Avatar for vibhaJ
0
175
Member Avatar for HasNor

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 …

Member Avatar for vibhaJ
0
104
Member Avatar for newbie1234

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???

Member Avatar for TitusShade17
0
117
Member Avatar for JasonWung

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 …

Member Avatar for skatamatic
0
540
Member Avatar for sriram_11

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 …

Member Avatar for sriram_11
0
384
Member Avatar for Parloverde

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 …

Member Avatar for Parloverde
0
2K
Member Avatar for sunfutbol
Member Avatar for sunfutbol
0
202
Member Avatar for PsychicTide

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 …

0
116
Member Avatar for mujtabaaain

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.......

Member Avatar for skatamatic
0
358
Member Avatar for hwoarang69

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 …

Member Avatar for Transcendent
0
151
Member Avatar for tiffanynguyen08

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?

Member Avatar for vegaseat
0
5K
Member Avatar for Wolfenstein

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 …

Member Avatar for vegaseat
0
160
Member Avatar for Dasttann777

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 …

Member Avatar for m4ster_r0shi
0
169
Member Avatar for mani508

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...?

Member Avatar for JorgeM
0
409
Member Avatar for MrEARTHSHAcKER

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 …

Member Avatar for MrEARTHSHAcKER
0
2K
Member Avatar for riahc3

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 …

Member Avatar for McLaren
0
297
Member Avatar for elackops

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. …

Member Avatar for Reverend Jim
0
158
Member Avatar for PF2G

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=" …

Member Avatar for xShirowx
0
99
Member Avatar for a2i2

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, …

Member Avatar for a2i2
0
188
Member Avatar for singularity~

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 …

Member Avatar for singularity~
0
150
Member Avatar for reyesg

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 …

Member Avatar for WaltP
0
109
Member Avatar for monkeytherat

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.'; …

Member Avatar for dcdruck
0
881

The End.