52,566 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Jake.20

<?php //start php tag //include connect.php page for database connection Include('dbConnection.php'); //if submit is not blanked i.e. it is clicked. // var_dump($_REQUEST); session_start(); $errCount = 0; $user = $_POST['usernameTbx']; $pass = $_POST['passwordTbx']; if(isset($_REQUEST['submit'])!='') { //VALIDATE USERNAME TEXTBOX if($_REQUEST['usernameTbx']=='') { $errCount += 1; $_SESSION['error'] += array('usernameTbx' => "Username cannot be empty"); …

Web Development php
Member Avatar for Ketul_1
0
362
Member Avatar for centenond

Could some 1 please tell how to do timestamps that not rely on users computer? time(); and UNIX_TIMESTAMP() seems to rely on users pc Thanks

Web Development php
Member Avatar for diafol
0
438
Member Avatar for Paul_26

Hello i try to update the Image using Update Query in MySQL here's the code $pic = $_FILES['photo']['name']; $sql = "UPDATE `std_login` SET `imagename` = '$pic' WHERE `std_id_no` = '$std_id'"; the File upload works, but not Stored in Database. what to do? help me please.

Web Development image mysql php
Member Avatar for thirsty.soul
0
2K
Member Avatar for thirsty.soul

Hello DaniWeb, I am working on project in which admin generates dynamic query by selecting value from the First dropdown(program) then second dropdown (semester). The concept is that For example: if admin select "MSCS" from the first dropdown list and "3" from the second dropdown list. it should populate all …

Web Development php
Member Avatar for thirsty.soul
0
228
Member Avatar for eahdbz12

I need to get the list of diagnosed disease of the patient by choosing his name in the combo box,how can I do that? This is my code. <select name="pname" class="textfields" id="model" style="width:180px;" onchange="getVal1();"> <option id="0" >--Select Patient Name--</option> <?php $con=mysqli_connect("localhost","root","","dbnpatient"); if (mysqli_connect_errno()){ echo "Failed to connect to MySQL: " …

Web Development php
Member Avatar for thirsty.soul
0
220
Member Avatar for Koh_1

Dear all, May I know what is the problem for my source code. I let the user to choose the Quarter and Subdept. But when the user choose one of the Subdept, it will show this error Expected '}' at line (var rows = eval('(' + xmlhttp.responseText + ')');) May …

Web Development javascript open-source xml
Member Avatar for Koh_1
0
213
Member Avatar for Nicholas_5

Hello, I am currently completing a side project. The biggest ideal of it all has to do with a dynamic drop down box. I have heard and seen of the 'auto complete textbox' feature by using ajax/jquery toolkits. That is what I'm looking for, but I was wondering if there …

Web Development dataset open-source sql
Member Avatar for hericles
0
298
Member Avatar for Adam_16

I am new to programming and I have learned the language javascript and jquery but I can't actually make things work. In other words I know all the parts of the language, but I can't turn ideas into code. Does anybody have ideas on how to learn to code ideas?

Web Development javascript javascript-jquery
Member Avatar for Adam_16
0
91
Member Avatar for mayyubiradar

Hello All, I have searched every forum and google etc but nothing directed me in right path. Requirement: I am using a COM object which can be initialized only once. But, when I try with webapi the first run goes fine and the rest fails as the COM object does …

Member Avatar for pritaeas
0
1K
Member Avatar for asheesh.mehta.54

<?php session_start(); mysql_connect("localhost","root",""); mysql_select_db("secure"); $name = $_POST['n']; $address = $_POST['x']; $order = "INSERT INTO user VALUES('$name','$address')"; if($result) { echo("Input data is succeed");} else { echo("Input data is fail");} ?> Error: No base was selected

Web Development php
Member Avatar for diafol
0
209
Member Avatar for mark.giles.14

Should apostrophe's be stored from a form into a database as ’ or as is ' If Im pasting articles into a database from another website do I need to convert the string on posting or leave them as it is.

Web Development php
Member Avatar for mark.giles.14
0
153
Member Avatar for Webville312

Dear all, I have this project that I was working on, and I put it on hold. Now I have revived it (Anyway that is not the issue). The issue is that I record students' information and record their entry class; However, as time goes on, the students either gets …

Web Development php
Member Avatar for Webville312
0
1K
Member Avatar for Kalaivani Nair

Hi everyone.. I'm using a very simple code to remove an item from session array. I just jave no idea why it returns SQL error like this in another page that initiated the deletion: You have an error in your SQL syntax; check the manual that corresponds to your MySQL …

Web Development php session
Member Avatar for Kalaivani Nair
0
358
Member Avatar for iConqueror

I have a form that asks the user to enter in an exam id that they want to delete from the exam table in the DB. The problem I am having is that even if the user enters in an id that does not match in the DB the script …

Web Development mysql php
Member Avatar for diafol
0
277
Member Avatar for guyinpv

I am needing to build a custom portal for very specific needs in my client. They work with dozens of outside contractors and so the basic idea is that the portal will have separate login accounts for each person, including the CEO, accountant, IT, etc. Within each person's "home", they …

Web Development cms finance php promotion sharepoint
Member Avatar for iamthwee
0
318
Member Avatar for conorsingerline

Hello, Is there anywhere on the web that offers a good starting place to learn ASP.NET? I am taking a five day course next month and want to get a better understanding and practice before taking the course. Any suggestions would help. Thanks, Connor Singerline

Web Development asp asp.net
Member Avatar for portjm
0
309
Member Avatar for Sgo_1

How to create web.config get root domain, don't have folder?

Web Development asp.net
Member Avatar for gudegjawa
0
90
Member Avatar for morfious90

I'm done with theory portion. i want to make real time project. which has basic most used asp.net functionalists. Not very complex project not very simple .. i want project which store in database.fetch data from database show results uses gridview. use sessions,cookies,login.Where login gets expire after sometime or after …

Web Development asp asp.net
Member Avatar for gudegjawa
0
215
Member Avatar for Maideen

Hi I did the stored procedure in mssql 2012. working fine in server. I have an issue that I need the output of my SP into HTML Report Format in aspx.page with Sub and Grand Total I no need GridView Pls advice Maideen My SP SET ANSI_NULLS ON GO SET …

Web Development asp.net html-css mssql
Member Avatar for gudegjawa
0
283
Member Avatar for Bibhakar

I have created a sql database table country with country name and country code. I have selected only country name in the drop down list. Now I want to insert the country code in the database using button.

Web Development asp.net
Member Avatar for gudegjawa
0
98
Member Avatar for mokshi

Hi I need to generate six tables one by one but i am not able to generate with proper alignment its running out of page,I also checked pageheight,but its not working,My code is as follows and its very urgent some expert please hep me out in this issue.Thanks in advance …

Web Development pdf php
Member Avatar for cereal
0
666
Member Avatar for kingston22

Hi, I'm new to web development sector. Can anyone suggest me some tips or blogs to gain information about the web development with emerging ideas and tricks.

Web Development php
Member Avatar for JorgeM
0
301
Member Avatar for Yorkiebar14

Hello, First off, this is probably not the right section, but the question is asking which language I should choose... so I don't know which forum topic it should go under... I am looking for a solution which would allow someone using an online panel running on my web server …

Member Avatar for veedeoo
0
298
Member Avatar for ianian944

Hi I am getting a **HTTP Status 500 - An exception occurred processing JSP page /registration.jsp at line 15** error. The page is a registration jsp page that submits the following parametres into the database. However there are no hints in Eclipse as to what caused the error. Can someone …

Web Development java-jsp postgresql session
Member Avatar for jwenting
0
303
Member Avatar for hriti

hello i want to display my pdf file on same page when i click on left side ...pdf will open in right div how i will do that???

Web Development display pdf php
Member Avatar for hriti
0
271
Member Avatar for iConqueror

I am learning about cross-side scripting and have made a simple html page along with a php page to return the data entered <!DOCTYPE html> <html> <head> <title>Inject</title> </head> <body> <form name = "MyForm" id = "MyForm" method = "POST" action = "handle.php"> <label name = "MyLabel" id = "MyLabel" …

Web Development
Member Avatar for hericles
0
162
Member Avatar for jelly46

I have managed to put together a [responsive menu](http://jsfiddle.net/c2webdev/Pb8Ts/1/) with the help from the internet. I've need it to sit in the footer as well, but to be controlled sepratley, I have copied it and placed it in the footer but I can't seem to get it right. Can you …

Web Development javascript
Member Avatar for jelly46
0
153
Member Avatar for thirsty.soul

Hello DaniWeb. I want to generate dynamic table for my cources table. I have tried this code but the header(semester) seems not to be working. <section class="entry-content"> <?php $counter=1; $slect="Select * from mcs"; $qry= mysql_query($slect); while($row=mysql_fetch_row($qry)) { if($counter==$row[1]) { print "<div class='heading vcMsg'> <h3>SEMESTER $row[1] </h3> </div> <div class='column message-column'> …

Web Development php
Member Avatar for thirsty.soul
0
195
Member Avatar for nikk8a

Hi Friends, Working with communication between a child javascript window and parent jsp function, I am trying to access a function defined in the parent jsp from its child window which is a separate js file. This logic works fine in IE, but breaks in Chrome. * Parent function: multiCreateCallback() …

Web Development html-css javascript
Member Avatar for nikk8a
0
1K
Member Avatar for richardsaras

Hello Everyone, I want to develop a E-commerce website development so i wanted to know best platform for development my website . Guys share your views with us Thanks

Web Development cms
Member Avatar for veedeoo
0
195
Member Avatar for sushmaja.arumalla.9

Hi., I'm new to php using yii framework.The radiobuttons in the radio buttonlist are not displayed in IE9 and above.The code written is as follows. The radio buttons are displayed well in all the remaining browsers and also below IE-9(even not in IE-9). how to resolve this issue. <div class="services_opts"> …

Web Development gui php web-browser
Member Avatar for hericles
0
259
Member Avatar for david.roun.7

Hi all. I'm writing my first javascript game. It's a role playing game where the user fights an Ogre, and not elaborate at all. I'd like the game to end when the Ogre's life is at zero OR the users life is at zero. I can't figure out how to …

Web Development javascript
Member Avatar for david.roun.7
0
293
Member Avatar for brenton_77

Guys, I have just finished building a web application but am stumped on one bit of code. Bascially I need to modify the <authorization> section of the web.config file via my .aspx page. My current C# code is below and does work in adding a user, however it adds it …

Web Development asp.net
Member Avatar for ruisantos78
0
880
Member Avatar for nadiam

<?php if(isset($_POST['login'])) { require 'connection.php'; include 'password.php'; $email = $_POST['email']; $password = $_POST['pass']; $query = $dbh->prepare("SELECT id,name,email,password FROM users WHERE email = :email"); $query->bindParam(':email', $email, PDO::PARAM_STR); $query->execute(); $userData = $query->fetch(PDO::FETCH_ASSOC); $userEmail = $userData['email']; $hash = $userData['password']; if(password_verify($password, $hash) && $email == $userEmail) { session_start(); $_SESSION['sess_user_id'] = $userData['id']; $_SESSION['sess_name'] = $userData['name']; …

Web Development github mysql php
Member Avatar for thirsty.soul
0
314
Member Avatar for brugernavn

Hello, PHP gives me wrong calculation results. !? Example, PHP says that: (47,60*554,82)/100 = 263,7 The right result is: 264 My code: function kurs_usd($value) { // in use (usd to dkk) $kurs = mysql_fetch_array(mysql_query("SELECT kurs, time FROM pvs.kurs WHERE id = 'usd'")); if(time() >= $kurs['time']) { $data = explode("\n", file_get_contents("http://www.nationalbanken.dk/_vti_bin/DN/DataService.svc/CurrencyRatesXML?lang=da")); …

Web Development php
Member Avatar for brugernavn
0
622
Member Avatar for toxicandy

So I have a website that will upload a volunteer html form to our php database, I have most of the PHP working but a few main parts. Part1: PDOStatement::execute(): SQLSTATE[HY093]: Invalid parameter number: number of bound variables does not match number of tokens in /home/petrzilk/public_html/Database/update.php on line 192 I …

Web Development php
Member Avatar for pritaeas
0
180
Member Avatar for Vishnu_4

Hi, Am working on hooks wit codeigniter, am getting an error after applying hooks like "This webpage has a redirect loop". My hooks.php file : $hook['post_controller_constructor'] = array( 'class' => 'SessionData', 'function' => 'initializeData', 'filename' => 'auth.php', 'filepath' => 'hooks', 'params' => array() ); auth.php file: <?php class SessionData{ var …

Web Development php php-codeigniter session
Member Avatar for veedeoo
0
463
Member Avatar for fheppell

How would I go about appending a character to the end of every line except for the last line? The script won't know the length of the variable, as the last ten lines are loaded via tail. Thanks!

Web Development php
Member Avatar for arunmagar
0
172
Member Avatar for krunal1986

Hello, I have field in db table which have real datatype in SQL 2005. I want to convert it into time (HH:MM) format and add to another time. ex: 0.3 (convert it to 00:30) and want to add into 17:45 so i can get 18:15 0.45(convert it to 00:45) and …

Web Development asp.net sql
Member Avatar for krunal1986
0
135
Member Avatar for divyakrishnan

Hi.. I want to open an existing popup and append the content to the pop up. I have used the following 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> <script> function disimage() { var WindowObject = window.open('p1.html', "PrintWindow", "width=750,height=650,top=50,left=50,toolbars=no,scrollbars=yes,status=no,resizable=yes"); …

Web Development javascript
Member Avatar for divyakrishnan
0
207
Member Avatar for safi.najjar1

Hey folks, I've found 4 ways to call static methods and I'm confued about them. The ways are: **1- className::function() 2- $this->function() 3- self::function() 4- static::function()** so: *1-What are the differences between all of them? 2-What's the main reason for using static methods against non-static methods?*

Web Development php
Member Avatar for veedeoo
0
233
Member Avatar for dhani09

I'm trying to push items into an array. Each time a user clicks a book link, the id of the book is supposed to be added to an array.(The name and id of the book are pulled from the database.) But when i push a new book id, the existing …

Web Development php
Member Avatar for dhani09
0
165
Member Avatar for SimonIoa

Does anybody sees a fault in this? both codes are in the same file. It seems it doesnt gets in the javascript/ajax script because the alert doesnt work but i cant figure out why? <form method="post" enctype="text/plain"> <textarea name="update_press" id="update_press"></textarea> <input type="submit" name="press_button" class="press_button" id="press_button" value="Submit"> </form> <SCRIPT> $(".press_button").click(function() { …

Web Development html-css javascript
Member Avatar for iamthwee
0
302
Member Avatar for jmay1327

I have a grid that I am trying to move the grid rows either up or down based on button click. Here is what I have so far. Protected Sub imgBtnMoveUp_Click(ByVal sender As Object, ByVal e As System.Web.UI.ImageClickEventArgs) Dim imgBtn As ImageButton Dim FirstRow As GridViewRow = gvQuoteSo.Rows(0) Dim btnUp …

Web Development asp.net vb.net
Member Avatar for AleMonteiro
0
294
Member Avatar for jamojo

Hi Everyone, I have a javascript function below: function submitUserInfo() { if (myForm.validator.validate()) { var data = $('get-user-info').serialize(true); var params = data; var url = 'http://www.mysite/engine/'; var request = new Ajax.Request(url, { method: 'post', parameters: params, onSuccess: function (transport) { //alert(transport.responseText); $('paywall-img').innerHTML = ''; $('paywall-img').insert(transport.responseText); $('paywall-img').insert('<button class="button close-pw"><span>Cancel</span></button>'); }.bind(this), onFailure: …

Web Development gui javascript javascript-jquery
Member Avatar for AleMonteiro
0
260
Member Avatar for london-G

Hello, I have installed glassfish server with netbeans. I have created a new JDBC Connection Pool and when I ping it I get error message "Ping Connection Pool failed for MyDatabae. Class name is wrong or classpath is not set for : com.mysql.jdbc.Driver Please check the server.log for more details." …

Web Development java-jsp
Member Avatar for peter_budo
0
132
Member Avatar for IWDesigns

hi, i have a site built in CI and i have integrated a js/jq image slider into the index page. i linked all the files to the correct places but for some reason the js isnt working? some of the fonts in the slider are controled by js files, and …

Web Development image javascript
Member Avatar for Raj Kumar_1
0
709
Member Avatar for Sumith Asanka

Dear All i want to load some data to grid view (which is not existing in the database currently) and do some chages (putting tax rates etc) and caluculate totals and after all changes done to update them on the database, where can i keep those data temporaly ? and …

Web Development asp.net
Member Avatar for Sumith Asanka
0
392
Member Avatar for mwenyenia07

/////Get gl accounts class///// $sql_class = "SELECT cid,class_name FROM 0_chart_class WHERE cid>=3 ORDER BY cid ASC"; $result_class = mysql_query($sql_class) or die("Error in query: $sql_project.".mysql_error()); echo "<TABLE class='swPrpTopMenu'>"; echo "<th>Account Code</th><th>Name</th><th>Amount</th>"; while($row_class=mysql_fetch_array($result_class )) { $c_id=$row_class['cid']; $c_name=$row_class['class_name']; echo "<tr><td>$c_name</td></tr>"; ////////get accounts $sql_accounts="select ct.name,ct.class_id,cm.account_code,cm.account_name FROM 0_chart_types ct,0_chart_master cm WHERE ct.id=cm.account_type AND ct.class_id='$c_id' GROUP …

Web Development mysql php
Member Avatar for mwenyenia07
0
212
Member Avatar for subrata_ushasi

Hi all, I am trying to start date and end date which is running in my local machine but when I am trying to run online it is not working . here is the code: echo " ONE"; $pDate = date('Y-m-d'); $curdate= (explode("-",$pDate)); echo $curdate[1]."<br>"; echo $curdate[2]."<br>"; $date=$curdate[1]; switch ($date) …

Web Development php
Member Avatar for subrata_ushasi
0
550

The End.