199,114 Archived Topics
Remove Filter ![]() | |
hello everyone, I am looking to remove some stuff from my string: $list = "7:2,3:1,5:1,33:1,23:2"; $list = "7:2,3:1,33:1,23:2"; // REMOVE THE "5:1," OR ANY OTHER DINAMICALY AT ANY POSITION $list = substr($list, 0, strpos($list, "3:")); // i was thinking about this, but i dont think it willwork. thanks | |
HI All, Im a little confused as to the best way to approach the dealings with sessions when checking out, logging in, and logging out, in some cases the session can be written into the config file which is included in every page to help follow the user, however in … | |
Excuse me, I want to ask how to make javascript countdown doesn't reset when page refresh?? thank you in advance | |
hi , i need help to complete wrting a program // #include<iostream> #include<cmath> using namespace std; int main() { //decaler data here double var, n=0, sum = 0; double x, xi; //input cout << "please enter the value of x :"; cin >> x; cout << "please enter the value … | |
Hello All, Can somebody tell me what is designer.cs file in C# and what is its use in programming. I'm new in C# and I also want to know more about this automatically created designer.cs file while programming. Thanks, George | |
<html> <head> <title> Company Login </title> <style> li { display:inline; } </style> </head> </html> <?php session_start(); echo"Welcome ". $_SESSION["cname"]; $cp= $_SESSION["cname"]; $dbhost='localhost'; $dbuser='shitanshu'; $dbpass='123'; $dbname='placment'; $conn=mysql_connect($dbhost,$dbuser,$dbpass); if(! $conn) { die('could not connect'.mysql_error()); } mysql_select_db($dbname); $sql= "SELECT companyname,jobid,profile FROM compnayjob"; $result=mysql_query($sql,$conn); $count=mysql_num_rows($result); ?><table width="400" border="0" cellspacing="1" cellpadding="0"> <tr> <td><form name="form1" method="post" … | |
using System; namespace studentObj class Student { private int id (); private string name (); private char grade (); public int ID { get {return id;} } public string Name { get {return name;} set {name = value;} } public char Grade { get {return grade;} } public Student(int ID, … | |
a java code that displays multilevel feedback queue scheduling[](http://www.) | |
I can swap two tiles, however, when I need to shuffle them, I need each tile to have a unique position. I've tried setting up array's for the x and y position of both the tiles to be swapped checking against the randomly generated number to make sure it's position … | |
hi :))) I have a pro. here which I can't use the keyListener and the buttons (ActionListener )at the same time !! I can use once a time either the keylistener OR ActionListener ! and in my prog. I should use both of them at the same time ! what … | |
I have a base class (A) and two derived classes (B,C) (mode of inheritance is public). I have two values in base class A that needs to be modified by derived classes B,C so i declared their get() and set() under protected in base class. Now each of the derived … | |
Hi, so I want to say, while p is less than the length of the list for everything in my list (punctuation and characters) if the letter or punctuation is in my valid letter string convert it into ascii using ord() that equals one turn p = p + 1 … | |
I need to know how to install MASM on my laptop? anyone please ,if there is online site to download it ..tell me. | |
I have saved a javascript in notepad with an .htm extension. When I go to file then open and type in the file name, it just opens up a it as an address in the address bar. I want to run the program in internet explorer, how do I do … | |
I have a calculator that is supposed to take in scores, compute score total,score count,and score average. I am also to create a list that will store all the scores that have been entered and display them in msgbox which I have already done and have working. My problem is … | |
Write a Java application that computes and prints the grade of a student according to the following algorithm: 1) It should read from the user TMA score and MTA score. 2) If their sum is less than 15, the grade "FC" should be printed and the program will stop. 2b) … | |
I have been tasked with making some internal software (as you can probably tell from the section I'm posting in, it's PHP based). I have been asked to make it so the user is automatically logged in and doesn't need to have another password for another piece of software. The … | |
Hello All, I just started learning java at home .I am getting an error message".java:8: error: cannot find symbol int randomNum = (int) (Math.Random() *5);" Could you please help me on the same? Here is my java code: class SimpleDotComGame{ public static void main(String [] args){ int numOfGuesses = 0; … | |
Hi! Firstly, here's the code: if(new File("ATM.xls").exists()){ System.out.println("File exists"); } else{ File excel = new File("ATM.xls"); } What I'm trying to do is check whether or not a file exists and then create said file, if it does not exist. This all works fine, but somehow, I'm unable to use … | |
hya i am getting the following error message Warning: mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given in /home/jktempla/public_html/WEBINTERSECT/template_status.php on line 20 Warning: mysqli_fetch_array() expects parameter 1 to be mysqli_result, boolean given in /home/jktempla/public_html/WEBINTERSECT/template_status.php on line 21 can anyone help and see whats causing it im lost ty <?php … | |
**Guessing game. Write a c++ game that asks the user to guess a number between 1 and a 100. If you guessed correctly, it will say you win. If your too high or too low it will also let you know.** | |
Hi, I have two projects; First one is a asp.net web project and the second one is embedded http server library project. Embedded http server project is taken from : embedded http server project I want to save a video file from user's local to user's shared storage. I'm getting … | |
I have another question and trying to solve but did not solve this anyone who help me to solve this the Question start here...... Write a program that reads a whole paragraph (you can do that with a little common sense) from the user. Now prompt the user enters a … | |
Hi, I am trying to construct a binary tree using a list. class Element { private: list<Element*> _children; char* _name; //...other data members and methods } I have a class ("Element") that has children ("_children"), but I cannot figure out how to add children to the elements of "_children". I … | |
hey guyss..!! I'm having some difficulties working with strings (cstyle, object oriented strings). as this is something new for me so I'm not exactly familiar with functions of strings aswell.. write now i have a question for which i was making a solution but the code is missing something please … | |
hi guys, i just want to ask, how could i get the value of the textbox using the onchange() function. i know that using the form action and method get is one possible solution but what i want is that the value of the textbox in page1 should be passed … | |
<html> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <script type="text/javascript" src="http://code.jquery.com/jquery-1.8.2.min.js"></script> <script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script> <!-- directorySlider Javascript file --> <script src="js/directorySlider.js"></script> <script src="js/directorySlider.min.js"></script> <script> $('#slider-main').directorySlider({ animation: 'fade', filebase: 'img_', directory: 'images/', extension: 'jpg', numslides: 2, height: 200, width: 483, timeout: 100 }) </script> </head> <body> <div class="directorySlider" id="slider-main"></div> </body> </html> <meta http-equiv="Content-Type" … | |
import random print(" Welcome to the guess my number") print("I'm thinking of a number between 1 and 50") print(" Welcome to the guess my number") print("try guessing in 10 attempts") num=random.randint(1,50) guess = int(input()) tries = 1 while guess != num and tries !=10: if tries ==3: print ("Do you … | |
What I am currently trying to do is have the user press a button, upon pressing that button, the cursor turns into a crosshair. Wherever the user clicks next is the point recorded in the code. Any help is appreciated. | |
I am a newbie in Android App Development. I have designed basic apps like a simple notepad but I don't get pretty good tutorial books on how to do it. Would you please recommend me a link where I can get awesome notes on the same. Thanks | |
hi guys, i have the following code: "select sum(( receiptDetails.retailprice - receiptDetails.purchaseprice)* receiptDetails.itemcount ) + ((customerReceiptDetails.retailPrice -customerReceiptDetails.purchasePrice)* customerReceiptDetails.itemCount) As Total from receiptDetails,customerReceiptDetails " am trying to get the gross profit from the two tables: receiptDetails and customerReceiptDetails. the query works well if both tables have values. i tried to use … | |
I have a question about inserting images into a product page. I have 5 images (saved as longblobs in my products table) and would like to put them in my table like the id, name, quantity and price.... any idea of how i would do this? I have this so … | |
Hi everyone. I want to make a update option for my app. I have a idea how to do this but doesnt sound very logic. This is how it is: The files are located at a drive. When download the update it download on the some folder and overwrite the … | |
Hi everybody. I have a page with some post's title in it. I have put every title in an <a> tag. I want to click on each title and enter into an other page (single-post-page.php) to see the content of that post's title. The script of that page (single-post-page.php) should … | |
Hi, as you know i'm creating my own CMS. This is a part of my code: if (!empty($_POST["Title"]) && !empty($_POST["Author"]) && !empty($_POST["Content"])) { $sql = "INSERT INTO Posts (Title, Author, Content) VALUES ('$title', '$author', '$content')"; } I want the script to check if Title Field and Author field and Content … | |
I want to implement a website that has different types of users. I want that when a user posts something, the admin will be notified automatically. I have read about WebSockets and found some examples but mostly of them are about chat application. I just want a notification update. I … | |
Hi, I have a website and quite a few members have suggested that adding a chat room would be a great idea. I'm searching for something I might be able to integrate well into my site. Has anyone tried RumbleTalk? It is an live chat for Wordpress or Joomla and … | |
My problem is why this codes dont work. i want to upload image with hide input type file but doesnt work. here are my codes.. <form action="" method="post" enctype="multipart/form-data"> <div id ="settingmaincontainerright"> <input type="file" id="settingprofileimgfile" name ="settingprofileimgfile" > <input type="submit" id="settingprofileimgfilebutton" name="settingprofileimgfile" value="Choose Foto"> <input type="submit" id="settingprofileimgbutton" name="settingprofileimg" value="Upload Foto"> … | |
Hi When I try this if in IE 9 with my variabels like: maxGrootte = 12 and minGrooote = 5 it enters into the if condition if(maxGrootte < minGrootte){ bericht += "\t -Het minimum aantal deelnemer kan nooit groter zijn dan \n"; bericht +="\t het maximum aantal deelnemers\n"; status= false; … | |
#include<iostream> #include<string> using namespace std; int counterofanalog=0; int counterofdigital=0; int counterofsmartwatch=0; int num=0; //class for Genwatch class genWatch { private: int watch_id; string brand; int price; string colour; int date; public: genWatch() { watch_id=0; brand=""; price=0; } void adddata() { cout<<"Please Enter Watch ID:"; cin>>watch_id; cin.ignore(); cout<<"Please Enter Watch Brand:"<<endl; … | |
I want to scanf array of string in c char *bookName[n]; for(i = 0 ; i < n ; i++){ scanf("%s" , bookName[i]); } but it dose not work ,what is the problem ? | |
I need a timer of some sort so that my program will send a batch of files every 10 seconds. Not sure if I can do this using threading? or maybe theres some other method. Just looking some advice as to what would be the best option. At the minute … | |
Hi, This is my problem : foreach ($_POST['a'] as $b) echo $b; $_POST['a'] from my previous page, multiple selection list box (i get this data from my lookup table which user can add data on lookup table). The result from $b is 060100060200060300. Is there any function to split this … | |
Hi have this code to manage my main page. Everything works fine on my local server at home,i'm using easyphp. But on my webhosting server i got this error: Warning: scandir(D:\Hosting\12067690\html/,D:\Hosting\12067690\html/) [function.scandir]: Access is denied. (code: 5) in D:\Hosting\12067690\html\index_menu.php on line 65 Any ideas? thank you in advance. <?php $dir … | |
Hi , I am displaying description from table dynamically. For that I need Left and right arrows, How to do that? I need with some examples in a simple way. | |
hi guys I was wondering whether it is possible to load items to the data grid view without having to do it in the form load event. if so, please assist in discussing a few techniques. thanks | |
Hi all, I've been working with PHP, using procedural methods, for several years now, and have begun to explore the object-oriented side of it. While it didn't take me long to understand the potential advantages that come with working in this manner, I'm still having some trouble wrapping my head … | |
Hi, I'm trying to learn templates. I want to pass strings and integers via objects. I made it as a template because my program should support both strings and integers. // Main Function int main() { string element; library <string> comics; cout << "\nPlease type in the element: \n"; cin … | |
hi guys! i am a person who takes interst in the programming and try and implement some basic programs that i come across. I recently came across a site that allows us to see youtube videos as if we are watching it on youtube.(youtube is banned in pakistan and thus … |
The End.