545 Posted Topics

Member Avatar for Vingklippt

$result2 = $conn->query("select * from user where username='".$username."' and passwd = sha1('".$password."')");//forgot password doesn't contain password Firstly person has forgot his password,how will he enter password. It must be $result2 = $conn->query("select * from user where username='".$username."'"); Secondly, **$password** is undefined. after line 17 add this line, $password=$row->passwd;//assuming passwd is …

Member Avatar for IIM
0
297
Member Avatar for jithinjohny

Use the mail function of php. Easy to use. http://php.net/manual/en/function.mail.php

Member Avatar for chrishea
0
163
Member Avatar for sagisgirl

Do something like this:- once login is successful store userId in session <?php session_start(); $_SESSION['userId']=$_GET['tid']; ?> And then to get user information use query:- $query_recTenantuser = "SELECT * FROM md_storage WHERE tenantID='".$_SESSION['userId']."'"; $rs_recTenantuser = mysql_query($query_recTenantuser) or die ('Query failed: ' . mysql_error(). "<br />\n $query_recTenantuser"); $recTenantuser = mysql_num_rows($rs_recTenantuser); Rest of …

Member Avatar for sagisgirl
0
202
Member Avatar for TonyG_cyprus

There is no error except that you are not getting Name.So **$row['Name']** is empty. Change the above to this(i am assuming the field "artist name" as "Name" in Database). mysql_query("CREATE VIEW list AS SELECT AlbumId,Title,Name FROM album, LEFT JOIN artist ON album.artistId = artist.ArtistId ORDER BY album.Title")or die ("no dice …

Member Avatar for TonyG_cyprus
0
159
Member Avatar for tygerwolf
Re: wifi

Countless work... apart from helping others in this forum...

Member Avatar for <M/>
0
51
Member Avatar for saurabh.mehta.33234

finally is always executed (the only exception is System.exit()). You can think of this behavior this way: * An exception is thrown * Print "catch" * Exception is caught and return value is set to 9 * Finally block gets executed.Prints value of a and return value is set to …

Member Avatar for IIM
0
163
Member Avatar for Martin C++

For String concatenate use "." . If you use +,it considers it as numeric and if it is not a valid number it will return 0. If the start of the string is a valid numeric representation, use that until we come across a character incompatible with that format Otherwise …

Member Avatar for IIM
0
103
Member Avatar for tibormarias

Look at [this](http://www.daniweb.com/web-development/php/code/351142/simple-but-powerful-paging-function#post1508939) example for pagination. Simple and understandable piece of code.

Member Avatar for diafol
0
186
Member Avatar for london-G

Even i think that it is not correct to embed mysql.It it is regarding moving application from one system to another,you can use one criteria to create a batch file or something similar and that must execute the setup of mysql and then your java application.

Member Avatar for jwenting
0
215
Member Avatar for Neha2907

@Neha - Have you checked in your DB if the data is inserted or not.If it is not inserted then was there any exception/error. Provide us your code snippets and logs.

Member Avatar for gian88r
0
186
Member Avatar for kony

Kony as for now you must refer php [manual](http://www.php.net) to learn more PHP. If you want to learn programming then start with login page.It itself is a large module in which you have to interact with DB.Maintain session,cookie etc. So for that you may try with online shopping site.

Member Avatar for diafol
0
150
Member Avatar for asifalizaman

The best way to learn is to go through php manual site http://php.net/manual/en/ It starts with basic php syntax and defines all the functions available in php and its latest happenings. As for IDE is concerned,you can install WAMP server and then use Notepad++ ,lightweight and easy to use.Select just …

Member Avatar for diafol
2
293
Member Avatar for mydreamgirl

what exactly is the problem?? I tried by putting tmz="PST","GMT","PDT","AST" and it is giving me the correct time in required format. Edit: Didn't saw james already posted this

Member Avatar for JamesCherrill
0
344
Member Avatar for Violet_82

I have checked a:visited in IE9,mozilla and chrome.It is working fine in all three.I am not sure what are you talking about <!DOCTYPE html> <html> <head> <title>Test</title> <style> a:visited {text-decoration:underline; color:#ff0000;} /* visited link */ </style> </head> <div id="myDiv"> <ul> <li><a href="#" class="myLink">ABC</a></li> <li><a href="#" class="myLink">DEF</a></li> <li><a href="#" class="myLink">GHI</a></li> <li><a …

Member Avatar for Violet_82
0
175
Member Avatar for zdneth
Member Avatar for IIM
0
255
Member Avatar for zdneth

please show your code snippet.This is for helping and fixing problem and not for completing your assignments.First show your attempts and then we will help you. As per what i understood,you need to connect your application to database . Then add or subtract it. take a look at JDBC connectivity …

Member Avatar for IIM
0
132
Member Avatar for Violet_82

**:first** is a selector http://api.jquery.com/first-selector/ take a look at all selectors in javascript http://api.jquery.com/category/selectors/ yes **:hidden** means the divs that are hidden http://api.jquery.com/hidden-selector/

Member Avatar for Violet_82
0
413
Member Avatar for ScarWars9
Member Avatar for cproger
0
296
Member Avatar for tshukela.george

<?php echo phpinfo(); ?> type phpinfo() and display the result so that we can know what is your server config. If above code works then it will be sure that php is working in your server and we can check what else might cause this problem.

Member Avatar for tshukela.george
0
194
Member Avatar for Kniggles

Below is the quote from w3 site http://www.w3.org/TR/html401/interact/forms.html#h-17.13.4.2 > The content type "application/x-www-form-urlencoded" is inefficient for sending large quantities of binary data or text containing non-ASCII characters. The content type "multipart/form-data" should be used for submitting forms that contain files, non-ASCII data, and binary data. > > The content "multipart/form-data" …

Member Avatar for Kniggles
0
480
Member Avatar for davy_yg

or you can also use javascript:- <script type="text/javascript"> function changeCSS(){ document.getElementById("container").style.height=400; } </script> simialrly you can change other properties of anf element.

Member Avatar for davy_yg
0
141
Member Avatar for kasi123
Member Avatar for cooling

you can convert date to seconds and add time by converting it into seconds.Similarly for checkout and then just check if current time doesnot lie between the two times in seconds. http://dev.mysql.com/doc/refman/5.6/en/date-and-time-functions.html#function_from-unixtime

Member Avatar for adam_k
0
1K
Member Avatar for cmabill

No.Use must not use inline css.You must prefer separating the two.Create an external css style sheet . An external style sheet is ideal when the style is applied to many pages.Each page must link to the style sheet using the <link> tag. You may use internal css when the style …

Member Avatar for TonyG_cyprus
0
271
Member Avatar for Petranilla

This question is already asked.Check [this](http://www.daniweb.com/software-development/java/threads/449543/extract-specific-amount-of-numbers-from-for-loop) There are many ways to generate unique random numbers.I am discussing two of them below:- * Write the numbers sequentially in a list structure. Shuffle it. Take the first 'n'. This uses only a single Random instance. * Another option Call Random rand = …

Member Avatar for jwenting
0
568
Member Avatar for <M/>
Member Avatar for spluskhan

1. there is difference in the name of the file.While calling "M" is capital of autocompletemain.php $("#course").autocomplete("autoCompleteMain.php", { 2. 2nd problem is of the id "**course**" that you are using Instead of "course" ,it should be the id of textbox i.e,"name". Replace this, $("#course").autocomplete("autoCompleteMain.php", { with $("#name").autocomplete("autoCompleteMain.php", { Replace the …

Member Avatar for spluskhan
0
485
Member Avatar for ChrisJ

there are many ways to do this:- * HTML5 has introduced a very useful attribute "required".If we add this attribute to any control(textbox,textarea...) ,then that field is mandatory. http://www.whatwg.org/specs/web-apps/current-work/multipage/common-input-element-attributes.html#attr-input-required * traditional javascript validation <script> var contact_name_value = document.getElementById('contact_name').value;//# not required.Semi colon missing if(contact_name_value == '') { alert("Please enter a contact …

Member Avatar for Echo89
0
149
Member Avatar for lewashby

you can do it something like this $result = mysqli_query($con, "SELECT * FROM people WHERE fname='$fName' or lname='$lName' or address='$address'"); if(!$result) { echo "MySQL Error: " . mysqli_error($con) . "\n"; } else { if(mysqli_num_rows($result)==0)//to check if it is returns 0 rows affected { echo "No rows found for this entry"; …

Member Avatar for Geffory
0
212
Member Avatar for sarathsshanker

you have to use update query. http://dev.mysql.com/doc/refman/5.0/en/update.html So your query will be something liike this, Update sales set year1='344' where Month='January'; I am assuming year1 is the field that you want to update If you want to update it only if it is not null then, Update sales set year1='344' …

Member Avatar for IIM
0
230
Member Avatar for mjsmitten

Instead of explode you can use preg_split here to split on the basis of mutiple delimiters.It will return array. http://php.net/manual/en/function.preg-split.php The first parameter is regular expression and second is data you want to split.In your case it is URL. $urlstring = preg_split( "/([,]|[\/])/", $urlstring );

Member Avatar for mjsmitten
0
159
Member Avatar for diether.silverious

the 2nd code snippet is wrong as first you are iterating for each items(although iterating is allowed only for arrays and objects) and then for particaular item ,you are inserting it n times . The first code snippet is right.use that one instead of second The correct syntax for foreach …

Member Avatar for Webville312
0
253
Member Avatar for Shodow

Take a look at dete method of PHP http://php.net/manual/en/function.date.php.You can choose any of the date format.Example of it with textbox showing its value is shown below <?php $date = date("Y/m/d"); echo "<input type='text' value='$date'>"; ?> Edit: Already shown in above post of pixelsoul.

Member Avatar for Shodow
0
105
Member Avatar for Echo89

Caelan it is not a bug it is the functionality.If you want to get rid of this ,edit your profile http://www.daniweb.com/members/edit_profile and there is option to disable Ads.Just check that box and the Ads will be hidden froum your screen.

Member Avatar for Echo89
1
349
Member Avatar for zlloyd1

Refer these sites http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager05.html http://kb2.adobe.com/cps/713/a7138026.html

Member Avatar for raiderkiller
0
186
Member Avatar for <M/>

Check your project properites. What is selected as the startup object? Refer http://social.msdn.microsoft.com/forums/en-US/csharpgeneral/thread/163761f8-cb62-419e-bf12-dab212ab34aa

Member Avatar for tinstaafl
0
191
Member Avatar for AmrMohammed

It depends on the duration,data is being updates and relationship between them. As for your case,user personal information will not change a lot,but work data might change,so it is better to seperate the two data in different table and maintain one to one mapping between two tables.

Member Avatar for IIM
0
103
Member Avatar for heartly.regis

> To find out if Gmail can handle the same 10,000 records, Gmail being an application done by a well established corporation like Google, we copied and pasted the same 10,000 records and sent an email. The email was sent to same email account. Time to send email: 44.67 seconds …

Member Avatar for IIM
0
165
Member Avatar for M4trixSh4d0w

In line number 2,you forgot to start session. <?php session_start(); if ($_POST['username'] && $_POST['password']) {

Member Avatar for M4trixSh4d0w
0
319
Member Avatar for Atlanta15Braves

take a look at mysqli quick start to understand mysqli(The mysqli extension allows you to access the functionality provided by MySQL 4.1 and above. More information about the MySQL Database server can be found at » http://www.mysql.com/) http://www.php.net/manual/en/mysqli.quickstart.php

Member Avatar for IIM
0
199
Member Avatar for bantex07

**Import from mysql command line** Two ways to import datase in mysql from .sql file 1. * Open MySQL command line client or execute mysql.exe from command prompt present in MySQL installation path. Create a new database . mysql> Create database test mysql> use test * Then import the database …

Member Avatar for bantex07
0
206
Member Avatar for cthornton71

take a look at http://www.daniweb.com/software-development/python/threads/21762/string-concatenate

Member Avatar for IIM
0
86
Member Avatar for bengngim

Instead of function format_html_end($content) { $content = str_replace("</h1></p>", "</h1>", $content); $content = str_replace("</h2></p>", "</h2>", $content); $content = str_replace("</h3></p>", "</h3>", $content); $content = str_replace("</h4></p>", "</h4>", $content); $content = str_replace("</h5></p>", "</h5>", $content); $content = str_replace("</h6></p>", "</h6>", $content); $content = str_replace("</ul></p>", "</ul>", $content); $content = str_replace("</ol></p>", "</ol>", $content); return $content; } why don't …

Member Avatar for diafol
0
287
Member Avatar for GlenRogers

$sql = "SELECT id, category FROM categories ORDER by category"; this query will return all the categories and corresponding category id.How are you getting only one id? <li><a href="category.php?cat_id=<?php echo $row['id']; ?>"><?php echo $row['category']; ?></a></li> **Close of li tag is missing** This line is used only to create anchor reference …

Member Avatar for GlenRogers
0
1K
Member Avatar for Fiorentino01^

<br/> is an HTML tag that is used to break line that is just user here to display suceeding statements from next line. As for the problem is there for root password,there might be that either you are entering wrong root password or its created. http://dev.mysql.com/doc/refman/5.0/en/adding-users.html There is 1 more …

Member Avatar for IIM
0
318
Member Avatar for IIM

I am receiving such annoying PM from mvmalderen.This must be either through Post in feedback not through PM. If you want to give suggestions give through thread. > Reply to this post as a PM to avoid further thread pollution. > > first of all i don't sit 24 hours …

Member Avatar for deceptikon
-4
247
Member Avatar for lewashby

Are you getting any error?Please write the error also what you are getting. You must add die to check if the statement executed and where exactly is the error.Instead of $result = mysqli_query($con, "SELECT fname, lname FROM person"); Use it $result = mysqli_query($con, "SELECT fname, lname FROM person") or die("query …

Member Avatar for pixelsoul
0
350
Member Avatar for bobit

> The idea of inheritance is simple but powerful: When you want to create a new class and there is already a class that includes some of the code that you want, you can derive your new class from the existing class. In doing this, you can reuse the fields …

Member Avatar for JamesCherrill
0
2K
Member Avatar for stultuske

yes you are right stultuske,even similar thing happened to me in that [thread](http://www.daniweb.com/software-development/java/threads/450000/assistance-with-building-a-sports-game-class-that-inherits-from-another#post1947230). the quote i have taken from oracle site and someone disagreed with it and downvoted. even someone downvoted the post in which i have asked for the reason why it is downvoted.check [this](http://www.daniweb.com/software-development/java/threads/450000/assistance-with-building-a-sports-game-class-that-inherits-from-another#post1947563).

Member Avatar for stultuske
0
374
Member Avatar for <M/>

There are many ways to generate unique random numbers.I am discussing two of them below:- * Write the numbers sequentially in a list structure. * Shuffle it. * Take the first 'n'. * This uses only a single Random instance. Another option Call Random rand = new Random();rand.nextInt(78) and store …

Member Avatar for <M/>
0
431

The End.