64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for athulram

Hi, new to the forum. Im building a site where articles can be created by staff. So is it better to save articles as html files on the server with PHP's file access methods or simply store the whole source code with all the tags in a database (MySQL). It …

Member Avatar for runde.bustamante
0
194
Member Avatar for garyjohnson

This is my java code, all the id's are the ids of divs on the page. They are all labeled respectiviley. It takes the input of the form. There are six possble errors that can occur which are, the emails dont match. First name contains characters other than letters, last …

Member Avatar for garyjohnson
0
237
Member Avatar for Rahul47

Hey fellas, Is there any method by which I can declare a Variable that can be used in multiple forms in VB.NET ?

Member Avatar for Rahul47
0
131
Member Avatar for riseguim

Hi there, this script here makes my pictures (put in div with ids "elem0", "elem1", "elem2", and on). The original script has been written so at the very last elem, it stops. I would like it to start again at elem 0, like a loop. I have tried for the …

Member Avatar for riseguim
0
107
Member Avatar for shanki himanshu

why it doesnot works for values other than 0 and -1 i mean when i tried to print values of array 'a' after memset() then it shows incorrect values. int a[100]; memset(a,0,sizeof(a)); ///it works memset(a,-1,sizeof(a)); ///it works memset(a,1,sizeof(a)); ///it doesnt

Member Avatar for Tumlee
0
548
Member Avatar for rosse88

Okay, so I am not entirely sure how to fix this. Im attempting to make a tag feature for my site but I am getting: Fatal error: Call to a member function prepare() on a non-object in /Users/Home/Sites/functions/users.php on line 10 Here is the code that relates to this. First …

Member Avatar for rosse88
0
250
Member Avatar for cristian.stilpeanu.1

Hi, i need help, who knows and wants to help me with a problem I would greatly appreciate. I downloaded a page to my site I instalato and work well only have one problem, anyone can access any without having to login, and must do so to be able to …

Member Avatar for diafol
0
547
Member Avatar for yvrej17

I just wanna ask what's wrong with my code it says syntax error on INSERT STATEMENT but I can't find the error @.@ Try Using conn As New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & System.Environment.CurrentDirectory & "\employeedb.mdb;") conn.Open() Dim command As New OleDbCommand("INSERT INTO employees (first_name, last_name, MI, address, age, contact, status, department, …

Member Avatar for yvrej17
0
380
Member Avatar for ScarWars9

Hello, I have been working on a time clock program where the user can enter their time in and time out using two DateTimePickers, and it will tell them how many hours and minutes they worked. I was able to format the DateTimePicker to only show the hours and minutes. …

Member Avatar for Begginnerdev
0
910
Member Avatar for carbonicacid81

I need to write a program that implements Newton's method ((guess + x/guess) / (2)). The program should prompt the user for the value to find the squareroot of (x) and the number of times to improve the guess. Starting with a guess value of x/2, your program should loop …

Member Avatar for vegaseat
0
5K
Member Avatar for GraficRegret

I am working on an inventory system and here is what the page looks like, minus the pertinent confidential information that I am not allowed to show ![buttonProblems](/attachments/large/4/buttonProblems.jpg "buttonProblems") yes the information displayed is all mock data. however the problem lies in the buttons. On the far right of each …

Member Avatar for GraficRegret
0
89
Member Avatar for xHellghostx

Hey guys.. I am having a small problem with a program I wrote, the problem is that I have an array that stores a user input and it should be numeric only when the user inputs an invalid input like let's say J the program will notifiy them that they …

Member Avatar for Ketsuekiame
0
250
Member Avatar for bouncerfloridaalr

I'm sure this has been asked before but can't seem to find it. I've a (mostly) php page which has a simple button on it to print. Printing is done with a simple onClick="print.window()". Everything's fine in that it's calling the print.css correctly and what is being printed is what …

Member Avatar for rsleventhal
0
3K
Member Avatar for london-G

Hello, When I am trying to build my application in Netbeans I have this error message coming up in the output. null575775 is invalid. I have check the null file but there is nothing in there. Any ideas?

Member Avatar for london-G
0
395
Member Avatar for arcticman452

I am building my very first android app on eclipse for a school project. The main screen has 5 buttons on it and when clicked, you are brought to a new screen with the same name as the button. This new screen has a close button that brings you back …

Member Avatar for arcticman452
0
120
Member Avatar for ramy.merc

Hi programmers, I am a c# programmer but I have a very big project in C++ (Which I am not familiar with) and I am facing a big problem. As part of the project, I need to convert the image (any image of any type bmp,jpeg,png...etc) to grayscale using openMP. …

Member Avatar for Moschops
0
2K
Member Avatar for Tinnin

My code so far: $message = '<html> <head> <title><?php echo $subject; ?></title> </head> <body> <?php echo '<table align="center" cellspacing="3" cellpadding="3" width="100"> <tr> <th align="left"><b>Player Name<b></td> <th align="left"><b>Number of Goals<b></td> </tr>'; while($row_GetCurMonthPlayerGoals = mysql_fetch_assoc($GetCurMonthPlayerGoals)) { echo '<tr> <td align="left">' .$row_GetCurMonthPlayerGoals['FRName']. '</td> <td align="left">' .$row_GetCurMonthPlayerrGoals['Sales']. '</td> </tr>'; } // Close the table: …

Member Avatar for Tinnin
0
348
Member Avatar for edensigauke

Here is my code, and i would like to read images from my mysql database and display it over a JButton using the BufferedImage casting into Image. Everytime i want it to display, it would fail to read the data and run to the Exception, may i please have help …

Member Avatar for edensigauke
0
660
Member Avatar for dbalas

Hi! Need help with conditional formatting of table rows... What i need to acheave is to change table row background in red if date_needed is <= than 48 hours than now(). This is what i have now `if (date('d',strtotime($data['date_needed'])) <= 2) $row["rowstyle"]='style="background:red"';` it works in a way... It changes background …

Member Avatar for dbalas
0
365
Member Avatar for Tinnin

Hi all, I'm trying to use recordset to create the following query: $query_GetCurMonthPlayerGoals = "SELECT PlayerName, Goals FROM ( SELECT PlayerID, COUNT(*) AS Goals FROM Master WHERE TeamID=$row_GetTeamDetails['TeamID'] AND MONTH(GoalDate)=MONTH(CURDATE()) GROUP BY PlayerID ORDER BY Goals DESC ) T INNER JOIN Master_Players ON T.PlayerID=Master_Players.PlayerNameCode"; The problem I am having is …

Member Avatar for Tinnin
0
144
Member Avatar for Begginnerdev

Upon playing with the graphics/random class - I have discovered something odd. Private Sub Me_Load(sender As Object, e As EventArgs) Handles Me.Load For i = 0 To 5000 DrawColor(GimmiRectangle) Next End Sub Private Sub DrawColor(ByVal rNew As Rectangle) Try Dim g As Graphics = Me.CreateGraphics g.DrawRectangle(New Pen(Color.FromArgb(New Random().Next(255), New Random().Next(255), …

Member Avatar for Begginnerdev
0
219
Member Avatar for hirenpatel53

Hi all i am developing application with visual studio 2008 and using ajax asyncfileuplode control to upload file ,i am not able to take fully qualified fide od selected file by upload control so please give me some idia how to do this thanks in advance

Member Avatar for JorgeM
0
89
Member Avatar for kshahnazari

I'm new to php and I'm trying to download a webpage text(no need to seperate the data with elements or things like that). Could someone Give a simplized php program (using curl) so I can Get to know it more like the syntax things . for example could someone download …

Member Avatar for pritaeas
0
375
Member Avatar for xHellghostx

Okay here is the problem I am having.. I am trying to make an array based on a user input.. That means the size of the array is unknown.. Here is what the program should look like. How many expierments do you want to do? *Insert user input here* expierment …

Member Avatar for Ketsuekiame
0
629
Member Avatar for dinhunzvi

i have the following php script. the databtase table i'm saving the data to allows NULL values for the email. this is the table structure. ` CREATE TABLE tblcontacts ( contactID INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, contactName VARCHAR( 50 ) NOT NULL, phoneNumber VARCHAR( 20 ) UNIQUE NOT …

Member Avatar for dinhunzvi
0
232
Member Avatar for rishif2

hello experts . . . i've designed a form (two textboxes and one commandbutton) i wanna display id and user(fields of the table). and i display id and user on the basis of the id(inputted through textbox1).And for that i've written following code within command button's click event Private Sub …

Member Avatar for rishif2
0
152
Member Avatar for Lethugs

Hi, is there another way of hiding or formating column value in asterisk in select statement? im using the command replace SELECT REPLACE([Item].[Price],[Item].[Price], '**********') AS Price From Tablename it works fine, but is there anyway to do this? Instead of replacing/forcing the value to display asterisk, i just need if …

Member Avatar for Lethugs
0
926
Member Avatar for yup790

In the main class the user enters text trying to find the file in the same directory as the source file. The string gets passed into the constructer and a file object is made but the file isn't found. The print statements are just to find out what is happening. …

Member Avatar for yup790
0
389
Member Avatar for jkaye

I have racked my brain and can't find the error for the incorrect SQL syntax. I basically have a form with a bunch of fields. Some of them are checkboxes (single instance check boxes) and I think that's where the code is breaking, but values of the checkboxes are 'Yes' …

Member Avatar for jkaye
0
296
Member Avatar for Hendo

Hello all, I'm trying to have a multi-colored border for a generated table on my website. The table is a 2 column, 18 row table, and I want the top 6 rows to be bordered in green (or cell shading in green), while the rest of the table uses the …

Member Avatar for Hendo
1
232
Member Avatar for NoUserNameHere

Hi, I'm trying to enable a submit button only when all the input fields are filled. Is this the correct way of checking to see if an input field is empty? $(document).ready(function() { $('#submit_button').attr('disabled', 'disabled'); $.each(':input', function() { if ($(this).val() != "") { $('#submit_button').removeAttr('disabled'); } }); });

Member Avatar for NoUserNameHere
0
294
Member Avatar for castajiz_2

Hi guys I have a little mess up in my head going on i dont really know why. My question is how come a right join AND a left join were made to handle database queries, why both of them, isn t one enough? for instance let s take the …

Member Avatar for adam_k
0
226
Member Avatar for rkelly70

I have splicontainer inside another spitcontainer, I can open the form in any section but I can not get the form to stay maxamized and stop the user from moving the form. Ideally I'd like to dock the form but I'm not sure thats possible. Thanks Ross

0
69
Member Avatar for arasten

I made a program that makes someone think his desktop cleaned up, its just for fun and make me learn a littel bit of codes because i'm still a beginner in programming i'm 16 years old in high school grade 11 so i wanna learn more codes because at school …

Member Avatar for pritaeas
0
5K
Member Avatar for triumphost

How can I calculate CLOCKS_PER_SEC.. It is defined as 1000 in ctime. I don't want it defined. I want to calculate the actual value.. I tried the below code but it seems to be giving me my CPU speed.. on a 2.8 Ghz processor, it prints 2800. On a 2.0 …

Member Avatar for deceptikon
0
2K
Member Avatar for Tortura

Hello, I have several textboxes and it is possible to write something in one of them and then without losing the focus I could or would save the input. But there is no FocusLost and therefore the TextChanged event doesn't fire. How can I save the input of one these …

Member Avatar for Tortura
0
2K
Member Avatar for AquaNut

Hi All, I am working on a project that involes reading in an xml and sending out a soap message but have come stuck with an error of Cannot implicitly convert type 'string' to 'string[]'. The code is: foreach (var dr in DataRecords) { //build up the values we're interested …

Member Avatar for AquaNut
0
680
Member Avatar for amith_ami

hi all... im getting undefined index errors while running my code in localhost. im using wampserver 2.2... but it works fine with older version of wampserver. here is my example code for products page.... <?php $man_id=$_GET['man_id']; $man_name2=$_GET['manf_name']; $man_name=str_replace('-',' ',$man_name2); $cat_id=$_GET['cat_id']; $cat_name2=$_GET['name']; $cat_name= str_replace('-',' ',$cat_name2); if($cat_id!=""): ?> <span class="pro-head"><?php echo $cat_name;?></span> …

Member Avatar for amith_ami
0
890
Member Avatar for davy_yg

<?php // url nya: abcd.com/jumlahklik.php?idads=[idadsnya] $con = mysql_connect("localhost","root",""); mysql_select_db("freescript", $con); // kalo ada yg click tambahkan jumlah klik $count = 0; if ($_GET['idads']==1) { $count++; $waktu = date('Y-m-d H:i:s'); $idads = 1; $date = date('Y-m-d'); $time = date('H:i:s'); mysql_query("insert into adsmgt (idads,waktu,date,time) values ('$idads', '$waktu', '$date', '$time')"); } //di jumlahklik.php …

Member Avatar for davy_yg
0
178
Member Avatar for Bile

-->>Hello, I hope I can get help on this its like this... -->>I have an application that allows a User to brows files in a Computer... -->>On My point of interest Zipped files,that's My filtering Criteria... -->>When the File wiht .zip is found it is displayed on the Textbox very …

Member Avatar for AndreRet
0
139
Member Avatar for Rahul47

Hello Guys, I have a table having a column called Sr.No. And I Wish that everytime i make an entry into that table Sr.No should be auto Incremented. How Can I Achieve this Functionality ? Thanks

Member Avatar for ryan311
0
136
Member Avatar for anglwthnati2de

So.... I am just wondering which would be the better one to learn for todays market - ASP.net or JSP. I have to take one or the other and am not sure which one is the better choice. If it were up to me I would say neither and go …

Member Avatar for anglwthnati2de
0
148
Member Avatar for RaoxFaello

I'm trying to create a program that determines if what i inputted is a Literal (String or a Char) My idea on how to create one is if i inputted a string (Starts with the usual ") so the first Index in my Array should be " or else it …

Member Avatar for RaoxFaello
0
170
Member Avatar for christiangirl

Hello, I am getting Identifier expected and Illegal start of Expression erros in this code: [code] //"Math is our Game" - A math testing program for First through Fourth grade students //Import GUI packages import javax.swing.*; import BreezySwing.*; import java.awt.*; import java.util.Random; //import TurtleGraphics.*; public class Math extends GBFrame { …

Member Avatar for stultuske
0
815
Member Avatar for Lethugs

I published my project in vs2010 and im trying to deploy it to other computers. I used this connection string that runs smoothly on my pc. This code tries to retrieve the servername and try to connect to database mysysDatabase. This forcely change the app.config. Private Sub btnOk_Click(ByVal sender As …

Member Avatar for Lethugs
0
1K
Member Avatar for davy_yg

Hello, I would like to input date validator. How to do so? User must be able only to input date, otherwise is wrong data entry. <tr> <td>Tanggal :</td> <td><input type="date" size="12" maxlength="22" name="Tanggal" value=""></td><br> </tr> Please help. Thanks.

Member Avatar for code739
0
105
Member Avatar for vonnoy

i have my two database namely: "data1st.mdb" and "data2nd.mdb", then my combobox items are "1st_semester","2nd_semester". if i chose combobox "1st_semester" then all values inputed from the txtbox will directly save to "data1st.mdb", then 2nd_semester combo save to data2nd.mdb.i got no idea with this. thanks a lot. please help me with …

Member Avatar for vonnoy
0
111
Member Avatar for major_lost

Is there a way to get the hard drive letter with VB 4.0? I have an older program written in this language that I am attempting to modify and need to get the hard drive letter to update it. Thanks for your help. major_lost

Member Avatar for TnTinMN
0
393
Member Avatar for code739

Hi guys, Need an effective suggestions on how to deal with this situation. Im working with php and mysql. Now the system i am creating needs to send emaill notification once a year.

Member Avatar for code739
0
266
Member Avatar for silent lover

The End.