52,566 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for oneill

Hi, Some decoded a zend file for me but i get this error: [CODE=php]Parse error: syntax error, unexpected '*' in /home/xxx/public_html/.main.php on line 136[/CODE] the code is: [CODE=php]mt_srand( ( double ) * 1000000 );[/CODE] I just delete the [b]*[/b] ? Sorry i dont know much about php.

Web Development php
Member Avatar for jomanlk
0
157
Member Avatar for quickworld

Hi.. I'm new bie in php.I'm trying to create a "Asset Tracking System" software using php,mysql. I create menu named ats_itmentry,ats_itmissued,ats_itmreturned. but how to make each three form for insert data through these ? pls help me. i want it with php.

Web Development php
Member Avatar for quickworld
0
107
Member Avatar for mldardy

Does anyone know how to do FileUpload in asp.net 1.1. My current code works for 2.0 but I need to do this for 1.1. I know that FileUpload.HasFile doesn't work.Here is my code: [CODE]<%@ Page Language="vb" AutoEventWireup="false" Inherits="Promethius.PCMSPro.UploadFile" %> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <script runat="server"> Protected Sub …

Web Development asp asp.net file-system
Member Avatar for nirveshverma
0
447
Member Avatar for fawkman

Hi guys I am very new to php and am trying to create a small content management site. Hopefully I will have posted this correctly, sorry If I have missed anything out. I want to be able to have an admin page link show up when i log in as …

Web Development php session
Member Avatar for glycerine
0
113
Member Avatar for aditi_19

I am creating a simple report using FPDF which opens fine. I have a link on my php page to generate the report in a new tab. But after generating the report, when i click to any button or radio box on the php web page, the design view of …

Web Development pdf php web-design
Member Avatar for urtrivedi
0
7K
Member Avatar for revata

I'm building a few simple CMS variables into an Dynamic site that I half-built with Dreamweaver. The following code is the initiation of a paginated recordset display generated by Dreamweaver: [CODE]$currentPage = $_SERVER["PHP_SELF"]; $maxRows_creditsList = 6; $pageNum_creditsList = 0; if (isset($_GET['pageNum_creditsList'])) { $pageNum_creditsList = $_GET['pageNum_creditsList']; } $startRow_creditsList = $pageNum_creditsList * …

Web Development cms mysql php
Member Avatar for CFROG
0
148
Member Avatar for just_me

hi guys! I got a problem when I want to display the array from the database and rank it. can someone fixed this problem:- [CODE] <?php session_start(); include "mysql.php"; // you have already opened your db connection $report_status = isset($_REQUEST['reportTotal']) ? $_REQUEST['reportTotal'] :""; //$query = mysql_query("SELECT * FROM `supplier_report` " …

Web Development php session
Member Avatar for just_me
0
95
Member Avatar for serendipity

I have a web form. I want the "enter" key disabled from sending the form so users have to SUBMIT in order to send form. Have the following entered in the head: [CODE]function stopRKey(evt) { var evt = (evt) ? evt : ((event) ? event : null); var node = …

Web Development javascript
Member Avatar for serendipity
0
178
Member Avatar for just_me

hi everyone I need help regarding my php code. I used array to insert data in the database. I want the value will be in ranking system such as: 1 0.575 2 0.456 3 0.327 the thing is the value whic is in the database such as 0.575 will be …

Web Development display php
Member Avatar for just_me
0
98
Member Avatar for oneill

Hello Someone decoded a zend file for me.. after uploaded it on ftp i get some errors, i tryed to fix but (dont know if what it did is right, i dont have skills in php) now im stuck and i dont know where the problem is. Please take a …

Web Development php
Member Avatar for fumnimda
0
120
Member Avatar for web3

I have a twitter clone and i was wondering how to display users tweets on his profile.

Web Development php
Member Avatar for CFROG
0
61
Member Avatar for rapture

Another problem in my program is that I can't get my access database to update. It works on the other fields here is the code [code] Public Sub Lockuser(ByVal path As String, ByVal userId As String, ByVal access As Boolean) Dim sqlConn As OleDbConnection Dim oCommand As OleDbCommand Dim stmt …

0
107
Member Avatar for naush83

Hi, I am using active direcory based windows authentication in my intranet application as explained in the article [url]http://weblogs.asp.net/scottgu/archive/2006/07/12/Recipe_3A00_-Enabling-Windows-Authentication-within-an-Intranet-ASP.NET-Web-application.aspx#457094[/url]. Everything works fine. But I need a mechanism "Log in as another user" like in sharepoint portals. When user clicks on "Log in as another user" button, the borwser must prompt …

Web Development asp asp.net sharepoint web-browser
Member Avatar for naush83
0
191
Member Avatar for paptamas

Hy everyione. I'm new here (@daniweb). I used in my web projects some open source wysiwyg editor, like FCKeditor. And I want to create a very simple wysiwyg editor. With html and javascript. To make text bold, italic, colors, etc. But how to start? Any ideas! Thank you in advance:)

Web Development html-css javascript ui-ux
Member Avatar for paptamas
0
115
Member Avatar for puk

Hi, I ve got php set up on my localhost using IIS 7 which all works fine. iv also got Argosoft mail server.net free setup as well. The problem i have is that when i try to send an e-mail using a php e-mail script i get the following error: …

Web Development php
Member Avatar for puk
0
77
Member Avatar for Toxikr3

Hi guys, I have a very simple question I can't solve because I haven't used arrays. How can I make a For Loop that increments by 1 and when it does that takes the value and puts it in an array. So eg. Loop 1 Array = 1 Loop 2 …

Web Development php
Member Avatar for Toxikr3
0
98
Member Avatar for Mapper99

Is it possible to get a PHP page to popup in a new page after a form post? Then, return information from the popup page to the parent page? Right now when I post my data, the browser window navigates to the new page and I have no way to …

Web Development php
Member Avatar for diafol
0
217
Member Avatar for web3

I have a little twitter clone but how to display messages from mysql from newest to oldest. [CODE]<?php session_start(); $connect = mysql_connect ("localhost","root","") or die (mysql_error()); mysql_select_db ("login4") or die (mysql_error()); $_SESSION['username']; $username1 = $_SESSION['username']; $username = $_POST['username']; $submit = $_POST['submit']; $micro = $_POST['micro']; $date = date("d-m-Y"); if ($submit){ mysql_query(" …

Web Development php
Member Avatar for Will Gresham
0
111
Member Avatar for seanooi

Is it possible to write a php function that wraps every newline inside a <pre></pre> block with a <code></code> block? An example would be something like: [code] <pre> <code>first line here</code> <code>second line here</code> <code>third line here</code> </pre> [/code]

Web Development php
Member Avatar for seanooi
0
153
Member Avatar for lcyew

Hi. I'm using php and mysql for a system. I have some questions on INSERT query. When we are using INSERT, in our query.... i. Is it necessary to include each field included in the table we are going to insert value with (though some of the field maybe do …

Web Development php sql
Member Avatar for lcyew
0
99
Member Avatar for jbennet

Ok i am making a CMS using PHP/Mysql (its designed as a learning experience for me so it will not be anything like mambo etc... :) ) Anyway, here are some screenies. If anyone wants to help then I would happily share what little code I have written.

Web Development cms php
Member Avatar for Stefano Mtangoo
0
836
Member Avatar for Ritushido

Hi, I have searched for ages trying to find a solution for this but I cannot. I'm still learning asp.net so apologies if this is a noobish question, but could somebody please look at my code and tell me what's wrong? I have a small cms that uses fckeditor to …

Web Development asp.net cms sql
Member Avatar for sknake
0
150
Member Avatar for genieuk

Hi, My site uses sessions and for example on login a random token as a hidden field in the form is generated and added to the session. As i am on shared hosting i set my own session path outside root directory and if for example session is tampered in …

Web Development php session
Member Avatar for genieuk
0
132
Member Avatar for severman

hi all what i want to do is that when im running a shell script, if there is error(like permition denied) i wil be able to catch it as string my code is [code] $cmd= `sh /blabla/bla.sh` print_r($cmd); [/code] if the script is ruuning with no errors, im able to …

Web Development php
Member Avatar for severman
0
137
Member Avatar for sandeep_1987

I want to create a User Control,that contains two textboxes & button.Can anybody tell me how to create user control with events??

Web Development asp.net
Member Avatar for sandeep_1987
0
84
Member Avatar for wewehalim

Hi, this is my final project. I have generated an xml string, this is my code: [code]import java.io.StringReader; import java.io.IOException; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; import org.w3c.dom.CharacterData; import org.w3c.dom.Document; import org.w3c.dom.Element; import org.w3c.dom.Node; import org.w3c.dom.NodeList; import org.xml.sax.InputSource; <%@ page import="javax.xml.parsers.*" %> <%@ page import="org.w3c.dom.*" %> <%@ page import="java.io.*" %> <%@page import="recipe.*" …

Web Development java-jsp xml
Member Avatar for vishugs
0
402
Member Avatar for web3
Member Avatar for Atli
0
106
Member Avatar for priyapratheep

Hi friends, I am new bie to programming.This is my first project.so the tecnical terms i am not familier. I am doing one small project with Eclipse Europa,jsp , EJB. with XDoclet, weblogic server I first created all my jsp files as one project.Then i created one enterprise application project …

Web Development java-jsp session
Member Avatar for peter_budo
0
175
Member Avatar for apgriffiths

I have a datalist that is populated using an ArrayList. When this is rendered i want to set the background image depending on a list item value, at the moment i have set the image in CSS but i dont know how i would change the image depending on the …

Web Development asp.net image
Member Avatar for apgriffiths
0
720
Member Avatar for NigelT

I wish my Users to be seamlessly sent to an alternate URL using a redirect if the original URL is not available or times out. As a total newbie to JS & AJAX, I wonder if a solution is possible to detect failure to connect to URL_a and automatically redirect …

Web Development javascript
Member Avatar for NigelT
0
94
Member Avatar for sirhcnus

I need a php script if I were to see the page It would read specific country

Web Development php
Member Avatar for Atli
0
52
Member Avatar for shishtawitch

i have register a domain on domain.com and setup my own name servers e.g ns1.mydomain.com ns2.mydomain.com but when i access my page it shows me the following error..... Great Success ! Apache is working on your cPanel® and WHMâ„¢ Server what should i do next i have never install any …

Web Development apache cpanel php
Member Avatar for smartness
0
120
Member Avatar for K0ns3rv

Hey guys, i am currently working on a project. It's a web application for registering the amount of time an employee has worked. I have written the web app for adding a new employee and for adding a timestamps( e.g work done). Now my problem is like this i need …

Web Development php
Member Avatar for K0ns3rv
0
135
Member Avatar for msweets0778

i keep getting this i cannot see the problem i have looked Parse error: syntax error, unexpected T_STRING in /home/wwwmmsw/public_html/includes/languages/english/contact_us.php on line 15 [code=php]<?php /* USERCART 2 Lithium [url]http://www.usercart.co.uk[/url] Copyright (c) All right are reserved 2001 - 2009 USERCART ECOMMERCE [email]sales@msweets.co.uk[/email] */ define('HEADING_TITLE', 'Contact Us'); define('NAVBAR_TITLE', 'Contact Us'); define('TEXT_SUCCESS', 'Your …

Web Development ecommerce php
Member Avatar for CFROG
0
106
Member Avatar for web3

I now how to make a profile but how to make for every user when he logs to view button my profile and takes them to their profile.

Web Development php
Member Avatar for CFROG
0
98
Member Avatar for Froger93

Hey guys, I have a problem. I have a connections_lib.php file this will handle all of my db connections, this works AMAZINGLY (power of OOP). Unfortunately some of my other classes require connection to the databse therfore they must use these methods (is that the right word for OOP I'm …

Web Development php
Member Avatar for Froger93
0
183
Member Avatar for web3

Why it won't send this to mysql.Connection is ok.Here is the code. [CODE]<?php $connect = mysql_connect ("localhost","root","") or die (mysql_error()); mysql_select_db ("login4") or die (mysql_error()); session_start(); $_SESSION['username']; $username1 = $_SESSION['username']; $username = $_POST['username']; $submit = $_POST['submit']; $micro = $_POST['micro']; if ($submit){ $queryreg = mysql_query(" INSERT INTO messages VALUES ('','$micro','$username') "); …

Web Development first-post mysql php
Member Avatar for diafol
0
73
Member Avatar for rukshilag

we have just started learning PHP as a course in our 2nd year subject Internet Application development. below are the codes that we have worked on so far. [B][U]Homepage :[/U][/B] [code=html]<HTML> <HEAD> </HEAD> <BODY bgcolor='yellow'> <P align='center'><FONT color='blue' size='6'>ABC & Company</FONT></P> </BODY> </HTML>[/code] [B][U]Login.php :[/U][/B] [code=html]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML …

Web Development php
Member Avatar for israrkhan
0
83
Member Avatar for julseypart

hi, i copied my aspx files to httpdocs/ but when i navigiate to the index.aspx page i get an error saying : To update your index page modify the file /httpdocs/index.html is this the right folder to put them in or is there some configuration to do? its looking for …

Web Development asp.net
Member Avatar for cherice
0
98
Member Avatar for crohole

I have a code to detec backlink from yahoo and google like this : [CODE] function google_backlink($uri) { $uri = trim(eregi_replace('http://', '', $uri)); $uri = trim(eregi_replace('http', '', $uri)); $url = 'http://www.google.com/search?hl=en&lr=&ie=UTF-8&q=link:'.$uri.'&filter=0'; $v = file_get_contents_curl($url); preg_match('/of about \<b\>(.*?)\<\/b\>/si',$v,$r); preg_match('/of \<b\>(.*?)\<\/b\>/si',$v,$s); if ($s[1]!=0) { return $s[1]; } else { return ($r[1]) ? …

Web Development php seo
Member Avatar for cwarn23
0
153
Member Avatar for digtokiller

Hello all, i need a movie/mediaplayer and i could imagine that it would be in javascript. all it should be able to do is to play mp3(music) and wmv(movie) files. it need a start,stop,pause and fullscreen button. anyone can give me a code just to place in my page? thnx …

Web Development javascript
Member Avatar for digtokiller
0
200
Member Avatar for Tryin2learn

Hi all, I am trying to get a grasp of web form data getting passed to PHP, then dumped into a SQL Database (2005). I have created the form in html. but because the form is an employee application there are a lot of text boxes, radio button, etc etc. …

Web Development html-css php web-server
Member Avatar for Graphix
0
109
Member Avatar for fudgealtoid

I wish to limit uploading to the video files swf pps bmp pps png gif mpg mp3 and wav - i'm sure I have the file / type incorrect. can someone please give logical solution... here's my code: [code=php]<?php if ((($_FILES["file"]["type"] == "video/swf") || ($_FILES["file"]["type"] == "video/pps") || ($_FILES["file"]["type"] == …

Web Development file-system php video
Member Avatar for crohole
0
514
Member Avatar for broll911

I am getting an error message on this php script and am a total loss as I am a complete novice and have no idea. Can someone give me some help? here is the error and also the code. Parse error: syntax error, unexpected T_VARIABLE in /home/content/m/i/x/mixxsalon/html/FormToEmail.php on line 1 …

Web Development php
Member Avatar for jomanlk
0
382
Member Avatar for fawkman

Hi guys I am very new to php and am trying to create a small content management site. Hopefully I will have posted this correctly, sorry If I have missed anything out. I have a self referencing form, which allows me to enter a file name and browse to a …

Web Development php session web-server
Member Avatar for jgeboski
0
119
Member Avatar for infernojmd

okay so i am doing a program that lets you type a name of a friend in and submit and it will display a picture of that friend but my output wont show the picture, it will have some type of error. if you look at the picture attached that's …

Web Development php
Member Avatar for Atli
0
104
Member Avatar for jonow

Hi, I was wondering how you keep a navigation menu up-to-date on a 200 page website. When I first started using HTML I used an iframe which it is a [I]terrible[/I] idea. Now i am using PHP (im using include). But i am guessing this is also very inefficient. SO …

Web Development html-css php
Member Avatar for codejoust
0
139
Member Avatar for nish123

i have to call Mysql Procedure from Php... I dnt know how it is work..!! Waiting for positive reply..!! :)

Web Development mysql php
Member Avatar for Atli
0
241
Member Avatar for cheapterp

Hi all, I have a form where my colleagues enter basic details about participants in a study. The 'action' attribute of the form takes the control to a 'validateForm.cfm' script where, as the name suggests, form validation is done. If there are any problems, I show the errors as well …

Web Development coldfusion
0
170
Member Avatar for zaish

Hi Brothers, I m completely new at PHP, i dont know anything about php but from different sites i have come to know that i can redirect my unfriendly url to friendly urls. so i have started a short project but i dont know how to make url writing plz …

Web Development php
Member Avatar for Will Gresham
0
312

The End.