64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for ayat abukhadra

Hello, I've created an asp.net website with english interface, now I'm trying to provide another language interface to my website, can anyone directs me how to flip a webpage left to right and vise versa ?

Member Avatar for ayat abukhadra
0
172
Member Avatar for Despairy

Hey I just tried using the OpenCV for the past few hours but I keep on failing. I am a Windows 7 user with Visual Studio 2008. I followed the instructions for OpenCV2.2 (whilst downloading the newest stable version 2.4) did the CMAKE phase exactly the way it says . …

Member Avatar for DJSAN10
0
262
Member Avatar for extjac

Hello, what would be the best way to prvent people to run a php script/file that is on ajax.post(URL) $.ajax({ type: 'POST', url: 'http://www.mydomain.com/ajax/somefile.php?action=insert', data: data, success: success, dataType: dataType }); if you see code above...let's say that an advanced user or hacker go to: http://www.mydomain.com/ajax/somefile.php?action=insert i would like to …

Member Avatar for extjac
1
289
Member Avatar for ryantroop

I have taken up the Python Challenge and I am stuck on challenge 6, which requires PIL - and sadly I am using 3.2 and there is no PIL support. Yes, alternatively I could simply download 2.7. However, I know there are some differences between 2.x and 3.x and I …

Member Avatar for ryantroop
0
162
Member Avatar for PM312

I have combobox on child form. combobox get populated when form is loaded. Now the problem is when child form is closed and reloaded combobox get populed twice with same items. it appears that combobox dosen get cleared when for is closed. Below code dosen work CboScrip.Items.Clear() Below code is …

Member Avatar for PM312
0
114
Member Avatar for jalpesh_007

i have write a code for making a string that is being read from CSV file. i want to make a string from particular location of each and every line. i have attached a code what i have done.but i want it as it for any number of location. In …

Member Avatar for jalpesh_007
0
297
Member Avatar for daniel36

<?php SESSION_START(); require 'config.php'; $query="SELECT * FROM topics WHERE student_id='".$_SESSION['id']."' AND id='".$_GET['id']."';"; $result=mysql_query($query) or die(mysql_error()); $rows=mysql_fetch_assoc($result); ?> <table> <tr> <td colspan="2"><?php echo $_SESSION['user_name']; ?></td> <td colspan="8"><b><?php echo $rows['title']; ?></b></td> </tr> <tr> <td colspan="2"></td> <td colspan="8"><?php echo $rows['description']; ?></td> </tr> <?php $sql="SELECT * FROM comments WHERE topic_id='".$_GET['id']."';"; $comment_result=mysql_query($query) or die(mysql_error()); While($row=mysql_fetch_assoc($comment_result)) …

Member Avatar for broj1
0
150
Member Avatar for dante123

hi i have two menus that i use as include in index.php file: topmenu and leftmenu I'm using the same code in oder to show the active header switch (THIS_PAGE): Code for the "Top menu include": <?php define('THIS_PAGE', 'pagename'); $menuitem1 = '<a href="index.php">Home</a>'; $menuitem2 = '<a href="about.php">About</a>'; $menuitem3 = '<a …

Member Avatar for diafol
0
183
Member Avatar for modesto916

Hi, I have a homework to do for college, which asks me to write a pascal lexical analizer in C. I'm trying to figure out the best way to ignore the comments, so far I've written this code, which works, but I would like to know if there is an …

Member Avatar for modesto916
0
264
Member Avatar for angel06

I'm currently creating a program where a user should enter the correct color shown in it. This should be entered in text box. What code should I use to make the program accept both upper case and lower case text inputs? For example "red" should be equivalent to "Red" something …

Member Avatar for debasisdas
0
558
Member Avatar for Riu 2009

i've displayed a table from database using php.and now what i want is to edit records seperately as i've placed an edit and a delete link in front of each record which edits the record from sql.and it is now giving this warning.Please help me to find the error correctly.as …

Member Avatar for diafol
0
333
Member Avatar for jakubee

Given an Arrayl.ist that contains a list of Employee object references, describe two ways in which you could write code to make a copy of that ArrayL ist. (Hint: one way would be a shallow copy). Use code examples to illustrate your answer. Discuss the implications of each way you …

Member Avatar for JamesCherrill
0
1K
Member Avatar for Riu 2009

Hi everyone i dont know how to get the already filled value of radio buttons from sql using html/php here is my code but its giving error <?php include("../includes/config.php"); ?> <?php if ($_SESSION["isadmin"]) { $con=mysql_connect($dbserver,$dbusername,$dbpassword); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db($dbname, $con); $accountid=$_GET["id"]; $result = …

Member Avatar for Riu 2009
0
8K
Member Avatar for borchu

Hello guys, I start to learn&code some basic small client/server console applications in java -especially in android- and also I try to learn Threads, in fact, I managed to connect 2 different machine by uploading different projects to these machines, for example one project only consists of client and the …

Member Avatar for borchu
0
3K
Member Avatar for andy106

Hi I have a simple code below that fetches, make, model and year from the database, but for some weird reason I get: Fatal error: Cannot access protected property error, any ideas as to why this might be happening? (i btw have this code on a different server running with …

Member Avatar for johrocks124
0
3K
Member Avatar for semicolon

I have a Thread running sql query how can do i force stop the thread when i dont want to use it anymore. I have a form that loads 100k from sql server i retrieve first the 2k then the thread runs to retrieve the other data i want to …

Member Avatar for nmaillet
0
116
Member Avatar for cguan_77

hi guys, please help me out on this issue. i had this code to connect to mysql using php but there is no any message displayed. nothing is displayed on the screen, whether the connection is successful or there is an error. any ideas? i can connect to mysql using …

Member Avatar for cguan_77
0
180
Member Avatar for PhilEaton

Hi! I recently created a website that has a contact form that sends an email with the PHP Mailer class. I had to use my gmail account because I cannot get my LAMP server's SMTP protocol working... In my mail.php file, I display the password and account quite openly as …

Member Avatar for PhilEaton
0
3K
Member Avatar for PhilEaton

Hi there! I'm new to MySQL. What security measures should I take to ensure security of my databases? Any keywords? For instance, often times when logging into the DB, you must enter the user and pwd to gain access. How can I make that more secure? It's obviously in plain …

Member Avatar for PhilEaton
0
144
Member Avatar for daino

A really rooky question here but I'm still trying to understand something. If I'm using WXWidgets I assume the purpose of the GUI is to provide a trigger point from where I can process event s via the event loop. I basically create the gui as I want it and …

Member Avatar for daino
0
261
Member Avatar for persianprez

I have the following code: $filename = "raw_data.txt"; $fp = @fopen("$filename", 'r'); if ($fp){ $array = explode("(.)", fread($fp, filesize($filename))); } for ($i=0; $i<sizeof($array); $i++){ //name1 name2 name3 name4 } So what I want to do is initialize variables with $name and the current $i value Thanks in advance

Member Avatar for Atli
0
1K
Member Avatar for pure_honey

Hi there, i need to draw an ERD Diagram and i can only draw the, product,blueprint,hardware,software and i am stuck Please help...i would appreciate it a lot.Many thanks. **Scenario:** You have been asked to create a database design for the BoingX Aircraft Company (BAC), which has two products: TRX-5A and …

0
206
Member Avatar for PhilEaton

I am trying to check for the background of an element, here is my code. But it doesn't work: I tried two ways, here is the first: function changeColor(field) { if(field.css('background-color','#ffb100')) { field.css('background-color','white'); } else { field.css('background-color','ffb100'); } } here is the second: function changeColor(field) { if(field.css('background-color') === '#ffb100') { …

Member Avatar for Taywin
0
277
Member Avatar for jerviejeb

Hey guys, I need help. See, im trying to compare dates. if say, deadline is set and if the user is over the set deadline, it should display a message box saying that he passed his deadline. what i have so far is: If Date.Today > txtDeadline.Text Then Msgbox.Show("You've passed …

Member Avatar for jerviejeb
0
331
Member Avatar for divin757

I am trying to allow a page to print nicely if a user uses the built in browser print. However the page is too small in IE. The frustrating part is I have no way to debug the page as the css is only applied at the time of printing. …

Member Avatar for divin757
0
220
Member Avatar for kraykezia

hey everyone, i am trying to write a code that will calculate the sum of all values in a column of Jtable. the total sum will change when a row is removed or added. i tried many ways. i need help urjently. :)thanks

Member Avatar for NormR1
0
262
Member Avatar for Vish0203

while((c=getch())!=13) { pass[z++]=c; printf("%c",'*'); } I used this while loop to take the input of the password. Everything works fine until no "wrong" key is pressed. the problem is, suppose, if i press a wrong key n i want to delete it (backspace) then even backspace is taken as a …

Member Avatar for Vish0203
0
125
Member Avatar for dospy

i'm learning about networking on a site and there says there are 3 types of sending data: unicast, multicast and broadcast in the unicast case the IP layer encapsulates the IP destination(let's say "derp"). the interesting fact i've read about the unicast is that all machines within the same network …

Member Avatar for Taywin
0
119
Member Avatar for johndohmen1963

Hi hope someone can help me How can i update a date field to NULL so that i have 0000-00-00 in the date field i have the following code but it's not working i tried a lot of things but nothing wil work if($_POST['geboortedatum'] == "") { $date = NULL; …

Member Avatar for johndohmen1963
0
88
Member Avatar for stephen_UK

Hi, I am generating an automatically email successfully using the code below, where all the email addresses are contained in the variable $to. How do I change the code below to send all of these emails as a bcc so that their email addresses are not disclosed to one another? …

Member Avatar for Tapioca77
0
511
Member Avatar for kanjali

HI, How to use multiple forms in c# windows application? Where i need to fetch the information form "Form2" to "Form1". Here Form2 is used to get information from user and again those informations will be used in Form1. Please suggest me to do this. Thanks a lot, Anjali :)

Member Avatar for pavithra R
0
2K
Member Avatar for angel06

Option Explicit Dim score As Integer Private Sub Command1_Click() Dim Values(3) As ColorConstants Values(0) = vbRed Values(1) = vbBlue Values(2) = vbGreen Dim RandomNumber As ColorConstants RandomNumber = Values(Rnd * 2) Label1.BackColor = RandomNumber Randomize End Sub Private Sub Command2_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As …

Member Avatar for angel06
0
197
Member Avatar for zukushikimimemo

mov eax, 4 mov ebx, 1 mov ecx, msg1 mov edx, len1 int 80h mov eax, 3 mov ebx, 0 mov ecx, num1 mov edx, 2 int 80h mov eax, 4 mov ebx, 1 mov ecx, msg2 mov edx, len2 int 80h mov eax, 3 mov ebx, 0 mov ecx, …

0
97
Member Avatar for davidbernardino

Hello, I am trying to create a form with php that echo data like this: "echo -e “username /npassword” > filename". I created the form and php embedded code but I cant seem to create variables with the text box names. We currently have a automated guest wifi account creation …

Member Avatar for Riu 2009
0
1K
Member Avatar for mktrx

Got a problem that has completely stumped me... am hoping the combined wisdom of the forum could assist... I have a php script that enables a user to follow and unfollow items on a site... Am doing this with a table that captures basically the user's id and the item …

Member Avatar for iamthwee
0
290
Member Avatar for silversurf

Hello everyone, I am new to vb 6.0 and trying to build an inventory software. in the stock entry form I used a MSHFlexgrid, 10 text box and a add button. I want to various items in ten txtboxes and each time a click the add button it will be …

Member Avatar for AndreRet
-1
850
Member Avatar for wasim kazi

Hello, I have one CMS with fixed layout. In that I have make few changes depends on my current URL. If I am on my home page so This class given below is **div.layout-column.column-main.with-column-1.with-column-2 = width:790;** And If I am of some other page so this same class look like …

Member Avatar for wasim kazi
0
289
Member Avatar for ITshard

sorry for my english but im really so desperate. This is due next week monday, and i don't know what do to or even where to start. Our professor didn't explain this homework , she just gave us a photocopy problem, we dont have any reference to look at. soo …

Member Avatar for stultuske
0
345
Member Avatar for ms_farenheit1

I am trying to implement a JScrollPane, containing a JTextArea, whose vertical scroll bar automatically remains as the bottom when new text is added, if it is already at the bottom, and stays in place otherwise. I have found a solution that seems to work, except when I move the …

Member Avatar for NormR1
0
667
Member Avatar for HunainHafeez

how much dynamic a template could be ? dynamic , in terms of modifications !! e.g i purchase a template for my website and further i want to modify it for my own satisfaction and requirements ? that how much it could be modified ? At large extent ? or …

Member Avatar for HunainHafeez
0
153
Member Avatar for benk1

Hi everyone I have a simple piece of code thus: char userChoice = '\0'; validate:; printf("Please make a choice [y/n] \n"); //fflush (stdout) ; scanf("%c", &userChoice); if(userChoice != 'y' && userChoice != 'n' ) { printf("\nInvalid input; please enter y or n. \n "); userChoice = '\0'; goto validate; } …

Member Avatar for WaltP
0
150
Member Avatar for vishalonne

After lots of home work I came here for support and help. Please see the site[Click Here](http://www.cbsecsnip.in) on home page I have menu Computer Science and sub menu XI which open XICS.php on this page threr are few links. From those links few must work if user already logged in …

Member Avatar for diafol
0
531
Member Avatar for Dili1234

hi i'm doing a vb application to inventory mangement system Private Sub AppendItem(ByVal Major As String) myConnection = New SqlConnection(connectionstring) myConnection.Open() Dim TempData As New DataTable myCommand1 = New SqlCommand("Select Departement,Suject_Name From Major Where MajorName='" & ComboBox1.SelectedItem & "'", myConnection) myCommand1.ExecuteNonQuery() 'sqlcmd = New SqlCommand("SELECT P_Id,P_Selling_Price FROM Product_Details WHERE P_Id='" …

0
84
Member Avatar for JRCharlie

Hi I would like to learn PHP. But I can't seam to find the proper IDE so I can learn Build and debug websites. Does anyone know an Express version or free trial that I could download. Thanks in advance.

Member Avatar for JRCharlie
0
259
Member Avatar for sanjeewa.abeywardana

How can I **convert this code to csharp code**, seems to be simple but little confused. Dim Temperature As Integer = 30 Select Case Temperature Case 31 Console.WriteLine("stay in bed") Case 32 Console.WriteLine("play the lottery") Case Else Console.WriteLine("Just read the newspaper") End Select

Member Avatar for sanjeewa.abeywardana
0
88
Member Avatar for jsco2289

B)(i)Create a class file BankAccount.java under c:\myjava folder. Declare a String member type variable called accountType and a double member type variable called balance. There are three account type values allowed: "student", "basic" and "advanced" . (ii)Create a method called minimumBalance which takes one argument of type String (acccType) and …

Member Avatar for NormR1
0
231
Member Avatar for Djmann1013

I am having trouble with this code block: if($row['banned'] == 1) { header( 'Location: http://www.awsomechat.comuv.com/ban/userbanned.php' ); } elseif ($row['banned'] == 2){ header( 'Location: http://www.awsomechat.comuv.com/ban/userbanned.php' ); } Ive also tried this: if($row['banned'] == 1 or $row['banned']== 2) { header( 'Location: http://www.awsomechat.comuv.com/ban/userbanned.php' ); } But none of this works... I am trying …

Member Avatar for Djmann1013
0
165
Member Avatar for Simes

So I am working on a Traffic Simulator and I am having a fair bit of trouble with it. I need the menu to display, user chooses the option enters a value for the option and then either it loops with the menu again and they can set other options. …

Member Avatar for JamesCherrill
0
255
Member Avatar for Squidge

Ok, following from my previous thread (now resolved) i want to convert and use namespace. **headScript.php**: <?php class headScript { public function connection() { try { $dbh = new PDO("mysql:host=localhost;dbname=roundth4_rtb2", 'root', ''); // Dev return $dbh; } catch(PDOException $e) { echo "Error :- " . $e->getMessage(); die(); } } public …

Member Avatar for Squidge
0
191
Member Avatar for SnHnBoLt

#Dictionary practice def menu(): print("1. Add name and number") print("2. Print the directory") print("3. Quit") options = 0 directory = {} while options < 3 : menu() options = int(input("Enter your desired option :")) if options == 1 : print("You selected to add name and number") name = input("Enter name …

Member Avatar for TrustyTony
0
353

The End.