26 Topics
I am getting this error while trying to login to my school managment software.It gives error message when i dont write anything in username and password but when i type correct login details it gives this error An unhandled exception of type 'System.Data.SqlClient.SqlException' occurred in System.Data.dll Additional information: A connection … | |
I have a problem in this code .this code is for adding question to database.please advise thanks in advance. <?php include('includes/header.html'); ?> <div class="row"> <div class="col-md-offset-2 col-md-8"> <h1>Add Quiz</h1> <form action="process_quizAdd.php" method="post"> <div class="form-group"> <label for="question">Ask Question</label> <input type="text" class="form-control" id="question" name="question" placeholder="Enter your question here"> </div> <div class="form-group"> <label … | |
I dont know where i am going wrong tried to solove this but cant Index.php <form class="form-horizontal" role="form" method="post" action="index.php"> <div class="form-group"> <label for="name" class="col-sm-2 control-label">Name</label> <div class="col-sm-10"> <input type="text" class="form-control" id="name" name="name" placeholder="First & Last Name" value="<?php echo htmlspecialchars($_POST['name']); ?>"> <?php echo "<p class='text-danger'>$errName</p>";?> </div> </div> <div class="form-group"> <label … ![]() | |
If i delete recored 1 next when i want to view the table i shall see recored 1 deleted and in that place recored 2 shall be named as recored one.By record i mean id <?php //var_dump($_POST); i used it to check if $_POST array contains the values or not. … | |
When i came on Daniweb,i was just learning newbie.Daniweb gave me confidence .How? whenever i faced any problem i knew there is someone over their who can help me out ,so i knew there is no need of a teacher for me.I knew i dont need to get disappointed if … | |
<?php $height = 100; for ($i=0; $i<$height; $i++){echo str_repeat(' ',($height-$i)).str_repeat('*',$i).'<br />';} ?> May you Daniweb people Grow Like this one. | |
i am missing something <?php $target = "images/dars/"; $target = $target . basename( $_FILES['uploaded']['name']) ; $ok=1; if (file_exists($_FILES['uploaded']['tmp_name'])) { echo "Sorry, file already exists."; $Ok = 0;} //This is our limit file type condition if ($target!=="image/jpg") { echo "You may only upload jpg files.<br>"; $ok=0; } //Here we check that … | |
(1)You have a PHP 1 dimensional array. Please write a PHP function that takes 1 array as its parameter and returns an array. The function must delete values in the input array that shows up 3 times or more? For example, if you give the function array(1, 3, 5, 2, … ![]() | |
<?php include 'Classes/PHPExcel.php'; include 'Classes/PHPExcel/Writer/Excel2007.php'; include 'Classes/PHPExcel/IOFactory.php'; require_once 'Spreadsheet\Excel/Writer.php' ; require_once 'Spreadsheet\Excel\Writer/Workbook.php' ; //E:\Program Files\EasyPHP-DevServer-14.1VC11\data\localweb\generer\Spreadsheet\Excel\Writer try { echo date('H:i:s') . " Create new PHPExcel object\n"; echo "redderr " ; $data = new Spreadsheet_Excel_Reader("GenerationDesNoeuds.xls"); $data->dump($row_numbers=false,$col_letters=false,$sheet=0,$table_class='excel') $workbook = new Spreadsheet_Excel_Writer('GenerationDesNoeuds.xls'); $worksheet =& $workbook->addWorksheet('My first worksheet'); if (PEAR::isError($worksheet)) { die($worksheet->getMessage()); } $workbook->close(); exit … | |
I have created three tables used dataset to generate fields when i enter data it does get stored but when i close application and then reopen data doesn't show. | |
I am trying to make a form in vb and connect that to database .First of all i created a databse and then opened new project and tried to connect that database to form. file new--->try____>project--->add new item---->Service based databse--dataset---->finish step2----->in databse explored right clicked on table and Add table … | |
The below mentioned code uses css3 to develop drop down menu .I am unable to solove a problem which crops up while i click sub2 h4 menu it disappeare below body text can anybody help .Thanks in advance. <style> body,,container,h1,navmenu,ul,sub1,sub2,darrow,rarrow,header,leftnav,rightnav,footer { margin:0px; padding:0px; } #container { position:absolute; background-color:#FFF; left: 136px; … | |
My customer wants to integrate his software with a website and whenever he updates offline store it shall reflect on website software.Is it possible if yes please reply. Thanks in Advance ![]() | |
<label class='colwidth' for='selectc' >Select Courses*: </label> <form action="send.php" name="course" id="states"method="post"> <Select name="States" id="State" style="width:40px;" > <option value=></option> <option value="1">HTML 5</option> <option value="2">JQuery</option> <option value="android">American Samoa</option> <option value="flash">Flash</option> <option value="flex">Flex</option> <option value="javascript">Javascript</option> </Select> <input type='submit' name='course' value='Submit' /> </form> And my php file is this <?php //Place state array at the … | |
i have three entries in phpmyadmin id name and image i want to upload image from the form into database and display that back into the form where from i am uploading it.I get this error PHP Warning: mysql_insert_id() expects parameter 1 to be resource, null given in D:\path\to\sitename\httpdocs\sql\uploadimage.php on … | |
include_once 'PATH/TO/swift_required.php'; //put info into an array to send to the function $info = array( 'username' => $username, 'email' => $email, 'key' => $key ); //send the email if(send_email($info)){ //email sent $action['result'] = 'success'; array_push($text,'Thanks for signing up. Please check your email for confirmation!'); }else{ $action['result'] = 'error'; array_push($text,'Could not … | |
I want to make it create the upload folder by itself.right now it creates the thumbs and so but I want the script to create the folder automatically <?php function createThumbs($pathToImages, $pathToThumbs, $thumbWidth) { $dir = opendir($pathToImages); while(false !== ($fname = readdir($dir))) { $info = pathinfo($pathToImages . $fname); if( strtolower($info['extension']) … | |
'the code is working properly only problem with this code is when the first line ends in excel and data is inserted in next Row "instead of inserting another row it copies the same content which is inseted last time in form " | |
I HAVE MS ACCESS DATABASE OF 'STUDENTS' containing Their roll no's, names, min marks and max marks. As like schools publish results on their webistes, there is a text box in which roll no. is entered and the command button for searching the whole record of roll no. entered in … | |
I want to know how M/S ACCESS database can be connected to html page hosted on local host | |
How to link MS Access Database with an HTML Page...? If both data base and webserver are on same server. | |
what is wrong here? [CODE]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> </head> <body> <?php session_start(); $user = $_SESSION ['username']; if ($user) { //user is logged in if ($_POST['submit']) { $oldpassword = md5($_POST['oldpassword']); $newpassword= md5($_POST['newpassword']); $repeatnewpassword = md5($_POST['repeatnewpassword']); //connect db … | |
see this code [CODE]<?php $username = $_POST['username']; $password = $_POST['password']; if (isset($username,$password)) { $connect = mysql_connect ("localhost","root",""); mysql_select_db("phplogin"); $query = mysql_query("SELECT * FROM `users` WHERE username ='$username' and password='$password'"); $numrows=mysql_num_rows($query); if ($numrows!=0) { while($row = mysql_fetch_assoc($query)) { $dbusername = $row ['username']; $dbpassword = $row ['password']; } if ($dbusername=='username'&&$dbpassword=='password') { echo … ![]() | |
EVERYTHING IS OK DONT KNOW WHY IT DOSENT WORK I THINK THERE IS PROBLEM IN 'PATH' IT SHOWS ERROR ON LINE 27 NEAR </td> [CODE]<html> <table width='70%' align='center'> <tr> <td> <img src='inc/b.png'> </td> </tr> </table> <table width='20%' align='center'> <tr> <td> <a href='index.php'>Home</a><br> <a href='index.php?page=tutorials'>Tutorials</a> </td> <td width='80%'> <?php $page=$_GET['page']; if … | |
newbee i get the following error in the below mentioned code: Parse error: parse error in C:\wamp\www\webdesigning1\webdesigning1\loginsession\login.php on line 25 [code] <?php $username = $_post ['username']; $password = $_post ['password']; if ($username&&$password) { $connect = mysql_connect {"localhost","root","webdesigning1") or die ("couldnt connect to mysql data base "); mysql_select_db("phplogin") or die("couldnt find … |
The End.