199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Sujan Shrestha

here, home.php is one controller file and i want to redirect into another controller file login.php but this code is not working. if you have any idea then plz help me... *home.php* <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class Home extends CI_Controller{ function __construct(){ parent::__construct(); $this->check_isvalidated(); …

Member Avatar for Adrian_5
0
2K
Member Avatar for GagaCode

hey all again in trying to add to make sure if my datagridview has some data in it or not before adding it to the database and here what i came up till now int i = POSDGV.Rows.Count; for (int j = 0; j < i; j++) { string strCol2 …

Member Avatar for deceptikon
0
193
Member Avatar for Nebil

Hi guys, A problem came up when i tried to copy record from the temp. table to the main one.I was copying records to two main tables but one table is empty but the other works fine.Here's the code i used: projcode = TextBox4.Text projname = TextBox5.Text description = TextBox6.Text …

Member Avatar for Nebil
0
290
Member Avatar for Maideen

Hi. I am new. I don't know how to validate certain data like emai, web site and numeric value. Here is my code which is work fine. Below is my code. Pls Help me add.php <?php include_once '../inc/header.php'; ?> <Script Language="javascript"> function change_action() { var frm_obj=document.getElementById("frm"); frm_obj.action="data.php"; } </Script> <form …

Member Avatar for diafol
0
408
Member Avatar for rory.starkweather.7

This may be kind of an ambiguous question, or might take more explanation than anyone is willing to provide, so don't feel obligated to respond. I've been using Windows since Version 3.11 came out, but I've never really thought about it from a programming viewpoint. My main Windows development application …

Member Avatar for jwenting
0
293
Member Avatar for keyboard_me

If you reason with science, technology and Engineering, you will understand that science deals with the study to understand whereas technology devices ways to use those theories and observable techniques, and then with the blueprint set, the engineer builds on the technologist's ideas/technology. Now to the issue at hand, Computer …

Member Avatar for jwenting
0
422
Member Avatar for Jade_2

Hi guys I need to make a diamond like this for my lecturer,using nested for statements. I am having troubles. Can you guys give me any tips? ty.

Member Avatar for diafol
0
183
Member Avatar for Doogledude123

I am trying to determine collision in a 2D Side Scroller environment using Rectangles. However, the way most people do it is to get the bounds of the Tile. I do not use Tile's in this case, I am just drawing Simple Full Colored Rectangles using Graphics2D. `g.drawRect(int x, int …

Member Avatar for jwenting
0
485
Member Avatar for mellixa

I cant figure out how to check the array for AND and OR. please, help, i got stuck my code: import java.util.Scanner; public class BooleanProduct import java.util.Scanner; public class BooleanProduct { public static void main(String[] args) { Scanner input = new Scanner(System.in); int[][] A = new int[10][10]; int[][] B = …

Member Avatar for JamesCherrill
0
883
Member Avatar for Doogledude123

Okay, so I have a ListView populated by an Array, which is populated by a text file. I also have 3 TextBoxes which are changed to different values in multiple Arrays using the Selected Index. My problem occurs when reloading the ListView after saving the text file. The values from …

Member Avatar for JamesCherrill
0
701
Member Avatar for akella2k9

Hi All, I am trying to create a web page with drag and drop funtionality in ASP.Net. This dynamic page should meet following requirements. [LIST] [*]The Web forms should be designed at runtime by the website user using asp.net server controls like Labels, Text Box, Button, Drop down etc. [/LIST] …

Member Avatar for vijayesh21
0
1K
Member Avatar for Vishwanath_1

Hi, I am very new to this forum. I started learning XPath queries. Can anyone please assist me on how to get elements from an xml where it doesn't contains any root element. Thanks, Vishwanath

Member Avatar for xml_looser
0
1K
Member Avatar for Start4me

I have a database with items which I want to populate to a listbox. The first image shows how its right now, and the second shows how I want the final result to look like. ![dd3aaa66fdb74cecb5cca11999b6b6dc](/attachments/small/3/dd3aaa66fdb74cecb5cca11999b6b6dc.png "align-left") ![2645978b29622fc539c0725c199c3e13](/attachments/small/3/2645978b29622fc539c0725c199c3e13.png "align-right")

Member Avatar for arun1123
0
648
Member Avatar for jonsan32

Trying to figure out how to have 2 sets of images display randomly on the same page. I know I have to rename something, but nothing I try is working. Any help would be greatly appreciated. Thanks. For now I just have the two scripts repeated back to back before …

Member Avatar for jonsan32
0
344
Member Avatar for michelemalta

I'm fairly new with arrays but from my understanding it is set up as so: datatype arrayname[#of elements] = {elements}; I was wondering why this code doesn't work typedef char alphabet[26] = {'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', …

Member Avatar for nullptr
0
295
Member Avatar for djasy

good evening people,i'm creating an application where i'd like to import and save a list of people in an excel sheet to my database in mysql, using php, And i'd like to modify it through a form using php! Can anyone have an idea or something which will help me …

Member Avatar for naidu65
0
5K
Member Avatar for centenond

Can i use $_SERVER['DOCUMENT_ROOT'] to put the path of a img? Why this wont work? $imgLocation = $_SERVER['DOCUMENT_ROOT'].'/images/logo.jpg'; echo '<img src="'.$imgLocation.'" alt="logo.jpg"';

Member Avatar for centenond
0
1K
Member Avatar for ryantroop

So... I would like to work on a program that will work on trilateration using wifi signals (as I understand it, much like Google does for indoor GPS fall-off). Sadly, I don't think I have the expertise (yet) for this, and I am looking for some input on where to …

Member Avatar for ngockhanhxxx
0
188
Member Avatar for Determination_1

I want to test SSO (single sign-on) feature using soapUI (I have free version of soapUI 4.5). I need to prepare two requests. First one will have username/password but the second webservice call should use SSO feature and should work without providing username/password. So is there any tutorial for this. …

Member Avatar for Determination_1
0
371
Member Avatar for Brittany_1

Hello everyone. I need some help on creating a slot machine. It needs to have the option of playing a three wheel & four wheel machine. I've created separate functions for those two. I think I understand the whole random generating concept, but I'm having a hard time figuring out …

Member Avatar for vmanes
0
574
Member Avatar for Pyler

I have two classes A Dog class whose constructor does not accept arguments, `public class Dog<pet> extends Animal<pet>{}` whose constructor does not accept any arguments and `public class Animal<pet>{}` whose constructor accepts one argument public class Dog<pet> extends Animal<pet>{ public Dog(){ super(/*what should go here?*/); //Constructor accepts no arguments } …

Member Avatar for stultuske
0
247
Member Avatar for mellixa

import java.util.Scanner; public class BooleanProduct { public static void main(String[] args) { Scanner input = new Scanner(System.in); int n = 10; int[][] A = new int[n][n]; int[][] B = new int[n][n]; //Fill A and B int m,n2,p,q; System.out.println("Enter number of rows for matrix A : "); m = input.nextInt(); System.out.println("Enter …

Member Avatar for stultuske
0
303
Member Avatar for Ric_1

i want to add a login attepmt counter here, that if inccorect password count==3 it will be redirected to the forgotpassword.php need some help thankyou in advance (: /* * checks if user with email "$username" and password "$password" exists * */ public function confirmUserPass($username, $password){ //$username = mysql_real_escape_string($username); /* …

Member Avatar for JorgeM
0
626
Member Avatar for mattyd

Hello. I am attempting to implement a Captcha in my form using PHP. This, at first, seemed pretty direct; Yet upon viewing the form, no Captcha is displayed, only code. I noticed in the code there is an *echo*, Line 32 (Which I do not understand why that is even …

Member Avatar for mattyd
0
169
Member Avatar for tony75

Hi Please I need your help with this script. I have an logfile.xml and I need to picks the file names of the path but not duplicate and writes them into a bat file, like copy %windiw&\system32\<filename> %1% Output example for my .bat file should look like copy %windiw&\system32\ dbghelp.dll …

Member Avatar for tony75
0
1K
Member Avatar for powerson65

Hi i am trying to perform a search on a json file called PCproducts.json which has in it various arrays with other data in it.I have seen various examples but seems that either i am doing something wrong in the code or calling the file in the wrong way. This …

Member Avatar for Purkinje
0
3K
Member Avatar for Tinnin

Hi All, I'm trying to put together a "fade in", "fade out" segment for user comments on a website. The array of comments with key=>value (memberName=>comment) comes from php. I'm looping through using jQuery like so; $(document).ready(function(){ function swap() { <?php foreach ($memberTestimonials as $member=>$testimonial) : ?> $('#testimonialMessage').fadeIn(5000); $('#testimonialMessage').html("<p><?php echo …

Member Avatar for Tinnin
0
367
Member Avatar for jcomputing

I am new to drupal and im on practicing the product. How would someone add a button on a page using the WYSIWYG without having to have any HTML or CSS knowledge. I am confused. Kind Regards, Jonathan

Member Avatar for nickgs
0
111
Member Avatar for castajiz_2

Hy guys, I managed to upload my winzip archive online and unzip it. However I can not access my website (I have the Default.aspx file which should be automatically recognized as the startup page, and lots of other files that go with the webapplication upload) however I get an error …

Member Avatar for JorgeM
0
237
Member Avatar for Sudhanshu_2

hi ! i ve just started doing mysql. i am making a web application in which employees database is reqiured to be shown in the table. i ve made a database name "educrm" and table name is "info", which i ve done in mysql through xampp(phpMyAdmin). i am showing u …

Member Avatar for Sudhanshu_2
0
344
Member Avatar for mark103

Hi all, I need your help with my PHP, I'm working on the date and time format especially the year, month, day date, hours, minutes and seconds. I have got a little problem with the day date. Most of the day date are correct, but some of them are not …

Member Avatar for diafol
0
312
Member Avatar for chaitu11

error ------->Notice: Undefined variable: result in C:\wamp\www\ <?php include(db.php); ?> <table> <tr> <td>Select Project:*</td> <td> <select name="project_id" id="project_id"> <?php echo project_name($con); ?> </select> </td></tr> </table> function project_name($con){ $select = mysqli_query($con,"select projects.project_id, projects.project_name, user_proj.user_id, user_proj.project_id from projects projects, users_projects user_proj where projects.project_id = user_proj.project_id and user_proj.user_id ='".$_SESSION['user_id']."'"); while($row = mysqli_fetch_array($select)){ $result …

Member Avatar for chaitu11
0
126
Member Avatar for nileshbhanu

<?php $host = "localhost"; $user = "root"; $pass = ""; $databaseName = "foresight"; $tableName = "userinfo"; $con = mysql_connect($host,$user,$pass); $dbs = mysql_select_db($databaseName, $con); $result = mysql_query("SELECT * FROM $tableName where flag != 1"); //query $email = mysql_fetch_row($result); //fetch result mysql_close( $con ); ?> <?php $connection = mysql_connect("192.232.240.245","root","causealmedus-1608"); if (!$connection) { …

Member Avatar for veedeoo
0
2K
Member Avatar for Rahman_1

I have a list of id like this from mysql JM.1 JM.2 JM.2.1 JM.2.2 JM.2.1.0 JM.2.1.1 JM.3 ... ...etc I want to make a display as well JM.1 JM.2 ---JM.2.1 ---JM.2.2 ---------JM.2.1.0 ---------JM.2.1.1 JM.3 ... ...etc How to display using PHP and How To using CSS like that, Or is …

Member Avatar for diafol
0
251
Member Avatar for abaddon2031

I have a very large csv file that had different values for certian fields and im wanting to split it up so that each of the different values gets put into its own csv file for example all of the fields whos value is 1110 would get read and written …

Member Avatar for rrashkin
0
234
Member Avatar for riahc3

In MySQL server, I want to do a trigger that checks when a row inserted, if the row has the previous value in column A than the previous row, it should delete it. Im a little forgetful on how to check this correctly so if someone could lend a hand, …

Member Avatar for riahc3
0
170
Member Avatar for Jake_4

I am new to C++ and i don't understant this error message i am recieving. Could you show me the solution? ([Error] name lookup of 'n' changed for ISO 'for' scoping [-fpermissive]) line 25, col 17 (the 'n' is the problem) #include <cstdlib> #include <iostream> #include <math.h> #include "dp_lib.h" using …

Member Avatar for Labdabeta
0
7K
Member Avatar for davidjennings

Hi I am trying to convert the following mysql function to mysqli. Thanks in advance David <?php /*------------------------------------------------- This class contains generic database functions to view, add, edit and delete all facets of a database -------------------------------------------------*/ require_once ("sitesettings.php"); class Database extends SiteSettings { var $Query; var $Connection; function Database() { …

Member Avatar for diafol
0
494
Member Avatar for mohan@nano

i need a combinations for the required and optional fields For Eg: required field [1,2,3] optional field [1,2,3,4,5] I have a textbox for selecting the titles. when i enter the textbox value as 4 for the combinations i should get result as [1,2,3,4] and [1,2,3,5] .. the [1,2,3] from the …

Member Avatar for mohan@nano
0
150
Member Avatar for fakehealer

I have a 5 listview listview1 has two columns listview2 has one column listview3 has one column listview4 has one column listview5 has five column now i want this scenario in every column of listview5 in listview5 columns first column of listview5 is equal to listview1 first column the second …

Member Avatar for JobPencil
0
455
Member Avatar for Maideen

Hi I have another issue in Update. Could not be updated. pls help me if (isset($_POST['update']) && $_POST['update'] != "" ) { $id=$_POST["id"]; $name = $_POST["name"]; $address = $_POST["address"]; $tel = $_POST["tel"]; $fax = $_POST["fax"]; $email = $_POST["email"]; $website = $_POST["website"]; $type = $_POST["type"]; try { $sql="UPDATE bk_customer SET name='$name',address='$address', …

Member Avatar for Maideen
0
158
Member Avatar for bignobela

**what can i do with this errors?please help me! thanks** >#ifndef WS2811_h >#define WS2811_h >#include <avr/io.h> >#include <util/delay.h> >#include <WS2811.h> **Error 1 unterminated #ifndef** >typedef struct __attribute__ ((__packed__)) { > uint8_t r; > uint8_t g; > uint8_t b; >} RGB_t; **Error 2 expected ':', ',', ';', '}' or '__attribute__' before …

Member Avatar for sepp2k
0
176
Member Avatar for PeterSodborg

Hi There. Im doing a beginner project here in my studie. So here is the thing. I have a txt file, where there are words in different language. The user must quess the word in his language and if he dosen´t know the word, he should search for it. I´ve …

Member Avatar for PeterSodborg
0
300
Member Avatar for daniel1977

I have a question about classes and header files. As I see the trend of reusing classes, I would like to start building the classes in their own file, and be able to call it, and use(#include "class.h") to include them. I am a little bit confused because I understood …

Member Avatar for rubberman
0
161
Member Avatar for Sifiso21031085
Member Avatar for rory.starkweather.7

Just a quick question, and I should know the answer, but can't remember it. You use Ctrl-K B Ctrl-K K to block text for moving, copying, etc. How do you get rid of the highlighting when you are done?

Member Avatar for jwenting
0
383
Member Avatar for sitidahleeya

Hello, could anyone here please review this code: > the deleteEntry () function are not well working. I dunno how to solve this. #include <stdlib.h> #include <stdio.h> #include <string.h> struct Node { char firstName [15]; char lastName [15]; char Number [15]; char searchName [15]; struct Node *next; } ; struct …

Member Avatar for Banfa
0
204
Member Avatar for ray100

I am new to PHP and I am having some problems and I am hoping someone can point me in the right direction. Here is what I need to do: Create a Web Form for uploading pictures for a high school reunion. The form should have text input fields for …

Member Avatar for sikander123
0
803
Member Avatar for riahc3

I store "BYTE[]" type data into a BLOB. It stores it perfectly, the data being represented by hexadecimal pairs when I try to view it in MySQL. Now I want to convert that hexadecimal pairs into string. All the data is "simple" data such as strsing, intesger, floats, e the …

Member Avatar for riahc3
0
234
Member Avatar for RainaAnja

how to order rows in pl/sql? i have a table of numbers, i want to order in ascending order if id of table is odd and descending if id is even

Member Avatar for Alberto Bucur
0
320

The End.