- Strength to Increase Rep
- +10
- Strength to Decrease Rep
- -2
- Upvotes Received
- 178
- Posts with Upvotes
- 158
- Upvoting Members
- 89
- Downvotes Received
- 37
- Posts with Downvotes
- 25
- Downvoting Members
- 18
- Interests
- Playing guitar...
- PC Specs
- Processor: i5CPU @3.3GHz,RAM - 4GB,OS- Windows 7 ulitmate
Re: there are two erros in this:- * spelling of **FOREIGEN KEY**.Change it to "**FOREIGN KEY**" * remove comma before REFERENCES. So the final query must be like this CREATE TABLE artphoto( photonr NUMBER(10), artnr NUMBER(10) NOT NULL, filtyp VARCHAR2(3) NOT NULL, path VARCHAR2(200) NOT NULL, CONSTRAINT artphoto_photonr_pk PRIMARY KEY(photonr), CONSTRAINT … | |
Re: A better way to do this is to use loop take a variable (let it be 'a') and initialize it equal to 1. Then inside loop use this statement: [CODE] $sql1="SELECT * FROM question_master LIMIT 1 OFFSET '$a' "; 'instead of above line you can also like query as '$sql1="SELECT … | |
Re: there are two ways to do that:- 1) when you submit a form,send its options index and then on submitting form,read from url and set that as selected value country.options.selectedIndex = index_of_selected_country; and so on. Although this is not the recommended solution. 2) The best way to achieve this is … | |
Re: [CODE] <%@ page language="JAVA" contentType="text/html" %>//directive to specify that language used is java and specifying the content type <%@ page import="java.sql.*" %>//to import sql package <html> <head> <title>Database</title> </head> <body> <% String driverClass ="com.mysql.jdbc.Driver"; String connectionString="jdbc:mysql://localhost:3306/login" ; String username="root"; String password="password"; String query="INSERT into table_name values(?)" ; try{ Class.forName(driverClass) ;//to … | |
Re: Here is the difference quoted from http://www.java.com/en/download/faq/java_javascript.xml > How is JavaScript different from Java? > The JavaScript programming language, developed by Netscape, Inc., is not part of the Java platform. > JavaScript, does not create applets or stand-alone applications. In its most common form today, JavaScript resides inside HTML documents, … | |
Re: As from [this](http://stackoverflow.com/questions/10143093/origin-is-not-allowed-by-access-control-allow-origin) you can solve this by adding `<?php header('Access-Control-Allow-Origin: *'); ?>` in your header.Please check and let us know if this solved your problem. | |
Re: Take a look here.It is pure css dropdown menu http://csswizardry.com/2011/02/creating-a-pure-css-dropdown-menu/ | |
Re: And if you hit all 3/3 bats then God or hacker ??? | |
Re: you can use a trick something like this:- <?xml version="1.0" encoding="utf-8"?> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="128px" height="128px" viewBox="0 0 16 16"> <g> <animateTransform attributeName="transform" type="rotate" values="0 8 8; 45 8 8; 90 8 8; 135 8 8; 180 8 8; 225 8 8; 270 … | |
Re: wish granted ,but only in year when feb has 30 days | |
Re: Because after that they are on vacation | |
Re: Check this http://www.daniweb.com/web-development/php/threads/448925/error-sending-email-with-phpmailer#post1940914 | |
Re: You can call javascript method on onchange() event of select and you can work on your logic to redirect.Something like this:- javascript method function redirect_url(url ) { alert(url); } select tag <select size="1" name="typ" onchange="redirect_url(this.value)"> <option value="C">Coffe</option> <option value="T">Tea</option> </select> | |
Re: So to insert value to mysql there are following steps 1. make connectio to mysql using $con=mysql_connect("[server ip/address]","[user]","[password]") eg:- [CODE]$con=mysql_connect("localhost","root",""); [/CODE] 2. select the database $db=mysql_select_db("database_name",$con); eg:- [CODE]$db=mysql_select_db("employee",$con); [/CODE] 3. insert the data into database using mysql query $res=mysql_query("Insert into abc values('field1'...); eg: [CODE]$query=mysql_query("Insert into abc values('iim','manager')");[/CODE] Hopefully it's clear... … | |
Re: Check these two solutions.They might be helpful http://www.daniweb.com/hardware-and-software/microsoft-windows/windows-nt-2000-xp/threads/73876/help-laptop-screen-keeps-turning-black-but-not-off http://www.computing.net/answers/hardware/laptop-screen-shuts-off-but-computer-is-still-running/86209.html | |
Re: you can use uploadify script. Its simple and easy to use. http://www.uploadify.com , download script from here. | |
Re: Yes it is possible to do this.For example take a look at this example that i made to show next button,similarly you can create previous button.The concept is that you are using array to save to video location with name and on next click ,change the source of video and … | |
Re: Thats because of **'hi what's up'**. It contains single quotes, **'**.You must escape **'** or use double quotes. like using double quotes instead of single quote or vice versa if there is any one of them only in your data INSERT INTO tbl_inquiry( name, phone, email, subject, message ) VALUES … | |
Re: try this <?php echo ("<SCRIPT LANGUAGE='JavaScript'> window.alert('Succesfully Updated') window.location.href='http://someplace.com'; </SCRIPT>"); ?> | |
Re: dani can you increase duration of competition by 2 weeks or so.I m a bit involved in my app for now.It will take a week or two after that i will start working for this competition.Or else riahc3 ,diafol and pritaeas will take those rewards. Let me take third. :'( | |
Re: You can start by reading syntax from php manual Php manual for all syntax and methods http://php.net/manual/en/index.php For php tutorials,you can refer http://php.net/manual/en/tutorial.php Also [phpacademy](https://phpacademy.org/) if you prefer watching videos. | |
Re: What'sthe problem in that, before constructing message body for mail fetch data from database append it in message and send mail. | |
Re: In your Action page just print Value using $_POST('hack_language') <?php echo $_POST('hack_language'); ?> | |
Re: Do check using if- else statement. First check for both room and meal, otherwise check for room else meal. Give alert message in each, problem solved | |
Re: please search for cron jobs in python.Cron jobs are task to be performed at specified time.That will solve your problem.Refer [this](http://stackoverflow.com/questions/11774925/how-to-run-a-python-file-using-cron-jobs) | |
I tried using Daniweb OAuth for android application but didn't able to understand as it requires redirect url but in my case it is a standalone desktop application interacting with dani webapi's. Do i have to create a webapp and then my application instead of contacting daniweb,contact my website and … | |
Re: you can do this by storing the data in database and everytime instead of loading data from array load from database.This will solve your problem,as when you add any data,it will be added in database and on retrieving data,you will also get newly added row. | |
Re: Yes @diafol is correct,you can only iterate the result once using mysqli_fetch_array(),however if for some reason you still want to call the query again,then before calling it another time set the pointer back to the beginning using [mysqli_data_seek](http://php.net/manual/en/mysqli-result.data-seek.php)() method . So just reset the result pointer to the beginning <?php … | |
Re: Error is in line 139 and 141 Second paramter must be separated by **&** and not ?. Just replace that and your problem will be solved line 139 must be echo "<a href='?selID={$_GET['selID']}&page=$prev'>Prevous Page</a> | "; and line 141 must be echo "<a href='?selID={$_GET['selID']}&page=$next'>Next Page</a>"; | |
Re: i have not used any of them but as per what i can read from there wiki page > **CodeIgniter is loosely based on the popular Model-View-Controller development pattern. While view and controller classes are a necessary part of development under CodeIgniter, models are optional.[3]** It is advicable to separate … |