52,566 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for old_apache

i developed a system in xampp 1.7.2, and now i run it in xampp 1.8.2 (lastest version) i got this error Parse error: syntax error, unexpected end of file in C:\xampp\htdocs\ hint: in xampp 1.7.2 no error anybody can tell me why?

Web Development php
Member Avatar for old_apache
0
245
Member Avatar for Priti_P

I have an array which contains data as: array(name,contact1,e_mail ,reference_type,resume_source,current_employer,highest_degree ,skill_set,track) now i want to create an excel sheet(.xls file). In short I want to generate a reropt for query. Array is nothing but the query result. I want to just put this data rows into excel sheet. How can …

Web Development php
Member Avatar for iamthwee
0
211
Member Avatar for Diogo Martinho

I'm currently having an issue while trying to pass Data to my controller in my MVC application. Here is my code $('#idNumber') .autocomplete( { source: "/@Resources.Global.Lang/Client/AutoComplete?ID=" + $("#idNumber").val() + "&country=" + $("#country").val(), select: function (e, ui) { var temp = $("#idNumber").val(); var temp2 = $("#country").val(); $.ajax({ type: 'POST', url: "/@Resources.Global.Lang/Client/searchClientByID?ID=" …

Web Development javascript json
Member Avatar for iamthwee
0
120
Member Avatar for LD-005

Hi! I have a table with few thousand records on few pages in a simple html table.. I made a search function that works fine apart from one thing... It displays only one result in a table (which is great cause it means it works!).But... I was wondering is there …

Web Development html-css php
Member Avatar for diafol
0
370
Member Avatar for mmcdonald

Hey all, I'm trying to make a link outside of the nav-tabs class, specifically in a paragraph, that changes to another tab on the same page. Granted that I know this requires JS and that I know nothing of JS (Another book i ordered this morning :) ) here is …

Member Avatar for mmcdonald
0
230
Member Avatar for cguan_77

hi guys, is there a way to create in Javascript or Jquery to have a search box and search for the data within the HTML page. In the HTML page, there's a lot of links. Basically the HTML page looks like this: File No 1 - Link to File No. …

Web Development javascript javascript-jquery pdf
Member Avatar for crescendo
0
191
Member Avatar for newbie26

help. all of a sudden, UPLOADING of files in all my forms didnt work. i tried may things as i had googled it. i tested the code, $_FILES seemed to be empty. > free-up /tmp folder > check php.ini; increase post_max_size, upload_max_filesize, memory_limit > restart apache after each configuration > …

Web Development apache php
Member Avatar for pritaeas
0
174
Member Avatar for bradly.spicer

Hey guys, just a quick one. Got this: $memmath = $memcache + $memfree; $memmath2 = $memmath / $memtotal * 100; $memory = round($memmath2) . '%'; Which finds the % free. How would I find the % used? Been messing with algorithms and I'm screwed in the head now

Web Development php
Member Avatar for bradly.spicer
0
104
Member Avatar for sanbhu2105

hello guys i have created the below codes. the first one is the mysql select statement which works fine when i echo. the second one is an html/css table i created. i am stuck to the point where i can merge both of them so that i get a nice …

Web Development html-css mysql php
Member Avatar for broj1
0
990
Member Avatar for austin.datong

Please I want to know. between ASP and PHP, which is better for web development?

Web Development asp php
Member Avatar for spiralclick
0
115
Member Avatar for cguan_77

hi guys, I have this code which I get from the link below. http://stackoverflow.com/questions/3826963/php-list-all-files-in-directory Need your help, why the current directory is the directory of the root server. Like i'm using WAMP for windows. The current directory for this code below that is recognizing is: c:\wamp I want the code …

Web Development html-css javascript-jquery php
Member Avatar for cguan_77
0
623
Member Avatar for winbala5

i have create a table for analytics purpose month wise. so how can i fetch the all the tables in dynamic. help me how to form the query for fetch the records from multiple tables

Web Development php
Member Avatar for diafol
0
276
Member Avatar for deepak.fugo

Hi All, I want to select rows from dynamic created tables i.e we have tables like web_analytics_mm_yy(ex: web_analytics_06_13, web_analytics_05_13, web_analytics_04_13 and so on) web_analytics -> table name mm_yy -> month_year. I know this can be acheived in PHP by using for loop { // CONSTRUCTING SQL STATEMENT USING // UNION …

Web Development mysql php
Member Avatar for diafol
0
298
Member Avatar for Priti_P

Hello All, need one help! How can I send iwo invitation in one mail only? two inivitaion has diffrent time obviously! So how can I do this in PHP? Help is needed urgently :(

Web Development php
Member Avatar for diafol
0
317
Member Avatar for skliz

Is it possible to have more than one custom provider in a system. Suppose you have a project that as a blog and a forum rite in the same project. Can we have a Custom Membership provider for the blog. And a Custom Membership provider for the forum. Cos I …

Web Development asp.net
Member Avatar for skliz
0
101
Member Avatar for commando1200

I've recently build my first website (yay!) and when I go to google search it (or bing or yahoo) my website comes up, but underneath where there is normally a brief description there is nothing under mine. Are there meta tags that can help this? Please help. Thanks :)

Web Development
Member Avatar for commando1200
0
87
Member Avatar for firdousahmad

dear members of daniweb i m new to asp.net can u help me my first querry is what is the difference between ASP and ASP.NET

Web Development asp asp.net
Member Avatar for BMXDad
0
373
Member Avatar for yavindu

I've created a web app using PHP version 5.12.If I host this in a server which supports PHP version 5.3+ will it be a problem.If so how can I update PHP version.I'm using Apache2triad as my server. Thanks.

Web Development php
Member Avatar for Atli
0
270
Member Avatar for mmcdonald

Good'ay all, I'm looking for a method of saving a users session (I.e. automatically logging them back into the same page they logged out from). But I have a few things to consider: 1) Will they logout or will they just close the browser? This means I can't add the …

Web Development php session
Member Avatar for mmcdonald
0
178
Member Avatar for aido89

Hi Please see code below, when I query my db I am getting an unefined variable issue, any ideas? I am quiet new to PHP so please help. mysql_connect("localhost","root",""); mysql_select_db("db"); $id = intval($_GET['id']); $res = "SELECT * FROM table WHERE id=$id"; echo "<table>"; echo "<tr>"; echo "<td>"; echo "<h4>".$row['item']."</h4>"; echo …

Web Development php
Member Avatar for broj1
0
230
Member Avatar for showman13

Good afternoon.. Was wondering if anyone had a short and simple resolution to implementing Paypal IPN and data validation for a pay now button in a shopping cart. I have developed a shopping cart for our dealers to order their business cards, sales agreements, brochures, etc. that I am trying …

Web Development printer
Member Avatar for showman13
0
212
Member Avatar for M.Waqas Aslam

Hello All ! I want to make my gridview pagination look like this First -prev -- 1 -2 -3 -4 -Next -Last How can i do this , by using options of Mode it is not possible. Best Regards

Web Development asp.net ui-ux
Member Avatar for BMXDad
0
168
Member Avatar for virendra_sharma

Hi, User "A" logged in to your web site and he is using Mozilla firefox browser after his logged in , i have stored some value in Session , now user again logged in from Internet explorer. So what will happen , can i get the session value for this …

Web Development asp.net session web-browser
Member Avatar for BMXDad
0
114
Member Avatar for mmcdonald

There has got to be a better way of doing this. First of all pay no attention to the lack of validation and error checking. I just want the core of the script to work first. Also, Block 1 and Block 2 execute, Block 3 does not. Whats the best …

Web Development mysql php
Member Avatar for mmcdonald
0
1K
Member Avatar for keishawndavid

<table width="300" border="5"> <tr> <td>FirstName:</td> <td><input type="text" id="fname" name="fname"/></td> </tr> <tr> <td>SurName:</td> <td><input type="text" id="sname" name="sname"/></td> </tr> <tr> <td>Age:</td> <td><input type="text" id="age" name="age"/></td> </tr> <tr> <td><input type="radio" id="gen" name="gen" value="Male"/>Male <input type="radio" id="gen" name="gen" value="Female"/>Female</td> </tr> <tr> <td>Subject:</td> <td><input type="text" id="subject" name="subject"/></td> </tr> <tr> <td>Score:</td> <td><input type="number" id="score" name="score"/></td> </tr> …

Web Development php
Member Avatar for diafol
0
347
Member Avatar for jspence29

I have this contact form that I use for everything and for some reason it is not working on this one site. If you could visit it and see what is wrong. http://www.spencedesign.netau.net/lori/me.html the php code is here <?php $field_name = $_POST['cf_name']; $field_email = $_POST['cf_email']; $field_message = $_POST['cf_message']; $mail_to = …

Web Development php
Member Avatar for jspence29
0
288
Member Avatar for wallflips

Hello dear DaniWeb users and thanks for reading this thread. Eight months ago I started a forum CMS project, but alone it's very hard to develop fast and quality. My intentions of writing this thread are to make some interest over the developers of this massively huge website and to …

Web Development cms javascript php php-codeigniter
Member Avatar for vanessa001
0
667
Member Avatar for devianleong

Hi, how to make a category tree in php? Recently I've a table called 'category' and inside containt ID,Name,ParentID. Please give me a simple example code to do it. Very appreciated if you could help me to solve this problem.

Web Development php
Member Avatar for pritaeas
0
189
Member Avatar for a.dhamumca

hi, i want to store date time whan i click radio button(name login time)in mysql. if i click logout radio button it should store logout time. ples help me... php and mysql code ...

Web Development mysql php
Member Avatar for pritaeas
0
255
Member Avatar for mmcdonald

Now this one always bugs me! I'm dealing with a lot of checks that result in redirection dependant on certain results. **Example:** 1) If session exists and users lands on login.php they are pointed to index.php. 2) When landing on any page after loggining in, if their account isn't complete …

Web Development http-protocol php session
Member Avatar for Atli
0
478
Member Avatar for flynismo

Hey guys, here is the table structure: Table name: globalsettings column names: setting, value, description An example query could be this: $query = "SELECT * FROM globalsettings WHERE setting = 'name'"; Okay, so here is what I am trying to do (I am using PDO for DB activity, but just …

Web Development data-structure display mysql php
Member Avatar for pritaeas
0
193
Member Avatar for cgull

Hello, I am developing a web site with codeigniter 2.1.3 I am using an ajax call to post data to my controller, but for some reason the data is not being sent. I am using ajax calls all over the application and they all work well just not this one. …

Member Avatar for cgull
0
3K
Member Avatar for L-D

Hi again, I have a cash gifting script that I converted to advertising instead of "gifts". So no host should have issue with it. I went thru the session is registered thing but I don't know how to insert the newer coding. What exactly do I replace? I know about …

Web Development advertising php session
Member Avatar for Zagga
0
264
Member Avatar for bobtutos

Hi everybody! I would like to ask for your help if it possible, I have a long sting and I want to chop it to small pieces. My string is:- $longstr = “Str1.htmlstr2.htmlstr3.html”; And I want the result to be like; $firstchoppedpiece = “Str1.html”; $secondchoppedpiece =”Str2.html”; $thirdchoppedpiece =”Str2.html”; Is it …

Web Development php
Member Avatar for bobtutos
0
113
Member Avatar for qstar2010

Hello all, here's my issue, I've created a wonderful app from scratch which is basically a form that passes all of its info via PHP into beautiful html which then goes nicely in a easy to read email. The problem is that I don't have a clear concept on how …

Web Development
Member Avatar for Zagga
0
123
Member Avatar for MWEB

Hello ! This code below should display me all the alert boxes but , unfortunetly it display only 3 ( without the alert inside the $.post function ) and i really don't see a problem in my code .. What is wrong? JS var uname = name.val(); alert( uname ); …

Member Avatar for MWEB
0
206
Member Avatar for pradap.adwani

For me getting same result (all the text box are null value is filled) after move the textboxes after calling request.getParameter() also... What i need to change it? Where i need to edit? # **First Jsp Page** # <%@ page import="java.sql.*" %> <% Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");%> <HTML> <HEAD> <TITLE>Fetching Data From a …

Web Development java-jsp
Member Avatar for peter_budo
0
2K
Member Avatar for blitznck_1

I am trying to get Ajax to load a form which is created in PHP and assigned a variable $copen. In Ajax how do I go about placing the variable in the URL part of Ajax to open and retrieve the JSON data. The code in my Ajax script: $.ajax({ …

Web Development javascript json php
Member Avatar for blitznck_1
0
405
Member Avatar for suncica2222

I need a way to check if tweet exists. I have link to tweet like https://twitter.com/darknille/status/355651101657280512 . I preferably want a fast way to check (without retrieving body of page, just HEAD request), so I tried something like this function if_curl_exists($url) { $resURL = curl_init(); curl_setopt($resURL, CURLOPT_URL, $url); curl_setopt($resURL, CURLOPT_BINARYTRANSFER, …

Web Development http-protocol php social-media
Member Avatar for suncica2222
0
592
Member Avatar for london-G

Hello, When I am running my page I get this error: Fatal error: Call to undefined method WC_Cart::get_fees() in /var/sites/m/mysite.co.uk/public_html/wp-content/themes/mio/woocommerce/checkout/review-order.php on line 53 Here is my review-order.php <?php /** * Review order form * * @author WooThemes * @package WooCommerce/Templates * @version 1.6.4 */ if ( ! defined( 'ABSPATH' ) …

Web Development php session
Member Avatar for Atli
0
396
Member Avatar for aVar++

Here is my code, the problem I have is the alert just isnt showing, however if the alert is put in the while loop it shows but outside the loop it doesn't could someone explain why? <script> function GetText() { var name = document.getElementById("name").value; var age = document.getElementById("age").value; var house …

Web Development javascript
Member Avatar for Unimportant
0
177
Member Avatar for L-D

Hi! Got neat ad posting thingy but Deprecated: Function ereg() is deprecated in /home/content/13/11394913/html/ads/index.php on line 34 is repeated all the way down page, and then some. Index.php is SO LONG I can't get it on here! So I'll post enuf to cover ln 34. <?PHP include "inc/global.php"; include "temp.fun.php"; …

Web Development php
Member Avatar for L-D
0
202
Member Avatar for simirnov

Hi All, I am a beginner in php and working on admin side of a small website. I have attached a PHP CKEDITOR to the admin page so that the admin may edit the pages text. Here, i am a bit confused about one thing and that is about how …

Web Development mysql php
Member Avatar for Qaalid
0
2K
Member Avatar for asprin

This is really a spoon feeding request. I'm in the process of learning regex, which will take time to perfect, but as of now I'm in immediate need of help to work on regex expression. Suppose I've a string like $str = "asggasdg46%dgeoweg5.3%sdgeoge4%kge"; In the above string, I need to …

Web Development php regex
Member Avatar for asprin
0
187
Member Avatar for McLaren

When I try to search kinetic.js tutorials, I mostly get links to http://www.html5canvastutorials.com or http://www.kineticjs.com/ . There are example in those sites, but not much explainnation. Documantation is also very poor comparing to lets say jquery documentation. There are also other sitesm but as I see they most often post …

Web Development javascript
Member Avatar for gamingthinktank
0
800
Member Avatar for Shikha_1

<?php include("DBconnect.php"); $u="select count(username) as 'COUNTUSER' from users where username='shikha verma'"; $result = mysql_query($u); while ($row = mysql_fetch_array($result)) { echo $row[COUNTUSER]; } /*if ($value[0]>0) { die("email already exist"); }*/ ?> the code inside the comment is not working please give me suggetions

Web Development php
Member Avatar for kkbalwada
0
199
Member Avatar for |-|x

Hi guys, Working on one of my web projects recently I came accross a need for presenting some readonly data as part of the user input form. The readonly property of the input tags seem to work as expected for other types of input control, but not for the checkbox. …

Web Development javascript
Member Avatar for rohitdubey
0
5K
Member Avatar for klemme

I have inserted a rich text editor to an textarea, but I get the following error after submitting my form: [CODE] Notice: Undefined index: msgpost in C:\wamp\www\mycms\administrator\page_new_parse.php on line 15 [/CODE] I have changed the textarea name, and the id to "msgpost" as explained on their website. I have also …

Web Development first-post php
Member Avatar for Qaalid
0
2K
Member Avatar for anojs

[B]insert.php[/B] [CODE]<?php $dbun = "$_POST[dbun]"; $con = mysql_connect("localhost","root",""); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("my_db", $con); $sql="INSERT INTO $dbun (sn, date, particular, dr, cr) VALUES ('$_POST[sn]','$_POST[date]','$_POST[ptr]','$_POST[dr]','$_POST[cr]')"; if (!mysql_query($sql,$con)) { die('Error: ' . mysql_error()); } echo "1 record added"; mysql_close($con) ?> [/CODE] [B]DB name = my_db[/B] [B]user.php[/B] …

Web Development mysql php sql
Member Avatar for dono.reseller
0
264
Member Avatar for ehpratah

Hey Everyone Im having a lil trouble rightnow making this script work. What im trying to do is make a script that will change the bgcolor color to red if the Serving time is less than or equal to 1 hr left which is working now but in the long …

Web Development php
Member Avatar for ehpratah
0
193

The End.