64,152 Solved Topics
Remove Filter ![]() | |
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 … | |
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 … | |
![]() | Hey fellas, Is there any method by which I can declare a Variable that can be used in multiple forms in VB.NET ? ![]() |
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 … | |
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 | |
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 … | |
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 … ![]() | |
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, … | |
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. … | |
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 … | |
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  yes the information displayed is all mock data. however the problem lies in the buttons. On the far right of each … | |
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 … | |
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 … | |
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? | |
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 … | |
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. … | |
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: … | |
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 … | |
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 … | |
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 … | |
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), … | |
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 | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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. … | |
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' … | |
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 … | |
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'); } }); }); | |
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 … | |
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 | |
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 … | |
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 … | |
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 … | |
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 … | |
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> … | |
<?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 … | |
-->>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 … | |
![]() | 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 |
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 … | |
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 … | |
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 { … | |
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 … | |
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. | |
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 … | |
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 | |
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. | |
how to show table names as combobox use php syntax? |
The End.