112 Topics

Member Avatar for
Member Avatar for HiHe

Explore the Python module bisect to search a sorted list and insert elements in the proper location in a sorted list.

Member Avatar for TrustyTony
3
622
Member Avatar for pucivogel

I am following this tutorial http://www.css-resources.com/code-for-php-photo-gallery.html to create php photo gallery but i get errors undefined index photos, categories and cy when i run this code, it gets the category names in a textarea and adds them in the db, in the output also says no database selected but i …

Member Avatar for michel.cote
1
299
Member Avatar for delta_frost

<?php $filename = $_FILES['file']['name']; $tempname = $_FILES['file']['tmp_name']; if(isset($filename)){ //echo $filename; $directory = 'E:/php_uploads/'; move_uploaded_file($tempname,$directory.$filename); echo 'Done'; } else{ echo 'No file selected'; } ?> <form method="POST" action= "fileupload.php" enctype = "multipart/form-data"> <input type="file" name="file"><br/><br/> <input type="submit" value="Submit"> </form> The enctype is correct.The element names correspond to those in the php …

Member Avatar for delta_frost
0
201
Member Avatar for Allison2009

Hi, I have an online shopping cart website, which has been indexed by Google - but not all pages. Though the submitted sitemap has more pages, Google has not indexed all the pages. It has indexed around 200 pages. How to identify the indexed and non-indexed pages by Google. Thanks …

Member Avatar for jenniferlopezus
0
238
Member Avatar for RobRTaylor

Frusterated... Should be simple. I have several forms that all do the same thing and I re-use the same basic code in all of them. But this one form is pitching a fit. I have a DataGridView that is able to read data I have saved in a local DB. …

Member Avatar for john.knapp
0
2K
Member Avatar for redcar2228

This is my code for creating a url list and Im getting an index out of range error? Please help! #! /usr/bin/env python import re TOTAL_PAGES = 619 idFile = open("listOfURLs2", "r") outFile = open("output", "w") idList = [] urlList = [] temp = "" tempStr = "" currentList = …

Member Avatar for snippsat
0
360
Member Avatar for cyberdaemon

Good day, I am havinf trouble with the pageindexchanging in my gridview here is my code; my PAgeIndexChanging code protected void gvPatientInformation_PageIndexChanging(object sender, GridViewPageEventArgs e) { GetPatientInfor(_patientInformation); gvPatientInformation.PageIndex = e.NewPageIndex; } my Method Code private void GetPatientInfor(PatientInformation _patientInformation) { gvPatientInformation.DataSource = PatientInformationBL.listPatientIformation(_patientInformation); gvPatientInformation.DataBind(); } My BLL code public static DataTable …

0
76
Member Avatar for vivosmith

Hello, I have a forum up an running at [mildaspergers.com](http://mildaspergers.com/phpbb3/index.php?sid=5fc84bc92d43cf37136682874ae1a45c), and everything is doing well, except for one thing. Myboard index button is redirecting to a photo. What should I edit in order for this to work properly?

Member Avatar for vivosmith
0
245
Member Avatar for xikhari.some1behindu

I get this issue but i dont understand it completly. Found some suggestions online but seems they depend on the source code. This is my code and i get the error where the arrow is int j; float aa=0, modanum, count=0, temp; float[] mod =null; float[] fin = null; int[] …

Member Avatar for deceptikon
0
210
Member Avatar for cussel

> hey guys, how to get all word in first index in array below and next index get last word in array 2 D??,.. example: $arr = array( array( '7'=>'repsol kawasaki honda ktm', '8'=>'kawasaki honda ktm bmw', '9'=>'honda ktm bmw ducati', '10'=>'ktm bmw ducati yamaha' ) , array( '23'=>'lamborghi ferarri …

Member Avatar for cereal
0
326
Member Avatar for nostalgia

Hello, It appears that I'm having a slight problem with a pesky ArrayIndexOutOfBoundsException when trying to assign a value to an array embedded within an object. I *think* it's because the array hasn't been instantiated before I try to add values to it's index. The purpose of the program is …

Member Avatar for richieking
0
221
Member Avatar for yat862

hi, i have a problem of Index was outside the bounds of the array. i don't understand how to amend the existing solution in my case. anyone could help me? the message error is System.IndexOutOfRangeException {"Index was outside the bounds of the array. below is the code & the error …

Member Avatar for AndreRet
0
2K
Member Avatar for makibao

<form id="form1" name="form1" method="post" action=" <?php include("connect.php"); require("search2.php"); $username = $_SESSION['email']; ?> "> <p> <input type="text" name="search" id="search" value=""/> <input type="submit" name="btnSearch" id="btnSearch" value="SEARCH" /> </p></form> search2.php <?php include("connect.php"); $username = $_SESSION['email']; $name=$_POST['search']; $query = mysql_query ("Select * from confirm_members where email = '$name'"); if(mysql_num_rows($query)==0) die ("User not found"); else …

Member Avatar for pritaeas
0
772
Member Avatar for cristian.stilpeanu.3

Hi, i have a problem of some days. I'm working to a website but when I installed it I have a very noticeable error page, I wrote: "Notice: Notice: Undefined index: user_name in C:\xampp\htdocs\index.php on line 118" How can I get rid of this writing. Thank you! It is a …

Member Avatar for pritaeas
0
268
Member Avatar for dre-logics

I use MySQL database (innodb) I use Visual Basic 2008 I have a table Employees with two fields EmpNo and Managerno ALTER TABLE Employees ADD PRIMARY KEY (EmpNo CREATE INDEX index_Managerno ON Employees (ManagerNo) How do i now IF Mysql using this index is if i do this: SELECT * …

Member Avatar for Nutster
0
264
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
147
Member Avatar for davy_yg

Form Captcha <script> function checkForm() { if (document.forms.myphpform.elements['yname'].value.length == 0) { alert('Please enter a value for the "Name" field'); return false; } if (document.forms.myphpform.elements['email'].value.length == 0) { alert('Please enter a value for the "Email" field'); return false; } if (document.forms.myphpform.elements['message'].value.length == 0) { alert('Please enter a value for the "Message" …

Member Avatar for davy_yg
0
1K
Member Avatar for 2concussions

i am just trying to populate this array with some information. i have no idea why, but i am getting: java.lang.ArrayIndexOutOfBoundsException: 0 im probably just stupid 0_o... but, here is my code: private boolean populated = false; private int blockList[][] = {}; public void update(){ if(populated == false){ int a …

Member Avatar for NormR1
0
293
Member Avatar for userIT

Given the trace program below. I basically need to store a 1 or a 0 to the corresponding `a[r[i]]` the problem is I need to be able to keep track of the index of vectors zero and one to check the last index that was used for each vector. For …

Member Avatar for userIT
0
179
Member Avatar for carol.cable.37

<?php $first = $_POST['first']; $last = $_POST['last']; $email = $_POST['email']; $phone = $_POST['phone']; $Submit = $_POST['Submit']; $first = strtolower($first); $last = strtolower($last); $first=ucfirst($first); $last=ucfirst($last); $general = " <br> Please try again ! "; $no_first = " your first name, please... "; $no_last = " your last name, please..... "; $no_phone …

Member Avatar for blocblue
0
312
Member Avatar for Misbah khan

my code gives undefine index error .. and i don't know how to solve it... i m making online testing program but every eror in every step is undefine index error... ok my html file is <html> <form action = "http://localhost/onlineexam/home.php" method = 'get'> <center><h1>WELCOME TO ONLINE EXAMINATION</h1> <br> <br> …

Member Avatar for Misbah khan
0
185
Member Avatar for jalpesh_007

I got error of ArrayIndexOutOfBounds Exception in following code. Please help me to how to solve the error.I also used String tokenizer class. import java.io.*; import java.lang.*; import java.util.Arrays; import java.io.BufferedReader; import java.io.File; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.IOException; import java.io.Reader; import java.util.StringTokenizer; public class CSV{ public static void main(String[] …

Member Avatar for JamesCherrill
0
385
Member Avatar for DAZL

Hey Guys, I'm struggeling with an idea of mine and hope there's someone here who can help me. **My idea:** A small gallery package, consisting of as few files as possible (html, css, javascript) that can read the /images folder in the same folder, and output those files to the …

Member Avatar for DAZL
1
249
Member Avatar for sonicx2218

Hey bros. I made a program that prints out random numbers in a linked list. I want to have the index number next to each of the random numbers in the list. I guess for example like: 1 25 2 123 3 56 ect. Here's m program so far, and …

Member Avatar for NormR1
0
329
Member Avatar for Ankit_Parmar

#include <stdio.h> int main() { int a[0]; int b=2; printf("%X",a); return 0; } Where ever can we use 'a[0]' means array with index zero..

Member Avatar for rubberman
0
306
Member Avatar for epson121

Hello everyone. I'm having a problem with my cookie. What I'm trying to do is this: When user logs in and checks the "remember me" checkpoint, i want to save his username to $_COOKIE['user']. [] For that I am checking whether the $rem variable is set. If this is not …

Member Avatar for epson121
0
5K
Member Avatar for heshanm

I have a login form and i want to enter username & password to log into the system. When loading the page (index.php) there was an error displayed like this. >Notice: Undefined index: msg in C:\wamp\www\Home page\new student registration\index.php on line 13 index.php <form id="form1" name="form1" method="post" action="adminloginvalidate.php"> <?php $message=$_POST["msg"]; …

Member Avatar for heshanm
0
232
Member Avatar for razamughal67

Hello everybody please tell me How to select costum index in a list in vb6 i have a listbox & a command botton & textbox example: we add some items in a listbox list1.additem = "google.com" list1.additem = "Gmail.com" list1.additem = "myspace.com" list1.additem = "youtube.com" list1.additem = "facebook.com" list1.additem = …

Member Avatar for razamughal67
0
1K
Member Avatar for straylight

Title says it all. I am looking for a way to find the values of a column within a row. I am unsuccessful at being about to create a for loop that searches each value in the row and inputs a value if it is x. For example: [CODE] there …

Member Avatar for woooee
0
165
Member Avatar for PythonIsCool

For school I have to write a program that requests a 3 part name and breaks it into a first, middle, and last name. I wrote the code but the alignment of my output is not right. I was wonderng if someone can tell me what I did wrong and …

Member Avatar for TrustyTony
0
166

The End.