17,029 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Virangya

hi, i need to build a slider. which is not there in the page when it loads. then after few seconds it appears and slides from the right hand side of the window and stops at some position on the screen. then after few seconds it changes its image into …

Member Avatar for Virangya
0
186
Member Avatar for 54uydf

is it possible to import say 10 excel files into DB at once? like in PhpMyAdmin, I go and import each file one by one and they are added as new tables. is there some kind of php code I can write to take all files in X folder and …

Web Development php
Member Avatar for 54uydf
0
408
Member Avatar for ghost_from_sa

Hi guys, I seem to have come across a weird issue in internet explorer. I've been working on doing regular expressions for a register form, and I've checked it in Firefox, and Chrome and it seems to work for both of them but yet it doesn't work for Internext Explorer …

Web Development javascript regex web-browser
Member Avatar for vibhaJ
0
253
Member Avatar for CFROG

I'm receiving an 'undefined index' error when calling a new window and I can't quite figure out why. Seems to me like the variable is not being passed, or holds no value, and again I can't figure out why. I use an identical code for 'state' with no issues. Here …

Web Development php
Member Avatar for mwita
0
145
Member Avatar for CodeFusion1

Hi. I'm trying to write a simple scheduling script, but have run into a problem. I'm fairly new to PHP, and so have no idea how to update multiple rows in a mysql database. Currently, my code connects to the database and reads each row. If "class" is empty, it …

Web Development php
Member Avatar for CodeFusion1
0
851
Member Avatar for aalokwar

Hi, I am getting errors when trying to run a website in asp.net 2.0. When opening in browser, Error is: HTTP Error 500.24 - Internal Server Error An ASP.NET setting has been detected that does not apply in Integrated managed pipeline mode. When clicking on debugging it displays an error …

Web Development asp asp.net web-browser web-server
Member Avatar for hericles
0
242
Member Avatar for Bazzaah

Hey there I'd appreciate some help with variables please. I have a search function on a site I'm building and would like to have it so that a user can click on a search result to see more columns from that row on the db, if you see what I …

Web Development mysql php
Member Avatar for Bazzaah
0
116
Member Avatar for gilgil2

Hi, I have the following code to edit a .txt file, but it says there is an error on line 34, I am not sure what it is. Also there are bound to be other problems with the code, so please feel free to point them out. [CODE]<? if ($_POST['pw']!="") …

Web Development html-css php
Member Avatar for gilgil2
0
2K
Member Avatar for jacksantho

i have a little form with a select list, and i am submitting the form every time i select an item. the problem is that, after selecting a value and submitting the form, the selected item doesn't remain selected. Is there any method to keep the selected item selected in …

Web Development php
Member Avatar for almostbob
0
14K
Member Avatar for dwlamb

This isn't really a PHP question but I couldn't find the right place for it. I'm getting these strange characters -  - in my source code before the Doctype tag. I've encountered this before when working in Notepad++ using ANSI as UTF-8 or similar formats with BOM for encoding. …

Web Development open-source php
Member Avatar for dwlamb
0
223
Member Avatar for eduard77

I try to install smarty and when I write the require code I cannot find the path [CODE] require_once ('d:/wamp/bin/php/php5.3.5/Smarty-3.0.8/Smarty.class.php'); [/CODE] or if you could tell me which is the correct syntax in the ini.php page. Thanks

Web Development php
Member Avatar for diafol
0
93
Member Avatar for cgull

Hello, I have a new website that I have created, and when I test it and submit the contact form I get this error: Warning: Cannot modify header information - headers already sent by (output started at /home/breadan1/public_html/clunyanimaltrust.za.org/index.php:7) in /home/breadan1/public_html/clunyanimaltrust.za.org/content/fgcontactform.php on line 143 I googled it, tried everything that I …

Web Development php
Member Avatar for cgull
0
497
Member Avatar for mijorog

So I have a database that stores when someone leaves and when they return to. dayleft dayreturned I need to do a query and also an cfif to see if a date selected is between these dates. test - selected date the Here is my long if [CODE] <cfif (datecompare(vactrue.dayreturned, …

Web Development coldfusion sql
Member Avatar for arrgh
0
1K
Member Avatar for Sorcher

[ICODE]You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-userfile WHERE id='642' AND userid='459'' at line 1[/ICODE] This is the code [ICODE] $query = "SELECT * FROM ue-userfile WHERE id='$imageid' AND userid='$userid'"; $result = …

Web Development mysql php
Member Avatar for Sorcher
0
70
Member Avatar for klemme

I have this while loop, and it is only returning the last row... Havent experienced that before, but here it is, looks fine to me? [CODE] <?php // NAVIGATION: $subjectset = mysqli_query($connection, "SELECT url, link FROM subjects ORDER BY id ASC"); while($subject = mysqli_fetch_array($subjectset)){ $url = $subject['url']; $link = $subject['link']; …

Web Development php
Member Avatar for klemme
0
171
Member Avatar for nblackburn

Hello, im having a problem with php's file_exists and is_file, it seems to be passing if a file was not specified, i looked into the official php documentation to find file_exist and is_file can also check i directory exists but i dont want this i just want to check if …

Web Development php
Member Avatar for nblackburn
0
19K
Member Avatar for spawn2004

Hi all, i need some help with my php code. I want to create upload form with 4 fields : two dropdown buttons, 1 text field and the browse button. I have problem with validating my files ,because i want only to upload pptx, ppt and pdf files , to …

Web Development pdf php
Member Avatar for ddymacek
0
144
Member Avatar for William Blore

Hello, I've get very elementary problem with javascript I add onclick option to one of paragrahps, but it doesn't work properly, It should display result of my new function, but it display result in a new, empty page. (My function work properly, but connecting it with onclick and button is …

Web Development javascript
Member Avatar for William Blore
0
118
Member Avatar for stephen_UK

I would be grateful if someone could suggest what I need to do to get this to work. I have copied two short scripts which should demo the use of $_session, but the read script does not work. I believe the save script is the culprit though. Here they are: …

Web Development php session sql
Member Avatar for Rhamises
0
143
Member Avatar for shahbaz13

Hi, I am trying to display images from my db with the following code.. [CODE] <?php include_once("scripts/connect.php"); if ($q == "All Images") { $sql = mysql_query("SELECT * FROM gallery"); $q = "All Images"; } else { $sql = mysql_query("SELECT * FROM gallery WHERE caption LIKE '%$q%'"); } $limit = 7; …

Web Development cms mysql php
Member Avatar for shahbaz13
0
104
Member Avatar for dags4

I am having problems when I run my salesreport.php [QUOTE]A PHP Error was encountered Severity: 8192 Message: Assigning the return value of new by reference is deprecated Filename: controllers/salesreport.php Line Number: 390 [/QUOTE] I checked line 390 and here is the code [CODE]$pdf =& new Cezpdf('LETTER', 'landscape');[/CODE] What should I …

Web Development pdf php
Member Avatar for diafol
0
153
Member Avatar for Jeroen van Zijp

Hey all! What I am working on is a contact form with file upload functionality. (e.g. user should be able to upload a screenshot.) Uploading a file should not be mandatory. So the mail which is produced from the entered information in the form should be sent without an attachment …

Web Development pdf php
Member Avatar for soul2life
0
141
Member Avatar for Who me?

Hi, I new to PHP. I've searched all over, but with no luck. My objective is to build an array of variables that contain HTML links. (One html link per variable). Then I want to output the variables, (containing the links), so that a new random variable loads each time …

Web Development php
Member Avatar for Who me?
0
122
Member Avatar for cutebaboi

its been 6 days passed since i started making this assignment of mine it is to show how objectdatasource is used, until now, i still cannot getaway with this error, [B][U]The data source for GridView with id 'GridView1' did not have any properties or attributes from which to generate columns. …

Web Development asp.net open-source
Member Avatar for cutebaboi
0
1K
Member Avatar for videoscape

i can't get my head around how i am suposed todo this really i am stuck i have looked on tons of forums mostly this forum and what i would like to do is if a person goes on this link play?p=rLoYvtMNlO then it will load the data from that …

Web Development php video
Member Avatar for videoscape
0
203
Member Avatar for Jeroen van Zijp

I have to build a small contactform validator in JS, which checks the fields' values when submit is clicked. I am experiencing problems with getting the email validation to work properly. This is what I've got: [CODE=js]function validate_form() { valid = true; // Validation of email input if ( (document.contact.email.length …

Web Development javascript
Member Avatar for MHENRU
0
239
Member Avatar for Meonia

Hi, I'm doing a check against HTTP_REFERER after a simple form is submitted, just as an additional security measure. What's happening is that the check always fails when the script is running on the remote server, but works as intended if I test it on my localhost server. Here's the …

Web Development php
Member Avatar for Meonia
0
234
Member Avatar for dwlamb

I have an array that is multidimensional and I need to test whether an offset exists. My reading of the PHP manual for array_key_exists makes sense for a single-dimension array. My script takes results returned from the database and arranges them this way: [code=php] Array ( [1] => Array ( …

Web Development php
Member Avatar for dwlamb
0
681
Member Avatar for rowen17

hi guys, im trying to loop a variable using 00 format.. ex. 01,02,03,04.......31 im going to use this for my dropdown of date. thanks!

Web Development php
Member Avatar for eXpertPHP
0
87
Member Avatar for Buppy

Hi, A little help here needed - i want to make a class variable (array). Some values are expected to be from a session variable. Example [CODE] public $myArray = array( 'key1' => 'something', 'key2' => $_SESSION['something_else'], ) [/CODE] With this i get an error about unexpected variable. Aynone knows …

Web Development php session
Member Avatar for Buppy
0
92
Member Avatar for uselessninja

hi everyone i have a search page that will search base one date... but if i search with only date (9/27/2011 ) it will only display the data from database that has the same date and time but not the whole data in that specific date: example: in my database …

Web Development mssql php
Member Avatar for calebcook
0
342
Member Avatar for rakwel10

I have a date picker that give me this result: e.g. 2011-29-08 When it is inserted in mysql, it outputs '0000-00000'. What can I do? I know "strftime("%Y-%m-%d %H:%M:%S", time());" But I have no timestamp to put as an argument. The only data I can use is the data that …

Web Development php
Member Avatar for rakwel10
0
142
Member Avatar for rakwel10

Im creating a time-base site wherein the timestamp should rely on the global time and not to my PC's time (because it can be out-dated somethimes). How can I do that?

Web Development php
Member Avatar for cereal
0
302
Member Avatar for ashneet

I am new with session. What i am trying to do is that if someone doesn't visit my site for lets say 5 day i want the session to expire. is there a way to do this as i am not aware of it.

Web Development php session
Member Avatar for Balajipala
0
410
Member Avatar for karthik_ppts

Hi frendz, Can we set a value for a session variable through javascript onclick event? (or) How can we set a global variable for the whole website using javascript?

Web Development javascript php session
Member Avatar for karthik_ppts
0
7K
Member Avatar for 54uydf

HELP! I lost count of how many editors I tried! I don't understand why non of them work. I'm trying this editor [url]http://nicedit.com/index.php[/url] very simple. but when I type words in the textarea and click submit nothing is saved in the DB..empty that's what I get. all I want is …

Web Development php
Member Avatar for 54uydf
0
965
Member Avatar for agr8lemon

Hello, I'm trying to do a very basic page that allows me to edit a single column in a MSSQL database. For whatever reason I can't figure it out and am hoping that you can help. Here is my front page (sorry about the silly names) [CODE]$ninja_conn = odbc_connect('XXXXX','XXXX','XXXX', SQL_CUR_USE_ODBC); …

Web Development html-css mssql php
Member Avatar for agr8lemon
0
154
Member Avatar for stevenbaron1

Hi Guys, I noticed that in some apps people tend to use the following method in classes without instantiating an instance or defining objects, but this works, could someone explain whether this is a correct way of doing it. (its for a simple data management and interface app) For eg. …

Web Development oop php
Member Avatar for stevenbaron1
0
168
Member Avatar for niconico96

Hello everyone. I'm an expert html5/css3 designer, but when it comes to javascript, I don't know anything... I need some javascript code that detects a browser engine (webkit, gecko, etc.) and redirects based on that. I need webkit and gecko to redirect to home.php and all others to redirect to …

Web Development http-protocol javascript
Member Avatar for niconico96
0
235
Member Avatar for phaedrusGhost

Hi all, For some reason I can't seem to wrap my mind around JOINING tables and getting the data I need from this. I have three tables I am trying to join. I need to count the number of blogs, comments and number of views for each user. I have …

Web Development php
Member Avatar for phaedrusGhost
0
127
Member Avatar for waaliban

Hello friends, I want to write a javascript to list of all files in a folder including files in the subfolders. This is for the scorm purpose to list all the files. some examples are listing files but not listing the files inside the subdirectories. I want the file's full …

Web Development javascript
Member Avatar for nudelsalat
-1
28K
Member Avatar for manchurianCEO

Hello, I just revamped a website and rather experimented including absolutely all <head > contents within a single .php file, including google analytics. But I am a little confused now reading the analytics for my website and I wonder if google analytics, being fed to all the pages from a …

Web Development google php
Member Avatar for manchurianCEO
0
153
Member Avatar for ptemedia

Hi, I have seen a lot of people have been having a similar problem to this, but I have not found a solution and so daniweb is the best place to go! Basically, whenever I use: [CODE]<?php include_once "Filename.php"; ?>[/CODE] which I often do for the header, navigation and footer …

Web Development html-css php
Member Avatar for ptemedia
0
277
Member Avatar for rom.

Hi all. I'm trying to move someone else's app onto a different server (and debug it in the process). Among the onslaught of bugs to squash, theres one I just cant get my head around... I get a parse error on try-catch, and I have no idea why. I've isolated …

Web Development pdf php
Member Avatar for rom.
0
340
Member Avatar for Hani1991

Hello, I found this keyword written everywhere I read about classes, which is __construct. Is it a built-in method or keyword? What does it do? There's another one, which is __clone. What is it too? If they're not built-in, then why are they always preceded by 2 underscores? Thank you.

Web Development php
Member Avatar for Hani1991
0
100
Member Avatar for matleeds

Hi, I'm using Windows Vista, I have Apache HTTP server 2.2 running and am using PHP 5.2.17. I’m having a problem remotely running a php script on the web server. I run this script locally below… [CODE] <?php $file = fopen ("http://localhost/Epointment/testphp.php", "r"); if (!$file) { echo "<p>Unable to open …

Member Avatar for matleeds
0
248
Member Avatar for SagarSe7en

Hey Guys im newby to Java! Help Needed! Please Help Needed! This is How it Goes! DAO.java [CODE] private BookRecordViews populateBookObject (ResultSet Results) throws ClassNotFoundException , SQLException { int BookID = Integer.parseInt(Results.getString("BookID")); String BookName = Results.getString("BookName"); String DateOfArrival = Results.getString("DateOfArrival"); String DateOfPublish = Results.getString("DateOfPublish"); String AuthorName = Results.getString("AuthorName"); int StudentID …

Member Avatar for SagarSe7en
0
3K
Member Avatar for Rizi004

Please tell me which server i should install to run the asp files or pages, give the link of the best sever for windows 7 and also tell me the setting of server waiting for your reply Regards Rizwan

Web Development asp windows-server
Member Avatar for ArtistScope
0
225
Member Avatar for -==Zero==-

Iam Coding A Small Portal And Need Help This Is My Code [CODE]echo "<div class='posterdecoration'><img src='$row[scr1]' width='640' alt='$row[name]' /></div>"; echo "<div class='posterdecoration'><img src='$row[scr2]' width='640' alt='$row[name]' /></div>"; [/CODE] When I Put Scr1 + Scr2 From Site Panel It Show On The Site I Need To Use <If Condition> On The Scr2 …

Web Development php vbulletin
Member Avatar for -==Zero==-
0
113
Member Avatar for Sparhauoc

Greetings all, I am working on a website with data I only want logged in users to see. I currently have it where once they have logged in successfully, they can browse the website, and if they are not, they are directed to the login page. Sounds great. However, if …

Web Development php session
Member Avatar for broj1
0
122

The End.