52,566 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for SC7639

When creating and downloading a CSV from a database call using: putcsv, header and php outstream (php://output). // Output headers header("Content-Type: text/csv; charset=utf8"); header("Content-Disposition: attachment; filename=" . $_REQUEST['filename']); // Create a file pointer to the output stream $output = fopen('php://output', 'w'); // Output the column headings fputcsv($output, $columnNames); // For …

Web Development file-stream php
Member Avatar for ziaurehman
0
278
Member Avatar for 68thorby68

Hi All, I am using a JS pluging (executed by document.ready function) to style HTML select item. I am also using the before() function to insert additional select items, as needed. However, the select items added using the before() function does not invoke the plugin to style the select box, …

Web Development javascript
Member Avatar for Taywin
0
292
Member Avatar for RonKevinT.Manuela

Okay so the code is able to generate the files but I have a problem with files that are saved with space...when user clicks on the link it says page not found...example a file with a filename of "research proposal" gives the error Not Found The requested URL /simpleblog/kcfinder/upload/files/ was …

Web Development php
Member Avatar for RonKevinT.Manuela
0
135
Member Avatar for CodeGirl_xx

I'm trying to insert a google maps script with multiple markers and infowindows in my project. What I want to do is: -set a style css for infowindows (border, background-color, width, height, etc...) -move the closing button of the infowindows outside the infowindows (like in position relative) -set an automatic …

Web Development api google google-api javascript
Member Avatar for Taywin
0
645
Member Avatar for u676522226

[Click Here](http://www.nitixay.1eko.com) <?php function hashFindFile($file) { if($file) { if (file_exists('sessions/'.$file)) { return filemtime('sessions/'.$file); // Return file creation time } return false; } return false; } $access = stripslashes($_GET['access']); $login = stripslashes($_GET['login']); $action = stripslashes($_GET['action']); if($login) { require_once('php/hash.php'); exit; } if($access) { if(hashFindFile($access)) { $expires = time() - hashFindFile($access); if($expires > …

Web Development php
Member Avatar for mattster
0
98
Member Avatar for Ehsan_4

i have two postcodes entered by user. i format them validate and check if they do exist then i get postcode1's postal city name from mysql server. i have two districts both arrays one called innerLondon array and the second outterlondon array i fetch postal city name with my script …

Web Development mysql php
Member Avatar for Ehsan_4
0
2K
Member Avatar for terryds

Please tell me the best way to hash password in CMS.. I've seen Crackstation's hashing : https://crackstation.net/hashing-security.htm And phpass : http://www.openwall.com/phpass/ Please tell me which one is the best or tell me if there is another good hash method for password..

Web Development cms php
Member Avatar for Taywin
0
188
Member Avatar for mexabet

I have a user registration script that includes image upload. Everything works, but each time a user registers, the image he/she uploads replaces the image (userimage) of every other user. What I need is to only update the userimage of that user based on ID. Any help would be much …

Web Development image php
0
123
Member Avatar for Stefce

Hey everyone i have a little problem with the navigation bar, i have created the design of the menu but i want to be in one file (menu.html) and to show on all pages in the website... here is my code for `menu.html` <html> <body> <meta http-equiv="content-type" content="text/html;charset=utf-8"/> <style> form.position-and-style …

Web Development php
Member Avatar for mattster
0
294
Member Avatar for wazz

i'm using the event below to change a default error message. so far i'm only using DuplicateUserName. my concern is the rest of the cases. i commented them all out so the errors would bubble up properly, then i uncommented them. i'm not sure what to do with them. leave …

Web Development asp.net
Member Avatar for pritaeas
0
241
Member Avatar for TonyG_cyprus

Hi all, it's been awhile... my prob. I have a form to order drinks in a bar, as below. <div class="col_left"> <h2> Order Your Drinks And Food</h2><br /> <form action="process.php" method="post" name="orders"> <table border="1" class="trapezi"> <tr> <th>Drink</th><th>Qty</th> </tr> <tr> <td><input type="checkbox" name="drink[]" value="p/c">Carlsberg 50cl</td> <td><input type="text" name="drinkno[]" size="2"></td> </tr> <tr> …

Web Development php sqlite
Member Avatar for TonyG_cyprus
0
182
Member Avatar for santunu23

hi in my project i am almost done for deployment but i am afraid about ppl who disabled cookies in there browser, what should i do if they disable cookies how we get there data(i mean user) i am think about if they disable cookies we use session function for …

Web Development php session
Member Avatar for santunu23
0
197
Member Avatar for sujay anand

I have insert gridview datas into database using checkbox checked. My prob is when datas present in database checkbox should be checked. DataTable dt = new DataTable(); dt.Columns.AddRange(new DataColumn[2] { new DataColumn("adminname"), new DataColumn("projectname") }); for (int i = 0; i <= GridView1.Rows.Count - 1; i++) { GridViewRow row = …

Web Development asp.net open-source
Member Avatar for EddyC27
0
129
Member Avatar for saineshwar

I have a checkbox column, which has a OnCheckedChanged event. To avoid postbacks I have placed the checkbox control in UpdatePanel but still it is postbacking When i execute run the page, i see the postback is still happening. I dont know whats wrong with my code. <asp:TemplateField> <ItemTemplate> <asp:Literal …

Web Development asp.net
Member Avatar for EddyC27
0
817
Member Avatar for sarvesh_1

Hi all, I need to change label text dynamically for two operations on webpage in asp.net. First,when file uploading is completed label should show 'upload completed'. After that it will perform validation process and later will show the message 'validation complete'. I have two methods that will be called one …

Web Development asp.net file-system gui
Member Avatar for EddyC27
0
444
Member Avatar for LONGWAY

when i try to call my joomla with localhost i get this: [b]Error displaying the error page: Application Instantiation Error[/b] my db name, my user and pass are correct, i dont see any problem in configuration page, they r correct

Web Development php
Member Avatar for LONGWAY
0
134
Member Avatar for ianian944

I am trying to make a vehicle advertising website like autotrader or ebay. I am using html, css, jsp, java and mysql for the database.Basically I want the user to be able to search for a vehicle (advert) via a form, then they are directed to a results page after …

Web Development java java-jsp mysql
Member Avatar for peter_budo
0
2K
Member Avatar for Sammys.Man

Hi guys, im working on a bit of code which for 2 days is sending me around in circles :/ what i want to do is split an array into variables, so i can dynamically create a text box. i'm trying various methods but think im chasing my tail now. …

Web Development php
Member Avatar for cereal
0
193
Member Avatar for missy_mi

HI ALL.. I HAVE A PROBLEM CONNECTING THE EXTERNAL LINKS OF MY FLASH PROJECT AFTER I PUBLISH SWF AND PUT IT IN INSIDE MY HTML. WHEN I PLAY THE FLASH ON THE BROWSER I CANNOT GO TO THE LINK.. BEFORE I PUBLISH, WHEN I TEST MOVIE..THE LINK WORKS FINE.. WHAT …

Web Development flash publishing
0
91
Member Avatar for bLuEmEzzy

I have Checkboxes, the last checkbox is OTHER if the user clicks it, a textbox will appear. I want to get the value of the textbox and pass it on my checkbox, I do not know how to do it. This is my code, I used loop to get the …

Web Development php
Member Avatar for minitauros
0
296
Member Avatar for asardeen

I want to export the excel data and show it in gridview. And I want to update the existing table i sql using Gridview data Below is my code for exporting from Excel protected void btnUpload_Click(object sender, EventArgs e) { //Coneection String by default empty string ConStr = ""; //Extantion …

Web Development asp.net dataset open-source
Member Avatar for EddyC27
0
151
Member Avatar for javed.iqbal.3979

In an attempt to use selection lists in php ,i tried it for displaying date on a web page <?php echo"<html> <head><title>Select a Date </title></head> <body>"; $monthname=array(1=>"January","Februray","March","April","May","June","July","August","September","October","November","December"); $time=time(); $today_date=date("M-d-Y",$time); //returns the current date echo "<div style='text-align:center'>\n"; echo "<h3>Today is $today_date</h3><hr />\n"; echo "<form action='process_form_date.php' method='POST'>\n"; //selection list for month $todayMO=date("M",$time); …

Web Development display php
Member Avatar for javed.iqbal.3979
0
277
Member Avatar for TruptiThik

<?php include("connect.php"); if(isset($_POST['add'])){ header("location:show_data.php"); $first=$_POST['fname']; $last=$_POST['lname']; $fulname=$first." ".$last; $gen=$_POST['gender']; $hob_array=$_POST['hob']; $status=$_POST['status']; foreach($hob_array as $one_hob){ $source .= $one_hob.", "; } $hobb = substr($source, 0, -2); //insert data $query_insert="INSERT INTO employee(name,gender,hobbies,status) VALUES('$fulname','$gen','$hobb','$status')"; if(mysqli_query($con,$query_insert)){ echo "inserted"; }else{ echo "no"; } } if(isset($_POST['show'])){ header("location:show_data.php"); } if(isset($_POST['insert'])){ header("location:insert.php"); } if(isset($_POST['update'])){ $fname=$_POST['fname']; $lname=$_POST['lname']; $fulname=$fname." ".$lname; $gen=$_POST['gender']; …

Web Development php
Member Avatar for UsMurshall
0
23K
Member Avatar for Mad swift

Hi there I have a problem on my website and I don't if I will explain it right, but I want to remove the spacing around the table and not in between the tables. So I basically want to remove celspacing round the table.

Web Development
Member Avatar for AleMonteiro
0
104
Member Avatar for aduragbemi.adebo

I need some videos that will tutur me on Php ASAP

Web Development php
Member Avatar for NoUserNameHere
0
127
Member Avatar for murali2489

Hi Team, I have a piece of code like below which works correctly in Windows Xp (Ie 7) but when i try it in W7(IE 11) rendering is wrong, when the application first loads the select menu is rendered correctly but when i select an option and again try to …

Web Development html-css microsoft windows-xp
Member Avatar for almostbob
0
269
Member Avatar for dukumanis

**form.php** <html> <head> <link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script> <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script> <script> $(document).ready(function() { $("#datepicker").datepicker({ dateFormat: "dd/mm/yy" }); $("#datepicker2").datepicker({ dateFormat: "dd/mm/yy" }); }); </script> </head> <body> <form method="post" action="conn.php"> Name <input type="textbox1" name="Name[]" value=""><br> Start date <input type="textbox6" name="Startdate[]" id="datepicker"><br> End date <input type="textbox7" name="Enddate[]" id="datepicker2"><br> Item <input type="textbox8" …

Member Avatar for peeyush.budhia
0
482
Member Avatar for jaspertan

HI Sirs need to pass Textbox Value to another page table. I tried to used post and get in laravel but it doesnt resolve. can anyone help me? Thanks in advance

Web Development php
Member Avatar for jaspertan
0
744
Member Avatar for RonKevinT.Manuela

i wanted to list down files found on a folder..so far it works but I also want it to be a link..one click and file will be downloaded.. <?php // directory path can be either absolute or relative $dirPath = '../kcfinder/upload/files'; // open the specified directory and check if it's …

Web Development php
Member Avatar for RonKevinT.Manuela
0
293
Member Avatar for L-D

Hi, Having a problem getting this copy to show up, neither one shows up. There must be something I overlooked...! I'm really a html guy! Thanks! LD <!-- Start Body Area --> <div id="bodyArea"> <div class="left"> <span class="headLeft"><?php echo $this->ABOUT_US_TXT; ?>:</span> <p class="categories"> <?php Welcome!<br /> Interested in recipes, 'eh? …

Web Development
Member Avatar for JorgeM
0
241
Member Avatar for Priti_P

Hello, I want to disable tab event from input box on form for that i tried: <script language="JavaScript"> // disable tab event on form $(window).keydown(function(event){ if(event.keyCode == 9 ) { alert("tab is clicked") // it alerts but execute get vanished quickly event.preventDefault(); return false; } }); </script> and document.querySelector('input').addEventListener('keydown', function …

Web Development javascript
Member Avatar for AleMonteiro
0
157
Member Avatar for Priti_P

Hello, I have created input bonxes and filled values inside it. and made it read only using below code: <? foreach($certificated_data as $c) { ?> <tr id=<?echo $tr_id; ?> > <td> <input type ="textbox" name="certificate[<?=$tr_id?>]['name']" id="name-<?=$tr_id?>" value="<?=$c['Name'] ?>" readonly="readonly" /> </td> <td> <input type ="textbox" name="certificate[<?=$tr_id?>]['date']" id="date-<?=$tr_id?>" value="<?=$c['year'] ?>" readonly="readonly"/></td> …

Web Development javascript
Member Avatar for AleMonteiro
0
327
Member Avatar for weekendrockstar

After very little success in using JQuery .post methods I wanted to try asking this here before giving up. I am serving a couple JS based games on a site using PHP as members can log into the site and through sessions/cookies remain logged and play games under their account. …

Member Avatar for AleMonteiro
0
223
Member Avatar for Indians

i want to upload the employee profile picture into mysql database using php. i tried this coding. image uploaded successful but when i fetch that image on browser it shows me text character like this (ÿØÿàJFIFHHÿáLExifMM*bj(1r). one more problem is below 20kb size images only uploaded into mysql. how to …

Web Development file-system image mysql php
Member Avatar for mattster
0
3K
Member Avatar for stokie-rich

Hey guys I really need some help if you can ASAP, my website is now done and this is the last thing that needs to be sorted.... I seriously need some help. I have added in 80 questions into the database. The website is a learning aid for users like …

Web Development php sql
Member Avatar for stokie-rich
0
339
Member Avatar for infoitmanoj

<script> var mins = 0.10; var secs = mins * 60; function countdown() { setTimeout('Decrement()',1000); } function Decrement() { if (document.getElementById) { minutes = document.getElementById("minutes"); seconds = document.getElementById("seconds"); // if less than a minute remaining if (seconds < 59) { seconds.value = secs; } else { minutes.value = getminutes(); seconds.value …

Web Development javascript
Member Avatar for infoitmanoj
0
158
Member Avatar for safi.najjar1

Hello guys this is the first time I see this message while i'm trying to register a new account: the message : __php_incomplete_class could not be converted to string I try var_dumb($_SESSION) and i get this: object(__PHP_Incomplete_Class)[1] public '__PHP_Incomplete_Class_Name' => string 'Customer' (length=8) public 'id' => string '3' (length=1) public …

Web Development php
Member Avatar for veedeoo
0
1K
Member Avatar for divyakrishnan

Hi I want to assign a smarty array to Javascript array I used the following code <script type="text/javascript"> var arr = {/literal}{$a.ins_status|@json_encode}{literal}; alert(arr); </script> But the arrray is showing as Null

Web Development javascript
Member Avatar for veedeoo
0
2K
Member Avatar for Jack_9

I just recently found out about how to link python to a MySQL database using the MySQLdb library. The syntax is actually alot like phps but I was wondering and I'm preety sure you can, but can you use the same database on a website written in php, and an …

Web Development
Member Avatar for hericles
0
82
Member Avatar for jaspertan

Hi to all Im doing a project in which the user need to fill up and submit after the user submit it will create table with values from textbox thanks Jasper

Web Development html-css php
Member Avatar for jaspertan
0
175
Member Avatar for iamthwee

Hi guys, I'm a bit stuck, I'm using the twitterbootstrap modal window 3.0 but I want to get it working with ajax. So for example you click submit then it queries the database and returns the info in the modal window. I can provide the code if needed.

Web Development php
Member Avatar for veedeoo
0
458
Member Avatar for toxicandy

I had this working earlier but had to tweak the code for some function that will be preformed later on but now I can't get the data to upload to the SQL server. I get error: PDOStatement::errorInfo(): Array ( [0] => 42000 [1] => 1064 [2] => You have an …

Web Development mariadb php
Member Avatar for hericles
0
173
Member Avatar for LONGWAY

I cant find solution for this problem so i hope someone of u can help When i set seo settings** Use URL rewriting = yes** in Joomla than my site crashes It must be **Use URL rewriting=yes** **How to make my joomla site user friendly with this problem?** this is …

Web Development apache pdf php seo
Member Avatar for LONGWAY
0
332
Member Avatar for raminshahab

Array ( [data] => Array ( [0] => Array ( [ucsfeduworkingdepartmentname] => Array ( [0] => ITS ) [telephonenumber] => Array ( [0] => +1 415 502-7575 ) [ucsfeduprofilenodeid] => Array ( [0] => 39487740 ) [displayname] => Array ( [0] => Kevin Dale ) [postaladdress] => Array ( [0] …

Web Development php
Member Avatar for raminshahab
0
241
Member Avatar for rjusman90

want to hide insert and edit form while show all date and if we do edit/insert hide date which are showing this is my code i am the beginer so i want your help <?php include 'header.php';//caling header if(empty($_SESSION['UserName'])){ header("Location: login.php"); exit;} $start=0; $limit=10; $page=''; $tbl_name="users"; $targetpage = "users.php"; //your …

Web Development php
Member Avatar for iamthwee
0
259
Member Avatar for RikTelner

Is there possibility to select every table-cell, image and text within ID? I plan to make them all smaller using `.animate();` problem with it, I need to select all these elements first without manually doing it (it has to automatized) process.

Web Development javascript
Member Avatar for JorgeM
0
119
Member Avatar for ih8bugz

I am starting a nonprofit for disabled veterans. The idea is to provide computers, training, and social interaction for disabled veterans who have limited resources for social interaction due to disability. I will be setting up a website for the business and want to have the following features; Individual user …

Web Development
Member Avatar for JorgeM
0
101
Member Avatar for devianleong

Hi, I am in trouble for getting related product. Any idea to implement it with SQL? For Example: Main Product Name: ABC Shirt B190 Men The sql will show the related product like ABC Shirt B190 Women ABC Shirt B190 Child

Web Development php
Member Avatar for DJBirdi
0
122
Member Avatar for davy_yg

Hello, I wonder why the date comparison does not work: SELECT * FROM class_list INNER JOIN student ON class_list.student_id = student.student_id INNER JOIN teacher ON class_list.teach_id = teacher.teach_id INNER JOIN class ON class_list.class_id = class.class_id WHERE datetime > date('Y-m-d H:i:s') ORDER BY class_list_id date('Y-m-d H:i:s') --> 2014-08-11 08:32:08 datetime --> …

Web Development php
Member Avatar for davy_yg
0
121
Member Avatar for cgull

Hello, I've just started learning codeigniter and struggling with ajax calls. Found a few tutorials but can't understand how to do what I want. I have a home_view with links, and when I click on a link I want it to fetch data from the database with the given id. …

Web Development php
Member Avatar for cereal
0
2K

The End.