64,152 Solved Topics
Remove Filter ![]() | |
Can someone please help me with the latest version of PHPTraid for windows 7. I have downloaded the versions available at cnet and brothersoft but they are giving compatibility issues. Same goes for the version availabe at sourceforge. Also if someone can help me out if i am missing something … | |
As a project after learning about classes, I'm trying to create a type of board game where the program tells you where all of it's pieces are, and then you tell it where you've moved your pieces, and then the AI moves its pieces accordingly. However I'm having a bit … | |
Hi! I'm currently developing a website and I'd like to rewrite the URLs with htaccess. I've looked up some tutorials on how to do it, but it doesn't seem to work. This is one of the url's : `products.php?sub=997&id=97084&name=Manual-Control` I'd like the link to become: `products/997/97084/Manual-Control` This is my current … | |
Here is the code I have in contact.php: <?php mail('philovesdogs@gmail.com','sdf','sadfsad'); echo 'Ok'; ?> I put the echo in just to make sure that PHP was working on the page. I uploaded the page to my LAMP server and opened the page. I saw 'ok'. I checked my email however (and … | |
![]() | Could somebody suggest the simplest way forward for me to investigate please? Please take a look at this web page which shows a single record of a mysql db http://www.swaag.org/DB_VIEW_Specific%20Record%20Number2.php?swaagrec=591 I would like to be able to create a program where I can select for example records 1 to 100 … ![]() |
Hi all, I want to write to html5 application and convert the web application to adnorid application with phone gap. I think I can handle this, I have found many resources for this. but the problem is now I want to enable my native language keyboad when I run my … | |
![]() | this might be a silly question :-) but just for reference asking that System.Drawing.Graphics is a reference type ? or value type ? I mean when creating objects like this Protected Overrides Sub OnPaint(ByVal e As System.Windows.Forms.PaintEventArgs) Dim i As Integer = 10 Dim g As Graphics = Graphics.FromHwnd(Me.Handle) g.DrawString(i, … |
God day! Any body has ha clear and good example on how to use Let and Get function? Thank you! | |
Hi, I am trying to develop a android application which is done using html5. I use phongap to convert html5 application to android apk file. Problem is my native lanuage is not supported by android OS yet. In my app I get datafrom database and print them. when I do … | |
I have been looking for hours on how to do this and haven't found a solution yet, hope someone here can help! Part of my problem is that I'm new to php and web dev, so I don't know what I'm looking for terminology wise. Goal: This is part of … | |
Hello .. I wish i don't violate community rules :) I was used to work on the NetBeans IDE Now I am converting to eclipse The problem is that i can't neither create nor find the final executable jar file In NetBeans I just press "clean and build" then the … | |
I am having trouble with this code: <?php // Username $username = $_POST['name']; $email = $_POST['email']; // MYSQL $con = mysql_connect('host','username','password') or die(); mysql_select_db('db', $con); $var = md5($email); $result = mysql_query("UPDATE `table` SET `imageEs`='$var' WHERE user_username='{$_SESSION['sessid']}'") or die(mysql_error()); echo "Profile image updated. <a href='http://www.awsomechat.comuv.com/update_profile.php'>Go back.</a>"; ?> I am trying to … | |
Do you need to implement a class in order for an object to access the class's functions/methods? When should you implement a class? When shouldn't you? | |
I am having trouble with this code: <?php // Username $username = $_POST['name']; $email = $_POST['email']; $default = "default image"; $size = 40; // MYSQL mysql_connect('host','username','password'); mysql_select_db('database'); $grav_url = "www.gravatar.com/avatar/" . md5( strtolower( trim( $email ) ) ) . "?d=" . urlencode( $default ) . "&s=" . $size; $sql = … | |
I am not understanding this at all. I have to have 3 fish swim across the screen in different direction. But I can only get the one fish to swim. I have been looking ont he web and can not find anything that helps me. If someone can help me … | |
I've been using the HxD hex editor by Mael Horz and recently learned about its ability to display the contents of my entire hard drive(about 1 terabyte). My assumption is that all this data retrieved from the hard drive must be kept in RAM first, and then it can be … | |
please help i want to load record in my div id ="msgbox" <div id ="msgbox"> <form action="connection/selectemp.php" method="post"> </form> </div> this is my connection <?php $con = mysql_connect("localhost", "root", ""); if(!$con){ die('Could not connect:' . mysql_error()); } mysql_select_db("intranet", $con); $result = mysql_query("SELECT * FROM `tblmsg` INNER JOIN `employee` ON tblmsg.empid … | |
My understanding of the C language is that the same identifier cannot be reused. However, the code below compiles on GCC without complaints, even when using the "-Wall -pedantic" flags. Is there something that I am missing? Does the standard say anything about functions/macros having the same name as typedef'd … | |
Function cek_code(ByVal pid As String) As Boolean Dim sql As String = "select count(P_Id) from Profit_margin where P_Id = '" & ComboBox2.Text & "'" Dim cmd As New SqlCommand(sql, myConnection) Dim dr As SqlDataReader Dim value As Boolean = False Try myConnection.Open() dr = cmd.ExecuteReader(CommandBehavior.CloseConnection) While dr.Read If dr(0) > … | |
the question is: Wrtie a program to modify the elements of an array such that the elements that are multiples of 10 swap with the values present in the very next position. I wrote the following code: #include <iostream.h> #include <conio.h> #include <stdio.h> void main() { clrscr(); int a[20]; int … | |
Good day! I just want to ask on what is the best ADO connection string to connect to MS Access fast? and what is the fastest way to create it? And also, where in the project to best put it so that all forms in the project will use it … | |
please suggest me topics for mini project in c programming. | |
hello again, so i have a countdown in which i would like to add a automatically redirect to a specific url when timer hits 0 , as of now timer just goes into the negative.. <script type="text/javascript"> today = new Date(); BigDay = new Date("8,26,2012"); msPerDay = 24 * 60 … | |
![]() | I do have a function in C to give me a unsigned short random number from 0 to 65535. How can I make it to give me a greater number without much calculating? (r * 65536 + r) I've made a function in C to do that for me: static … ![]() |
I have defined a procedure under the click event of the button as follows. [code] Private Sub btnSearch_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSearch.Click [COLOR="Green"] 'Validate Department[/COLOR] If cmbDepartment.SelectedItem = Nothing Then MsgBox("Please select a department", MsgBoxStyle.Information, "Notification") cmbDepartment.Focus() Exit Sub End If End Sub [/code] I … | |
As usual I know I'm probably doing something stupid. I'm trying to write the program below but I seem to have handled my queue incorrectly. The problem could be in one of three places; the way i handle moving on to the next node, my addboard function or my printsol … | |
This has got me very confused. Here is the code but it is not doing what it should do!! echo "<span class='vehicle_table_normal'>";$str_bodystyle=str_replace("," ,"<br />",$bodystyle);$str_bodystyle=str_replace("-" ,"- ",$bodystyle);$str_bodystyle=str_replace(" - " ," - ",$bodystyle);echo $str_bodystyle; The first replace is the most important for display purposes at this moment. The next two are because … | |
I would like to make a memory allocation: `(*matrix)[i]=(int*)malloc(sizeof(int)*sz);` But I have got an error message: Invalid operands to binary * What should be the problem? | |
Hi. i'm trying to login to an asp login page via php and curl... i wrote this code by google help. i expect see originale login page whith invalid username and password message , but i see only 'Object moved to here.' error. <?php $urlLogin = "http://xxxx/LoginPage.aspx"; $nameUsername='txtUsername'; $namePassword='txtPassword'; $valUsername … | |
Could some one point out what's wrong with the classes of this program? #include <iostream> using namespace std; class box { private: int height; int length; int width; public: box();//constructor int surface_area(); int volume(); void set_dim(int ,int, int); }; //implementation box::box(){ int height; int width; int length;} box::int surface_area(){ int … | |
![]() | Like you know the ones like Imovie Sony Vegas Pro Adobe Premiere Pro CS6 Adobe Premiere Elements 10 What programming language are they designed with? ![]() |
if I write the following code.. float a =1.3; double b=1.3; if(a>b) printf("hii"); else printf("hello"); the o/p comes hii...but if I change the values to 1.7 the output comes hello...can any1 explain the reason????if precision is to be taken into account then everytime double should be greater.. | |
Hi, guys i m already done with DB part of my project !!! but confused here !!! (Check attached image) Admin will enter all relevant details in applicant-scrutiny table for each user ........but i want that value for each userid (foreign key) should be copied automatically !!! NOTE: USER table … | |
I'm trying to come up with a small block of code that simply takes a character value that is input by the user and then use an "if" statement to determine what is excecuted depending on what is entered. I just started C++ this week and have no prior experience … | |
I've created this code which should look in the Songs folder and add any .mp3 file to a list. However when I test it it keeps saying File not found and pointing to the exact file it cant find with the name of the song while I dont mention this … | |
I have beeb unable to figure out how to get data from a list view. It needs to be a multislect, and I need to get the data from a specific column. my listview consists of a 3 column with data populated from a database. I am after the data … | |
I have a loop in php which echo out these divs: <div class="nyhed"> <p class="nyheds_dato_p" style="color:#900;">'.$pub_date[1].'/'.$pub_date[2].'/'.$pub_date[0].'</p> <p class="nyhed_p">'.substr($teaser, 0, 55).'..</p> <a href="'.$url.'" class="nyheds_link">'.$link_navn.'</a> </div>'; When ever a link is hovered, i am adding an animation to change the background color of the div class="nyhed". As it is now, all the … | |
Hello! I need to write a query that selects TableID (a previously concatenated string) and also selects a substring of TableID as another column. All data in TableID is in the format %System.Variable, %Class.User, etc. I need to select from the % to the '.' to return something like %System … | |
![]() | Okay so there is this cool photo website that has awesome photo effects okay... So I'm Thinking of saving the websites info right click and save as html etc file. And I wanted to use those same effects trying to build a software out of It. Cause what If the … |
Hi there! What I'm trying to do is have multiple lists have the same length (size) so I can iterate easily over them later. I want to "extend" the size of the smaller lists to match that of the largest list without just tacking on entries, I want to distribute … | |
Dim major As String = TextBox1.Text Dim depa As String = TextBox2.Text Dim sname As String = TextBox3.Text Dim tbStudent As DataTable Dim dcPrimaryKey(0) As DataColumn tbStudent = sqlDataset.Tables("Major") Dim c As Integer 'selecting the entire rows from dbase myCommand = New SqlCommand("SELECT count(*) FROM Major", myConnection) myConnection.Open() 'sqlquery1 = … | |
Hi All, I want to add data for the time tables. I have created 3 fields namely grade, class and stream which is only relevant for advanced level classes. otherwise the "stream" field should be disabled. In my database the class table and grade tables were already populated with data. … | |
Plz help me. I want to insert data in table which is filled by user. But i want to keep that insert query code in same file where i have created my html form. I want not to make insert.php individually. In this way i want to insert data in … | |
Hello, I want to combine all my database table in to one line so i can put it all in the url e.g. Name | Times __________________________ test1 | 1 __________________________ test2 | 2 __________________________ This is how i want it to look in the url (Result.php?loggedin=true&links=test1-1_newline_test2-2)(_newline_ means that will … | |
please someone help me..im doing my final project and below is my code for the registration form..after i fill up all my form and it will appear a msg box that i can only register once...the data is not being inserted in the database..im using ms access...please2....do help me...i dont … | |
Hello All, I have been developing a website that has a secure area. At the beginning of the secure page I wrote a scriptlet to check whether the user is logged in. I want to take this scriplet and put it in a javabean. Could any of you guys suggest … | |
Hello, a noob in web programming here. Doing some course related database, would appreciate any help :), I want to ask whether any of you can help me on how to retrieve get data from mysql using php function, but separate each data from mysql one by one, cause i … | |
Hi all, i have the data coming from a json file. I need to print (echo) this into html. here's a part of json file "title": null, "about_us": "Asteria Grill welcomes you! I have tried many times to convince myself not to pursue another restaurant. However, it's my favorite hobby … | |
I have problem with writing csv file using **fputcsv**. Its putting the page html also into the csv file. Whats wrong with my code ? //Excel header header("Content-Disposition: attachment; filename=\"Delivery_Reports.csv\";" ); header("Content-type: application/vnd.ms-excel"); $out = fopen("php://output", 'w'); $flag = false; // $result = mysql_query("SELECT * FROM senderids ") or die('Query … | |
Hi, I want to read source directory and copy each file to the destination by skipping after each file based on interval value i.e., if i set the value of interval 2, then it should skip two files everytime. For Example: If there are 5 files in a directory, 1.txt, … |
The End.