52,566 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for tahakirmani88

Hello, I am trying to fetch values from a Multidimensional array using foreach loop, i have understand the basics of foreach(){} loop, but when it comes to Multidimensional array i get confused. This is my program <?php $food =array( 'Healthy' => array('Salad','Rice', 'Vegetables'=>array('Tomatto','Onion')) , 'UnHealthy' => array('pasta', 'Vegetables'=>array('potatto', 'Corn')) ); …

Web Development php
Member Avatar for diafol
0
6K
Member Avatar for polashdeb

I am newbie in learning javaScript.When investigating a site source codes i've got some scripts. in repl.html folder there is bmi.js.My question is why they use this script? or a understandable article will be helpful for me. thannks for reading.

Web Development javascript
Member Avatar for polashdeb
0
99
Member Avatar for skliz

Please can any body show me examples on how to enter values into the Date and Time column

Web Development asp.net
Member Avatar for annaharris
0
214
Member Avatar for Nirmeen Ased

<tr> <td><strong>Department</strong></td> <td width="220" align="right"> <select name="Depcategory" dir="rtl" id="Depcategory" class="title"> <option value="-1">chosse department</option> <?php $rs=$db->GetAllDepCategory($_SESSION["Faculty"]); while(list($name)=mysql_fetch_array($rs)){ echo "<option ".($DepSearch==$name?" selected=selected ":"")." value='$name'>$name</option>"; } ?> </select> </td> </tr> <tr> <td> <strong>Teacher name</strong></td> <td width="200" align="right"><label for="TeacheSearch"></label><select name="TeacheSearch" dir="rtl" id="TeacheSearch" class="title"> <option value="-1">choose teacher</option> <?php $rs=$db->GetTeacher($_SESSION["Faculty"], $_SESSION["AdminWorkName"]); while(list($Fname,$WNO,$Lname)=mysql_fetch_array($rs)){ echo "<option ".($Lname==$TeacheSearch?" selected='selected' …

Web Development php
Member Avatar for paulkd
0
233
Member Avatar for ricardojorge.net

# Creating a register and login page, by creating a mysql database and all php files. # ## I was reading a [thread that is dead](http://www.daniweb.com/web-development/web-design-html-and-css/threads/97183/to-create-a-registration-page-and-login-page) now, so i started this one: ## **Simple PHP login:** Create a database (mysqladmin) Name the table "dbUsers." It will need 4 fields: Name …

Member Avatar for Ank1
0
459
Member Avatar for imti321

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 …

Web Development php
Member Avatar for imti321
0
677
Member Avatar for sonicx2218

So I'm using this program that has 2 important sections of code that determine the iframe height and width. if (!images[imageIndex][2]) images[imageIndex][2] = ''; // Thanks to Leo Feyer for offering this fix WH = images[imageIndex][2].split(' '); WHL = WH.length; if (WHL>1) { mediaWidth = (WH[WHL-2].match("%")) ? (window.getWidth()*((WH[WHL-2].replace("%", ""))*0.01))+"px" : …

Web Development javascript
Member Avatar for sonicx2218
0
207
Member Avatar for adeeb.keyaam

Advance thanx to all, i am having problem with my multistep form when validations happened. please help/suggest any ideas to solve it. > image uploaded properly with condition but do not show messages and then go next step $filename = $_FILES['photo']['name']; // get extension of the image $ext = strtolower(substr(strrchr($filename, …

Web Development php
Member Avatar for Eng. Hadi
0
197
Member Avatar for fheppell

How can I delete a file using php? Using a linux server (if that matters). Thanks for any help

Web Development php
Member Avatar for Eng. Hadi
0
283
Member Avatar for geewebid

hi master, i have problem with my ci web, i use force_download in my controller but why redirect() cannot work, please tell me what my problem. $filedown = $this->input->post('filedown'); $datas = file_get_contents(base_url() . "down/" . $filedown); // Read the file's contents $name = "$filedown"; force_download($name, $datas); i have error, if …

Web Development php
Member Avatar for Dani
0
2K
Member Avatar for jasminjew
Member Avatar for eburlea
0
210
Member Avatar for s4ualex

Hi, This is Alex, After upoading the image, i dont want to store the image immediately, i need to display the image in confirmation page and the user is confimed i need to store it in physical location. i know how to store in physical location. but i dont know …

Web Development display image java-jsp
Member Avatar for Srujan1
0
249
Member Avatar for sciwizeh

Hello All, So I'm working on hand-coding a forum-like website, just for the experience, and I want to have a similar feature as you'll see above where a thread will have its ancestors linked: "Web Development > JSP > Parent traversal of tree-like Structure" I have several beans for different …

Member Avatar for sciwizeh
0
279
Member Avatar for Dani

Can anyone point me to a sample use case of a very lightweight PHP-based example of a Google Analytics API pull?? I'm looking for two things: * Registering a pageview * Fetching pageviews per day/week/month/all for a particular page Thanks!

Web Development api google google-api php
Member Avatar for davidkroj
0
125
Member Avatar for mallows.yum

hi all! i have here a code to delete a record <?php define ('DB_NAME', 'vincegac_vince'); define ('DB_USER', 'root'); define ('DB_PASSWORD', ''); define ('DB_HOST', 'localhost'); $link = mysql_connect(DB_HOST, DB_USER, DB_PASSWORD); if (!$link) { die('Could not connect: ' . mysql_error()); } $db_selected = mysql_select_db(DB_NAME, $link); if (!$db_selected) { die('Can't use ' . …

Web Development php sql
Member Avatar for mallows.yum
0
134
Member Avatar for LeonardK

Hi There, I got a saved query in my database like this: # id rapport_query # 12 SELECT tablename.tablerow, tablename.tablerow FROM tablename Now what i want is to do execute this query with a php script and put the results in a array and then make an csv of it. …

Web Development php
Member Avatar for LeonardK
0
155
Member Avatar for deej_uptheowls

http://codecanyon.net/item/ajax-contact-form/full_screen_preview/50846 I bought this contact form that validates and produces a message when its complete. The validation messages are all in with the form. But when I try to integrate it into my page "contact.html", the validation messages popup in a new window "contact.php" and I dont know how to …

Member Avatar for deej_uptheowls
0
698
Member Avatar for atikah8890

Hi. I'm using JS for d3. What I intend to do is get some data from database and plot them in a diagram I've created. Here's what I've done so far: Fetched the data from database: <?php while($row = mysql_fetch_assoc($query)){ $q_id[] = $row['q_id']; $res_val[] = $row['response_value']; $chpt[] = $row['cr_chpt']; $lvl[] …

Web Development html-css image javascript
Member Avatar for atikah8890
0
333
Member Avatar for turpentyne

I have a script that loads in content using jquery. With the popstate/pushstate function everything is working beautifully, when they click on navigation links. But I also have some a href tags on one of the loaded pages for sliding down to anchor points on the page. This seems to …

Web Development javascript javascript-jquery
Member Avatar for LastMitch
0
137
Member Avatar for SirMahlon

which programming language would be cool for a web app that would be able to syschronize sim contacts to a server and could be retrieved should sim be missing by logging on to the web.as well should u get a new sim u can get contacts back on phone by …

Web Development php smartphone
Member Avatar for LastMitch
0
276
Member Avatar for hbmarar

we have a form and if we would like to pass some hidden fields.say,username is hidden but required and email and password is what the user form is about:-

Web Development email php
Member Avatar for LastMitch
0
152
Member Avatar for Cravver

I have this code here and I need to know how to make it randomize the amoutn of images there are: Currently it shows the images, and uses a cookie so the image doesnt show up more than it needs to, but i need to randomize the image order instead …

Member Avatar for Cravver
0
366
Member Avatar for Dani

I was wondering if anyone had any experience with Cloudflare and what you thought of it? A *LOT* of big sites are using it, and from what I'm hearing, it's really good at caching entire webpages at the DNS server end without ever having to hit your web servers. However, …

Web Development caching dns
Member Avatar for Dani
0
144
Member Avatar for SirMahlon

<html> <body> <?php $username = 'root'; $password = ''; $hostname = 'localhost'; //connection to the database $con = mysql_connect($hostname, $username, $password,'contactmanager') or die('Unable to connect to MySQL'); echo 'Connected to MySQL<br>'.'<p>'; mysql_query($con,'INSERT INTO Personalinformation(Name, YearOfBirth, Email,Location,PhoneNumber) VALUES(Peter,2008-03-05,peter@hotmail.com,kasland,0269015748)'); mysql_close($con); ?> </body> </html>

Web Development mysql php
Member Avatar for SirMahlon
0
5K
Member Avatar for adeeb.keyaam

suppose i have a account in a website, and i want to see the users who are members of this website, and my name is also listed there, but i want to remove my name from there, from my account, i can see others name without mine, and this will …

Web Development php
Member Avatar for iamthwee
0
159
Member Avatar for adeeb.keyaam

I want to create a form wizerd or a multi step form, there is a continue button to step forward, `<button type="submit" name="continue" onclick="return validateNow();">Continue</button>` and a previus button to step backward, `<button type="submit" name="continue" value="&lt; Back">Previous</button>`, button type must be in submit format, because i have php in this …

Web Development php
Member Avatar for adeeb.keyaam
0
204
Member Avatar for Maideen

Hi I have a issue in print data directly from clicking print button. Below is my code and working fine. if click print button system sends the data to another page not to printer directly. pls help me HTML page <style type="text/css"></style> <?php include '../templete/header.php'; ?> <Script Language="javascript"> function change_action() …

Web Development html-css php printer
Member Avatar for IIM
0
1K
Member Avatar for Santosh Bajjuri

Can any one try to guide me through the installation of APACHE AND PHP SERVER with A DATA BASE connectivity.I am currently using WINDOWS 8 64-bit as my OS. I tried so many ways of installing.But couldn't find any way to it. I hope this forum will help me out …

Web Development apache php
Member Avatar for Webville312
0
156
Member Avatar for napninjanx

Like for example Myspace.com I right clicked and clicked on save as. It saved two Items one a website shortcut and the other a folder filled with. Jpegs Images PNG Images Gif Images JScript Script File Cascading Style Sheet Document PLI File Some Internet Shortcuts - HTML Documents FLOW FILE …

Web Development
Member Avatar for Dani
0
149
Member Avatar for joshl_1995

Hello Community, I was wondering if getting an SSL certificate be worth it for my new website it the website doesn't store users personal details all it will hold is users links that would be counted but the thing is i don't know if it would be worth it or …

Web Development cybersecurity
Member Avatar for joshl_1995
0
422
Member Avatar for davidjennings

Hi All - I am trying to find a solution to the following I am trying to update a form with checkboxes and to compare the value of the data variable $active from the db and if the value =1 then make the checked value as checked if = to …

Web Development html-css php
Member Avatar for davidjennings
0
188
Member Avatar for bhallarahul

hi I want to create an application which contain servlet and jsp and also connected with database but i only want that login page will be open from 05:00hr to 10:00 hr before and after nobody able to access/login the page if they do that it reject the request how …

Web Development java-jsp
Member Avatar for stultuske
0
102
Member Avatar for amith_ami

hi all i want to change my wordpress site category url. now its like this mysite.com/?cat=1 ,but i want to change it like this mysite.com/?category=sports . i dont know how to make this. pls help me to do this. tnx in advnc

Web Development wordpress
Member Avatar for mrvijayakumar
0
113
Member Avatar for Dimonai

Hello to everyone, I Have a table inside 2 div's and I need to get the tables id! How can I do this by javascript?

Web Development html-css php
Member Avatar for Dimonai
0
259
Member Avatar for Dimonai

Hi everyone, I'm working in a project where its required a dynamic insertion of a grup of 3 textfields where one hiels dates. So far I manage to do the insertion part, but Im still with the problem of jquery datepicker only working right on the first(original) textfield. I notice …

Web Development javascript-jquery php
Member Avatar for Dimonai
0
907
Member Avatar for php.coder

hi all; how can i clear paypal after a user has logged out and the session is destroyed` any help would be appreciated thanks

Web Development session
Member Avatar for LastMitch
0
108
Member Avatar for mallows.yum

hello! i have here a code <?php include("include/session.php"); ?> <?php echo $session->username; $sql = "select * from employee where fname like 'pedro'"; // CONNECT KO TO DAPAT SA FORM KO NA SEARCH-FORM $result=mysql_query($sql); $num=mysql_num_rows($result); $row = mysql_fetch_array($result); //mysql_close(); if($row) { $i=0; while ($i < $num) { $empnumber = $row[0]; $fname=$row[1]; …

Web Development php session
Member Avatar for LastMitch
0
550
Member Avatar for tanmay.majumdar2

hey, fellas.. I was gonna make a simple website.. Which somehow explains you about the readystate exchange,. But i am not getting the desired ouput. Please help me out.. I am ginna upload the codes, of the javascript and the html file.. the javascript file {a.js}: http://codeviewer.org/view/code:33b6 _______________________________________________________________ the html …

Web Development javascript
Member Avatar for LastMitch
0
201
Member Avatar for jenny1975

I have two array's Array1[1,3,5,7,4,0,8] Array2[1,5,8,3,4,2,9] What I would like to achieve is an output count = 3( three of the numbers 3,5,8 from Array2 are in Array1 but in the wrong place) using Math.min. Can someone explain this process to me please. Thank you

Web Development javascript
Member Avatar for dilan91
0
173
Member Avatar for Zagga

Hi folks, It's a bit unusual for me to post in the javascript forum but I'm after a bit of assistance if possible. **The scenario:** I have a form with text input box for a user to enter a 'quantity' in. This can be anything from 1 to 99. When …

Web Development javascript
Member Avatar for Zagga
0
195
Member Avatar for adishardis

Hi, everyday I get a xml file that looks something like this: <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <account-information report-date="2012-12-31T23:59:59.000+01:00" xmlns="http://www.XXX.SE/XXX"> <account> <account-number>00000001</account-number> <status>Open</status> <application-array> <application-type>NEW</application-type> <application-date>2013-01-11</application-date> </application-array> <application-array> <application-type>TOP</application-type> <application-date>2013-04-18</application-date> </application-array> <account-information-type> <first-name-main>John</first-name-main> </account-information-type> </account> </account-information> Today I import each account to our db with only the latest application-array (application-date). The …

Web Development php xml
Member Avatar for adishardis
0
211
Member Avatar for rebelbelle

{ global $wpdb; $category_id = $wpdb->get_var("SELECT term_id FROM $wpdb->terms WHERE name = '" . addslashes($category_name) . "'"); return $category_id; } function shorten($string, $wordsreturned) { $retval = $string; $array = explode(" ", $string); if (count($array)<=$wordsreturned){ $retval = $string; } else { array_splice($array, $wordsreturned); $retval = implode(" ", $array); } return $retval; …

Web Development php
Member Avatar for broj1
0
868
Member Avatar for mpc123

Hi I am trying get a query to join 2 tables and a result on the information in both. At the moment I have the following $query = "SELECT * FROM TABLE1, TABLE2 Where 'TABLE2.field1' LIKE '%TABLE1.field2%'"; The problem is TABLE2 has a field with names in but TABLE1.field2 has …

Web Development php
Member Avatar for mpc123
0
155
Member Avatar for johnny.lhc.9

I got this problem when open this files,how to solve this problem? Warning: set_time_limit() [function.set-time-limit]: Cannot set time limit in safe mode in /home/indomari/public_html/administrator/includes/connect.php on line 64 this code locate at line 64 <?php set_time_limit(0); if (isset($_POST["scan"])) { $url = $_POST['traget']; echo "<br /><span class='start'>Scanning ".$url."<br /><br /></span>"; echo "ReSulT:<br …

Web Development php
Member Avatar for johnny.lhc.9
0
259
Member Avatar for fheppell

This php code updates a database entry. The form consists of a checkbox (name = download) and a hidden field so I can check it has actually been sumbitted(name = updated). When I run this code it gives me the success message but the database remains unchanged. Why is this? …

Web Development mysql php sql
Member Avatar for fheppell
0
164
Member Avatar for MattD00

I have set up a cookie in JavaScript to store the change to the stylesheet. The cookie is loaded using <body onload="set_style_from_cookie()"> This cookie was working fine until I set a session cookie in PHP to verity if a user was logged in session_start(); if(isset($_SESSION['username'])) { $user = $_SESSION['username']; } …

Web Development javascript php session
Member Avatar for riahc3
0
345
Member Avatar for Casperjames

Hello all, This is my first site project using codeigniter. The frontend is all html and I am using codeigniter for the backend. Everything was working fine until I added the frontend files and modified my htaccess file to not redirect to index.php but instead to index.html. htaccess looks like …

Web Development php
Member Avatar for cereal
0
416
Member Avatar for webdevstudent

Which jQuery effect rotate image like in the picture I have uploaded. I saw the effect few months ago but dnt know what do we call it. Can anybody please help? Or any other plugin that will add random effects to images?

Web Development javascript javascript-jquery
Member Avatar for webdevstudent
0
109
Member Avatar for fheppell

I have a snippet of mysql which is filled in with two variables: SELECT `download` FROM `images` WHERE `owner_un`='$owner' AND `url`='$url' The `$url` variable comes directly from a URL variable. This input should only ever contain alphanumeric characters, if this helps. Thanks for any help

Web Development cybersecurity php sql
Member Avatar for fheppell
0
213
Member Avatar for christopher.baker.969952

I'm trying to create a site security strategy that will allow authenticated AD users hit a site, without a login page, and deny access to users who are not authenticated. I have developed a proof-of-concept site based on http://www.christowles.com/2011/04/aspnet-forms-based-authentication-with.html but all I can make it do is authenticate against an …

Web Development asp.net
Member Avatar for annaharris
0
212

The End.