52,566 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for phorce

Hello When I normally write classes and then use them, I'd use this: [code] $site = new Site(); $site->load('header'); [/code] But I've seen people do this: [code] $site = new Site(); $site->load->header(); [/code] How do they do it? Confused

Web Development php
Member Avatar for kaisarkhan87
0
93
Member Avatar for jimobama_tech

I write an upload image script to my local server it works but when i upload online it did not but it display 0 as $_FILE['filenam']['error'] this is the code send me answer please to my email <<snip>> or reply here $target_path='../uploads/'; $_passport_path=$_FILES['passport_file']['name']; $_pp_type=&$_FILES['passport_file']['type']; $_pp_size=&$_FILES['passport_file']['size']; $_maxima_size=30000; if(($_pp_type=='image/jpeg') ||// ($_pp_type=='image/gif') || …

Web Development php session
Member Avatar for kaisarkhan87
0
116
Member Avatar for chris_j_haines

Hello I am in a bit bother at the moment, I have an application where I add a contact and at the same time I upload an image to the images directory. Basically I have a feature where you can delete a contact and what I want to be able …

Web Development php
Member Avatar for kaisarkhan87
0
146
Member Avatar for Farhad.idrees

Hi i want to echo session but it gives error...code is [CODE] session_start(); if(isset($_GET['P_Price'])) { $_SESSION['Price'] = $_SESSION['Price']+ $_GET['P_Price']; $_SESSION['Items']++; " <div class=\"shopping_cart\"> <div class=\"cart_title\">Shopping cart</div> <div class=\"cart_details\">Items echo $_SESSION['Items']; <br /> /// this line has error <span class=\"border_cart\"></span> Total: <span class=\"price\">echo $_SESSION['Price']; </span> ////this line has error also </div> …

Web Development php session
Member Avatar for mamdouh ramadan
0
114
Member Avatar for Farhad.idrees

hi i have one page where i will get Categories of Products and i want to make session of those Categories..But when i referesh page session break...my code is.. [CODE] session_start(); $_Session['P_Category'] = $_GET['P_Category']; ////line 8 $P_Category =$_Session['P_Category']; $query = "select * from tblProducts_info where P_Category = '$P_Category'"; $result = …

Web Development php session
Member Avatar for mamdouh ramadan
0
100
Member Avatar for Punkis448

Hi again. I have a project that gets from mysql the data that i search. Until 10 minutes ago, the results could not display me correctly the Greek characters from mysql. The search system searches the title of the item which contains English and Greek characters. I solve this problem …

Web Development php
Member Avatar for mamdouh ramadan
0
145
Member Avatar for rahulvramesh
Member Avatar for ko ko
0
277
Member Avatar for cipcip

Hi, I have an odd error in my logout.php file maybe you can help me. I have this in the start of my file: [CODE]<?php include('../config.php'); session_destroy(); session_unset(); ?> [/CODE] In config.php I have session_start(); A little down in the page I have this: [code]<?php echo 'Logged out...'; echo '<meta …

Web Development php
Member Avatar for ko ko
0
136
Member Avatar for abhinav bagora

Hello to Everyone, I m involving in social networking website in php.Can anybody help me for building add friend system in php?

Web Development php
Member Avatar for cereal
0
152
Member Avatar for Graycode

Hi all, So I launched a clients website using Wordpress and for whatever reason they seem to be encountering this issue whereby they cannot login. The issue is baffling as no changes were made but i get this message when trying to login through wp-admin <strong>Warning: Cannot modify header information …

Web Development php wordpress
Member Avatar for Insensus
0
289
Member Avatar for Tristan2036

Okay i have been looking my best for this problem on forum. I have a website script written in php, now the menu it has is in php and uses a tpl file. This is very crude compared to what i need, now i post here in DHTML because the …

Web Development javascript
Member Avatar for Airshow
0
348
Member Avatar for ivan3510

Hi! I want to check if some file on some other server exists. I have this code (but something is wrong with it): [CODE]<?php $notworking=array(); $false=0; $link="http://uploads.mp3songurls.com/"; $files=glob("genre/*.xml"); foreach($files as $file){ $xml=new SimpleXMLElement($file,null,true); foreach($xml as $info){ if(fopen($link.$info->link.".mp3","r")==false){ $false++; $notworking[$false]=$info->name." => ".$info->author; } } } if($false>0){ $file=fopen("notworking.txt","w"); for($i=1;$i<=$false;$i++){ fwrite($file,$notworking[$i]."\r\n"); } fclose($file); …

Web Development file-system php
Member Avatar for ivan3510
0
212
Member Avatar for Cap'nKirk

Hi, a bit of a long title to this thread, I know, just trying to make it obvious. lol Anyhow, I am building a Twitter widget for my own website and have got really stuck on one aspect of it, namely the 'source' i.e. which application the 'user' used to …

Member Avatar for Cap'nKirk
0
179
Member Avatar for deraad

I have two functions that work fine individually, but when used together, create the other function not to work for some reason.. :'( My first function submits a form using ajax: [CODE]$(function() { $("#saveList").click(function() { var listname = $("input#listname").val(); if (listname == "") { $('#listnameError').fadeIn("slow"); setTimeout("$('#listnameError').fadeOut('slow')", "1200"); return false; } …

Web Development javascript
Member Avatar for deraad
0
1K
Member Avatar for hirenpatel53

Hi all i am using asp.net uploader in my application when i am using file with size less than 5 mb to upload working fine but while try to upload more than 5 mb it gives some standard error like server may down page may not be available an all …

Web Development asp asp.net
Member Avatar for hirenpatel53
0
118
Member Avatar for mualanj

hi,i am new to daniweb,glad to be a member of such wonderful community, what i am trying to build a google map where user can find a train location by entering the train name into the search box. i have two php file one is gmap.php which is outputing the …

Member Avatar for vibhaJ
0
186
Member Avatar for ivan3510

Hi! This is my problem. If I write letter č or ć in textarea, and then if I use php to check if there in textarea is letter č or ć, it doesn't work, here's code: [CODE] <?php if($_POST['sub']){ $tekst=$_POST['tekst']; $array=array("&#x010D"); //& # x 010D iz unicode for č, i …

Web Development php
Member Avatar for ivan3510
0
262
Member Avatar for arshadarsal

i also experienced this problem,my web page showing multiple entries also. Please help me This is my code \:- [CODE]userid=Session("username") %> <html> <head> <title>Tax Invoices</title> <script language="JavaScript"> function openwindow(path) { window.open(path,"bill","menubar=yes,resizable=yes,scrollbars=yes,width=800,height=450,top=50,left=50"); } </script> <link rel="stylesheet" type="text/css" title="CSS" href="Include/Styles/style.css" media="screen" /> </head> <body> <table topmargin="0" leftmargin="0" align="center" ID="Table1"> <tr> <td><img src="images/headerksphc.jpg" …

0
137
Member Avatar for ramareddy_dotne

Im unable to maintain the tab order when ever my controls autopostback get executed. I hav 4 controls and my 3rd controls prop of autopostback is true.when ever autopostback is executed the control goes back to first.how 2 solve this

Web Development asp.net
Member Avatar for umesh1987
0
178
Member Avatar for rohoni

hi i am trainer in php, in interview the first question is What is the difference between php4 and php5? Please tell me how can i answer for this question

Web Development php
Member Avatar for rajeevbu
0
521
Member Avatar for extemer

how can i get the ip address of the user on my email while the user clicks the submit button anyone could help me

Web Development php
Member Avatar for anandgodar
0
689
Member Avatar for encodeme

Hi I'm not sure wher I am going wrong. I've borrowed some code and tweaked it. The database table consists of id,dates,day,type,. The form brings up the mutiple enteries to edit, but when the submit is pushed it refreshes with the original information. i've checked the databse and that remains …

Web Development mysql php
Member Avatar for IIM
0
2K
Member Avatar for StevenSchaffner

I am working on something for school as a final project before graduation. I am using ASP for the website and VB as the back end to code. I keep getting the error "Object reference not set to an instance of an object" and can't figure out what is wrong. …

Web Development asp asp.net vb.net
Member Avatar for StevenSchaffner
0
234
Member Avatar for rakwel10

as the title says, "close popup window after submit then redirect to parent". how do i do that? i google it and i saw that some people are using the following code: [B]window.close(); window.opener.location.reload(); [/B] The problem is, i dont know how to use and where them. pls guide me. …

Web Development javascript
Member Avatar for almostbob
0
20K
Member Avatar for ionko

I'm trying to make a price calculator for my friend's car shipping company. It seemed like a simple thing to do but with my skills I'm having some problems. The calculator takes the distance from zipcode 1 to zipcode 2, and mutplies the total miles by .32 to get the …

Web Development api engineering json mathematics php
Member Avatar for ionko
0
253
Member Avatar for l0ns008

This is a redone post as my last one contained all of my code and I wanted to simply for the post. Here is what I am doing: I show the categories that the user has placed a referral in on the page "my_categoreis.php". The user then can select a …

Web Development php session
Member Avatar for l0ns008
0
193
Member Avatar for Juriy

part of index page [CODE] <form id="form1" name="form1" method="get" action="show.php"> <select id="mark" name="mark"> <option value="">--</option> <option value="100">BMW</option> <option value="101">Audi</option> </select> <select id="series" name="series"> <option value="">--</option> <option value="1" class="100">1 series</option> <option value="3" class="100">3 series</option> <option value="5" class="100">5 series</option> <option value="6" class="100">6 series</option> <option value="7" class="100">7 series</option> <option value="11" class="101">A1</option> <option value="23" …

Web Development javascript javascript-jquery
Member Avatar for Juriy
0
325
Member Avatar for chris_j_haines

Hi, I have found this forum very useful so far so I was hoping someone could offer me some help again as I have run out of ideas. Basically here is my code: addcontact.php [CODE] </head> <body> <div id="container"> <div id="header"> <table width="980px"> <tr> <td align="left"><img src="images/lcaclogo.gif" width="100px" height="100px"></td> <td><h1>LCAC …

Web Development file-system php
Member Avatar for ddymacek
0
190
Member Avatar for robpal

Hi there, I hope someone can tell me what I'm doing wrong here. I have a SelectCommand in my asp.net page (v4) that pulls a variable from the Profile to run a subquery to get the value to test within the main query. (Confused yet?) This works for 2 of …

Web Development asp.net sql
Member Avatar for robpal
0
119
Member Avatar for riseguim

I would like to know if it is possible for someone to fill a form on my website, but instead of sending it to a email or database, simply print it? Because we can't handle credit cards here, and I want people to fill in the form, print it, and …

Web Development php
Member Avatar for riseguim
0
145
Member Avatar for cgull

Hello, As much as I try I can't totally understand how to use preg_match. I have downloaded an open source system from the internet that I want to use, but they use ergei in their code. When I change it to preg_match I get all kinds of errors. Can someone …

Web Development open-source php
Member Avatar for cgull
0
148
Member Avatar for lainey_nix

I apologise if i have placed this query in the wrong forum - I'm new here. When i try to access the index or default pages of my website i get this error... [QUOTE] Server Error in '/' Application. -------------------------------------------------------------------------------- Could not load file or assembly 'FredCK.FCKeditorV2' or one of …

Member Avatar for stbuchok
0
408
Member Avatar for stbuchok

I've seen a lot of people having issues debugging JavaScript code. So here is how you can easily debug your JavaScript code using Visual Studio (I believe firebug has similar functionality). Also if someone has Visual Web Developer can you confirm that you can do it in that as well …

0
124
Member Avatar for Cap'nKirk

Hi, I am trying to build a Twiiter website widget using the Twitter API, that will display a list of recent tweets. I am stuck on one piece which is the display of the URLs in the tweet. I am using preg_replace to look through the text and find a …

Web Development api php
Member Avatar for Cap'nKirk
0
302
Member Avatar for DotNetKnight

Hi, We are currently facing a strange issue. We are having an error logging functionality that logs errors occurring to a database. A scenario occurs where there is an error occurring in the application, custom error page comes up. When looked in the database for error description error is not …

Web Development asp asp.net
Member Avatar for migandhi
0
231
Member Avatar for YMCMb

Hello everyone, i have a gridview on my form, and i have some data which gets calculated once the user select a row, however the user does not need to see a specific column. Is there anyway that i dont display that certain column however be able to use the …

Web Development asp.net
Member Avatar for YMCMb
0
73
Member Avatar for Virangya

Hey this is my code.. I'm trying to display whats in "carefare" variable inside a div. But it's not working I have no idea. All names of the div's are correct. and when i use alerts(commented) correct values are displaying but it's not getting printed inside my divs. Always the …

Web Development javascript javascript-jquery
Member Avatar for Airshow
0
186
Member Avatar for pinar747

Hello, I am trying to make a very simple form about the courses students have taught in the past. if there is more than on course they taught I want to make an "Add More Button" so that the form reappears. Kinda like the fields sections in PHPMyAdmin interface. The …

Web Development php
Member Avatar for ivan3510
0
162
Member Avatar for ErangaD

I have 2 text boxes A and B I want the answer A-B displayed on A Text box 'onchange' event of B Please help me Thanks God Bless Eranga

Web Development javascript php
Member Avatar for ErangaD
0
155
Member Avatar for karthik_ppts

Hi Frendz, Can we merge two images into a single image using PHP?

Web Development image php
Member Avatar for karthik_ppts
0
111
Member Avatar for mev9669

Hi, The web application I developed throws an error to get the domain name that I set using session variable in session_start in global.asax file. The error gets resolved if I upload the web.config file. But the problem is that the error comes up again. The support st the hosting …

Web Development asp.net session
Member Avatar for mev9669
0
150
Member Avatar for lalaka90

hello.i need help form you all. i am beginner in php and my english is not good.. my problem is when the pop up message proceed delete, although i click cancel. my data is delete ? this is my coding <?php session_start(); $noC = $_REQUEST['noC']; include("db_connect.php"); mysql_select_db($database_localhost, $conn)or trigger_error(mysql_error(),E_USER_ERROR); $sql="DELETE …

Web Development php
Member Avatar for lalaka90
0
128
Member Avatar for sunjava1

I am facing problem in updating the number of times the link is clicked. The function to update links works fine in a new file. But when I include it in the link counter file, this function is not working.i.e. not updating the number of times a link is clicked. …

Web Development php seo
Member Avatar for shaams
0
296
Member Avatar for vinothrao84

Hi All, I need desperate help. I have a group "MyGroupABC" in Active Directory (AD). In this group there are close to 100 list of users. How can i write a logic to actually to get me the list of users with their particulars details such as Name, SN, GivenName, …

Member Avatar for G_Waddell
0
301
Member Avatar for _8Bit

Hi! I'm new here, I have been stuck on this for about to weeks. I am trying to replicate something like the [URL="http://humblebundle.com/"]humble bundle's[/URL] website, where they give you a url like [url]http://humblebundle.com/?key=hj2qg4j2h34234[/url] and you can access the page. I have tried for about 2 weeks but can't figure it …

Web Development mysql php
Member Avatar for Ichcha
0
212
Member Avatar for zack654

Hi Whenever I have error in PHP script, it doesn't return errors, it only returns blank page. So, when everything is OK, script works perfectly, but when I have error, it's only blank page in browser. I use Debian 6.0.2 any help is appreciated :D

Web Development debian php
Member Avatar for coolest_987
0
239
Member Avatar for Smudly

I'm planning to create a voting page, where users can vote on different ideas or suggestions. I think for my situation it will be best to use a Thumbs Up / Thumbs Down type voting system. Can anyone explain how these work? Do they use division, average, etc? Thanks

Web Development php
Member Avatar for coolest_987
0
280
Member Avatar for PixelatedKarma

I came across an interesting thing and I am wondering how if at all it would be possible, I have found the reverse basically of what I want to do thanks to google but am baffled if its possible or if I am going to need to find another workaround. …

Web Development php
Member Avatar for vibhaJ
0
94
Member Avatar for brandon beasley

I am making an admin product form where my client can insert product title, description and thumbnail into the mysql database table which displays on my product page. They want to be able to add products on their own so I need to be able to let them to do …

Web Development html-css image mysql php
Member Avatar for vibhaJ
0
810
Member Avatar for Graycode

Hi, I am just in the mix of transferring a design that I had created for my client over to their domain. I had someone transform my design into a wordpress but they made such a mess of it, not completing many elements and now it is 2 days til …

Web Development html-css php wordpress
Member Avatar for G&G Designing
0
157

The End.