64,152 Solved Topics
Remove Filter ![]() | |
Hi How do I strip the </ br> from the database when a carriage return is entered into the text area by a user? I get something like this: hello<br /> <br /> hello<br /> <br /> hello In addition when using the php mail() function, the text area also … | |
I have database with Name, email, joindate and my Query is $name=$_POST['txtname']; $email=$_POST['txtemail']; $date = date("Y/m/d"); INSERT INTO member (name,email,joindate) VALUES ('$name', '$email', '$date') What should be the output query to get all data by month? | |
Hallo, How to trim content? I would like to show only the first 30 letters of this content. This is what I have so far: include('include/con_database.php'); $result = mysql_query("SELECT * FROM dynamic_content WHERE id='124'"); while ($data = mysql_fetch_array($result)){ echo '<div id="text">'.$data['content'].'</div>'.'<br>'; } Thanks before. | |
Hello. i use this code to print my vb page form : PrintForm1.Print() But only half of the page from the form is printed. i tried using this , code : PrintForm1.Print(Me, PowerPacks.Printing.PrintForm.PrintOption.CompatibleModeClientAreaOnly) Nothing is prinetd on the printed page. I got only a black page. What can i do … | |
firstly I admit I am asking this because of my homework secondly, my c++ is still at a beginner level. so I need some help. ok..going back to my question. I am trying to remove a line containing username and password from text file. so I tried to following, 1)Read … | |
Does anyone know how to have an image change to a random image when the page loads and/or refreshes, and also have it where if you click on the image is goes to the next image, in sequence? Thanks! | |
I know python is an interpreted language but is there a way to compile your code? What if you write a program in python 3 and the user has python 2.x, or worse yet, doesn't have python at all. How can you create an executable via compiling or any other … | |
hy i m trying to do a smal vb.net project using sql server 2008 in vs2012,and i dont know how to use those database in my project for eg : using select/insert/update/delete queriesfor my controls(textbox,combobox datagrids etc..) please help me with detail how to connect database and use it in … | |
Hi I want to do a silent install of sql express 2008 (free edition) In my configuration file, how can I set the default language to British English and date format to "dd/MM/yyyy". Thanks for your help SQL Newbie | |
a salesman travel from sindth to punjab province. He may visit either n=2,3,4,5 or 6 cities of punjab. For every number of cities n he may adopt different roots. Some roots will be longer and other shorter. Develop a Cpp program. | |
Hi i was wondering if anyone could help me, im wanting to when you click in a certain area it changes the background image thanks import Tkinter as tk from Tkinter import* import urllib import base64 def click(event): if event.x > 100 and event.x < 430: if event.y > 100 … | |
SO im writing a simple map editor using c# and xna. Ive just finished with xml serilization, but when i compile i get the following error: "Unable to generate a temporary class (result=1). error CS0016: Could not write to output file 'c:\Users\Chris\AppData\Local\Temp\1vw3tjxm.dll' -- 'Access is denied. ", what does this … | |
I have no idea why I cannot get jquery to parse a JSON array from a PHP server side call. Here is my jQuery $.ajax({ type:"POST", url:"/Home/Profile/cb_profile.php", data:{loadProfile: JSON.stringify(itemsToPost)}, success: function(data){ var returnedItem = $.parseJSON(data); }, error: function(e){ console.log("We've had a error"); }, }); Here is my PHP if(isset($_REQUEST['loadProfile'])) { … | |
![]() | Hello, I have a problem with a Form (EJournalF) that is activated unexpectedly and can't find from where. If I let it be Auto_Created in Project/Option/Font Auto_Create there are 2 instances at run-time, if it is listed in Available_Forms, only one instance is created. I have a MenyForm as Mainform … ![]() |
I have function that creates textareas fields on the fly upon a click on a link I want to convert these textareas into tinymce wysiwyg here is the code $("body").delegate("a.add_tab","click",function(e){ e.preventDefault(); var uniq = $(this).attr("uniqid"); add_tab_ui($(this),uniq); }); function add_tab_ui(elem,uniq){ var content = "<div class='wrapTab'><label >Tab Title:<input type='text' name='tab-title-"+uniq+"' id='tab-title' value='' … | |
hello friends. like the question title i want add function to my jquery script when a user choose a option of select html form field to calculate a totoal price. here is my script and the html form field THE FIELD <option value="0" selected="selected">Shipping</option> <option value="0">0.00</option> <option value="9.80">9.85</option> <option value="19.60">19.80</option> … | |
Ok so i an very new to this site and am trying my luck with PHP. Got a great idee to make some cash but now to implement it is a whole new game for me. I want to keep the selceted value of the select box after the form … | |
![]() | I've been given the following instruction: *Add a new method to the library that applies a function to every value in the tree. (This is an iterator method for trees.)* int bst_char_iterate(bst_char *t, char (*fun)(char item)) *NB: The BST property will only be preserved by this method if the function … |
Heya all, Right now, i'm working on a small, text-based game, but i'm a bit confused about how to get my coupeling right. at the moment, i have 5 classes: an Item class, an inventory, a player, a room and a 'game' class that loads the game. The game class … | |
hello all i have to work in joomla virtuemart for my client he wants to give discount on products in some other manner there are 2 category of products 1stcategory and 2nd category now 2nd category have more sub category and sub-sub category now i what client want that when … | |
How to check if startdate and enddate overlaps when changing date in datetimecontrol? (C# or SHAREPOINT)pls. is there anyone who knows how to check if dates are overlapping? this is my gridview: | ID | cost | start date | end date | status | --------------------------------------------- | 1 | 66.00| … | |
class MemberCounter: members = 0 def init(self): MemberCounter.members += 1 # m1 = MemberCounter() # m1.init() # MemberCounter.members -> 1 # m2 = MemberCounter() # m2.init() # MemberCounter.members -> 2 # m1.members -> 2 #m2.members -> 2 # m1.members = 'Two' # m1.members -> 'Two' # m2.members -> 2 In … | |
Hi, I am confused on why my function is not being executed. I have setup the AJAX to insert data into the database and on success to grab information from the database and print it out on the site, but I also added a function to be called or executed … | |
Hello Everyone, I have written code to create Temporary Table using PHP script. Now, when I run the script, it seems to have created the temporary table. Now, my problem is when I try to do INSERT statement in PhpMyAdmin into the temporary table I create, I am getting an … | |
i am so confuse dude.. why in my visual studio 2010 ultimate didn't show crystal report gallery? after i click "add new item" and add crystal report, it just show me SAP page that say "learn and download". i have install SAP crystal report runtime engine for .NET framework 4(32-bit). … | |
Many site can ask you to make an account in order to get more services etc. Most of the time a password is asked also. I understand there is a need to make a password of a certain length, say at least 6 chars or longer. What I don't understand … | |
Alright so here's a good one for you guys. Long story short I am trying to create a .bmp file out of a byte []. Now I have code that will convert a byte [] to an Image that I then save to a file, but this doesn't work. Why? … | |
Hi I wrote this code and I hope that you can tell me what is wrong with it .! $sql = "INSERT INTO offers (title,description,location,type,status,img,real,username) VALUES('".$title."','".$description."','".$location."','".$type."','".$status."','".$img."','".$real."','".$username."')"; $query = mysql_query($sql) or die(mysql_error()); The error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL … | |
i have two product categories which customer can preview when click, and wish to show a message on each item. Ive found a nice script but need help to make this in 2 sets. need help. Happy new year! <!DOCTYPE html> <html lang="en"> <title>Untitled Document</title> <script type="text/javascript"> var current = … | |
Hello all, I am stuck with a nullpointerException at line 41 and 60.Can someone please help me out.any kind of help will be appreciated. Thanks import javax.swing.*; import javax.swing.event.*; import java.awt.Color; import java.awt.*; class calenders extends JFrame { int i=0; int j=0; int k=0; JFrame jf; FlowLayout fl; JPanel jp[]; … | |
![]() | Afternoon I set up a substring on the raceid column of my database; the raceid column consists of the season+individual race number, to produce a unique id number. Image of the database below - my code was doing what I expected (hoped for?!) and outputting the four digit season. http://www.arabianraceform.co.uk/form/horses/dbimg.jpg … ![]() |
anybody can help me do it?.. The objective of this assignment is to refresh and enhance the skills of the students in problem solving involving functions, arrays, classes and others using the C++ programming language. Students MUST use the inheritance and polymorphism concepts in the OOP. Students are required to … | |
I have text file that contains username and password userandPassword.txt chris ABC jane DEF john DEF I am tryng to Decrypt the password using caesar cipher, with a key of 3 from the text file. which means that if I key in username: chris and password:XYZ, it will login successfully. … | |
Give that array I want to use the random string attached to the tab-title and tab content keys which are rEXMp and 3T2IV respectively , I want to use those to split the array into two arrays and getting rid of these characters in the new array and also add … | |
# Hello. I am working on bootstrap 3 and here is the problem i am facing below: # 1. *This is the problem i am facing : http://oi44.tinypic.com/14b5ob8.jpg* * When i click on the top navbar, the bottom navbar opens up too and vice versa/ * I assume that i … | |
Hello, I've been trying to create a function to calculate and return the total payment. RadioDay is a radio button with value of 7 while RadioHour is 70. Somehow I am getting InvalidCastException "Conversion from string "" to type 'Integer' is not valid." from the part where I want to … | |
Hi all. Im having trouble getting my menu to work on my window. this is what I have so far as for my code. package sparepartinventory; import java.awt.Dimension; import java.awt.Toolkit; import javax.swing.*; /** * * @author jonathan */ public class SparePartInventory { /** * @param args the command line arguments … | |
Please help me..What is wrong with this syntax...there are 2 parts of error.. Private Sub class_initialize() DoEvents Set con = New ADODB.Connection With con .ConnectionString = "Driver=(MySQL ODBC 3.51 Driver);SERVER=localhost;PWD=;UID=root;PORT=3306;DATABASe=cvsur;" .CursorLocation = adUseClient .Open End With End Sub **.Open** was the error from this syntax..(Sytax Above) ______________________________________________________________ And another one … | |
#Name: Calum Macleod #Date : November 6, 2012 #Purpose: A Python program with a loop that lets the user enter a series of whole numbers. #The user should enter the number -99 to signal the end of series. #After all the numbers have been entered, #the program should display the … | |
Hello all, I am trying to find all occurences of a letter in a word. If the letter is present in the word, then I save it to a String. For example here is the text: Hello World, my name is godzab. I search the text, and if there is … | |
Hello, I have an issue with my ajax script. Basically I want to be able to stop a php script from executing when I click on the Cancel button of the Confirm Dialog box. Here are the code snippets for my application: policy.html: .... $(document).ready(function(){ $('#process').click(print_check); }); function print_check(){ var … | |
hello friends i want to creat a calculator in my form for calculate total price in real time for exemple" total field = price field + quantity field" my form is a html form and price value is php value <form action="" method="post" name="formulaireajout" class="formulaireajout" id="formulaireajoutid"> <input name="price" type="text" id="pricefield" … | |
I need to read excel files and compare them and produce new outcomes using Python. i have realized that by suing the following codes I can read an excel file: import xlrd wb = xlrd.open_workbook('values.xls') wb.sheet_names() But i keep getting error of: [COLOR="Red"]Traceback (most recent call last): File "C:/Python26/Atest/filename.py", line … | |
I want to pass an input file to a function and within the function, fill an array by reference. It isn't allowing me to do this, it keeps telling me it's expecting a ";" after i in the function. I couldn't really find anything about this in my book - … | |
so this piece of coding is having a problem. namely the search funtion. it will search but the result would only be the first element. the second will not be seached. like for example first element is lily and second element is john. search for the name lily will result … | |
is it possible to add any font in ckeditor?? if yes then how??? | |
Dear, I make a php page to upload the images, pdf, swf etc etc for specific orginisation entered in same form. In the form i made the input type files to upload a maximum of three files but i know how to upload one of them only. here i upload … | |
Please help me with this, i'm trying to create a domino game (which a project in school) i'm a midway learner of Java Prog, but still i haven't know a lot. My problem is, i'm trying to draw over the background image of my playFrame, but the rectangle does not … | |
hello today i start writing an application which uses mdi forms(its new to me). and i use the following code:(i set form1=idmdicontainer=true) , is this correct way to create mdi forms ? further i write the code : there i have 2 more forms (form2 and form 3) Private Sub … | |
Hi., Can we share an image from photo library in ipad through addthis sdk facebook or twitter sharing? |
The End.