52,566 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for invisal

How can I use variable from the outside of the class? For example: [code] <?php $outside = 'Hello'; class A { function printme() { print $outside; } } $cls = new A(); $cls->printme(); ?> [/code] How can I do it? please :D

Web Development php
Member Avatar for dr4g
0
106
Member Avatar for swaters86

I'm trying to learn php and I'm trying to build a simple form that stores data. However, I'm getting this error message when I submit my form: Parse error: parse error, unexpected T_STRING in /sites/yuma2/swaters210/home/public_html/music/music.php on line 7 you check out my form here: [url]http://www.stevenwaters.net/music/index.html[/url] [code] <? $artist=$_POST['artist']; $song=$_POST['song']; $album=$_POST['album']; …

Web Development php
Member Avatar for dr4g
0
177
Member Avatar for ReeciePoo

[CODE] <?php if (!$_GET['p']) { include "header.php"; echo "<br/>"; include "home.php"; } if ($_GET['p'] && $_GET['p'] == "home" || $_GET['p'] == "pricing" || $_GET['p'] == "portfolio" || $_GET['p'] == "order" || $_GET['p'] == "contact") { include "header.php"; echo "<br/>"; include $_GET['p'].".php"; }else { include "error404.php"; } [/CODE] The above code …

Web Development php
Member Avatar for dr4g
0
153
Member Avatar for pranto157

I am new on PHP proramming. I want to use mail() function to send mail. In my Pc there is no mail server. I have confiure my php.ini file that is - SMTP = localhost, smtp_port = 25, sendmail_from = null, sendmail_path = null. But I can not send mail. …

Web Development apache php session sqlite xml
Member Avatar for dr4g
0
195
Member Avatar for bhavin12300

i am littel new to this flied i need your littel help i got my database in my local pc at home and i want to use this database from remote place so is there any way to do this??? or any tutorial or some reference waiting for your reply …

Web Development php
Member Avatar for dr4g
0
82
Member Avatar for saasbs

Hi im a new member in this forum.. i really need your help as soon as possible, im doing my final project for graduating, its about doing a website for a hotel in jsp. i almost finished everything, now which im stock in it, and dont know how to do …

Web Development java-jsp microsoft-access
Member Avatar for yafa
0
331
Member Avatar for assgar

Hi I am php newbie and I don't know if I am approaching this properly. I need to creat a scheduler that list the appointment time on the left and client for a specific appointment time on the left. NOTE: The appointments are stored in a Mysql database This is …

Web Development php
Member Avatar for assgar
0
100
Member Avatar for Fungus1487

im converting a vb6 desktop application to run on an intranet obviously there are some things which will never work but the majority is doable but im quite worried about filesizes. i know the intranet will have faster connectivity than your average web page they are mostly running 100mbps lans …

Web Development asp.net
Member Avatar for Fungus1487
0
129
Member Avatar for Pierre147

Hello, I'm developping a web site, using masterpages and content place holders. ContentPlaceHolders I put in the table. The problem is that in IE the content is showed only in the small part of the COntentPlaceHolder, it is cut on the right and at the bottom. In Firefox everything is …

Web Development asp.net
Member Avatar for Pierre147
0
115
Member Avatar for mtarby

I'm trying to migrate some code to generate an rss feed from classic ASP to .NET (because its cleaner). I've got it working perfectly for the first feed I try, but when I tried to modify the code for the next feed I get a [B] [I]Specified cast is not …

Web Development asp asp.net mssql web-server xml
Member Avatar for f1 fan
0
140
Member Avatar for Juwar

I have created a custom template field for a gridview.When one clicks a button, the template field is supposed to be added to the gridview. Here is the code: Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click Dim assignment As String assignment = txtAssignment.Text Dim column …

Web Development asp.net
Member Avatar for f1 fan
0
170
Member Avatar for cms271828

Hi, I've installed: Microsoft Visual C# 2005 Express Microsoft Visual Web Developer SQL Server 2005 Express How am I supposed to use sql server? Can I use it from both C# 2005 Express and VWD? I haven't got a clue whats going on, I can't even uninstall sql server. Is …

Web Development asp.net web-server
Member Avatar for jbennet
0
159
Member Avatar for yuenli

Hi! I wish to build a web based application where similar to Microsoft Excel/Spread Sheet. This web based application should have an interface of spreadsheet cells where user can click around the cells to enter data. As the data being entered it will save in database where indicating which cell …

Web Development asp asp.net user-interface
Member Avatar for f1 fan
0
68
Member Avatar for johnroach1985

Hi. I am creating an asp.net web site. Using GridView the website creates a table. Now my question is I want to color the text "NO" red within the table cells. Waiting for your reply.Please keep in mind my code is written in C# so any C# examples would be …

Web Development asp asp.net
Member Avatar for johnroach1985
0
109
Member Avatar for tunday

Hi. I'm currently trying my hands on PHP and MySQL. I understand how to retrieve results from SELECT statements in PHP? However, I'm not exactly sure of how to do it when a procedure call is made e.g. [code] [COLOR=green]$query[/COLOR][COLOR=green] = [/COLOR][COLOR=green]"CALL mach_validity([/COLOR][COLOR=green]$student_id[/COLOR][COLOR=green], @result)"[/COLOR][COLOR=green];[/COLOR] [COLOR=green][B][COLOR=green]if[/COLOR][/B] ([COLOR=green]$result[/COLOR] = [COLOR=green]$mysqli[/COLOR]->query([COLOR=green]$query[/COLOR]) { [B][COLOR=green]while[/COLOR][/B]([COLOR=green]$row[/COLOR] …

Web Development mysql php
Member Avatar for tunday
0
93
Member Avatar for s s paul

Hello I want to pass the database retrieved username after user logs on & hence to check login correctness I am using php & jsp [code=php] <?php $conn= mysql_connect("localhost", "root", ""); if(!$conn){ exit("Error in SQL"); } mysql_select_db("college", $conn); $val1=$_REQUEST['login1']; $val2=$_REQUEST['password1']; $sql = "SELECT * FROM tlogin WHERE tid='$val1' AND tpasswd='$val2'"; …

Web Development javascript php session
Member Avatar for doubledub
0
88
Member Avatar for shujjah

I would be grateful if anyone could help me i need a reviews and a news script for my gaming website written in php and sql i want a reviews,and a news script. i mean i want a script that will allow me to add reviews and some other editors …

Web Development gaming php
Member Avatar for justinm
0
180
Member Avatar for Spycat

Hello, I am running a homeowner's association website (1 page only). The manager asked if I might be able to allow her access to make announcements from time to time. I think this would be a good idea, but I don't want to give her carte blanche access to the …

Web Development cms javascript
Member Avatar for Resonate
0
123
Member Avatar for ili82

Hi, My question is: which config variables in [B]PHP.ini [/B]must be set in order to show graphics? If anybody can tell me something about these settings I will be very thankful. Regards, Iliana

Web Development php
Member Avatar for vishu.awate
0
117
Member Avatar for mangophp

Anybody can pls tell me where we can use curl in our web applicaion ? want one example ..where we can need to see files from other websites ?

Web Development php
Member Avatar for mangophp
0
132
Member Avatar for steven_rhutz

Hi all, I'm having some trouble getting my php code to work properly. I'm submitting three different variables from a vxml form to my php. I then need the php to deposit the variables into files and update a mysql database accordingly, but it's not quite doing what I want …

Web Development audio php xml
Member Avatar for DanceInstructor
0
200
Member Avatar for push

hi friends am trying to work on struts at myeclipse. but am getting problum while running jsp page. can any one help me for setting tomcat server for running jsp page. And tell me steps to deployee a jsp page. for myeclipse.

Web Development java-jsp
Member Avatar for push
0
293
Member Avatar for shockeye

My company provides a property listing service that is implemented via javascript and an iframe. This particular case is a lot more customized than most, passing variables from our site to their URI for more seamless integration (usually we just pass all URI variables in the iframe). Here's the unexpected …

Web Development javascript
Member Avatar for shockeye
0
127
Member Avatar for sickly_man

i am opening a file using fopen() and that works fine. from there i want to print out the contents of the file....cant seem to get it to work. here's what i've tried so far. [code=php] $file = fopen("order_log_text.txt", "r+"); echo $file[0]; /*foreach ($file as $field) { echo $field; }*/ …

Web Development php
Member Avatar for spincycle
0
173
Member Avatar for thornside

I have two frames. The links in the left frame open up in the right. I would like to know if it is possible when clicking on links in the right frame, to put focus on the corresponding link in the left frame. Thanks in advance.

Web Development javascript
Member Avatar for digital-ether
0
116
Member Avatar for php_coder

Hello all I am trying to generate a PDF file and then edit it from the PHP script. Tried the example given in the manual......but facing a fatal error [B]Fatal error: Call to undefined function pdf_add_outline()[/B] so i tried [B]pdf_add_bookmark[/B] for bookmarking instead of pdf_add_outline() but of no use... can …

Web Development pdf php
Member Avatar for php_coder
0
157
Member Avatar for anoo36

i m doing aproject to developa groupware ie a discussion community..where users can post ther quiers related to a particular categor i m not able to sort out the problem as to how to take the data from my database so that when user log in he sees eacha nd …

Web Development java-jsp
Member Avatar for jwenting
0
95
Member Avatar for zachisevil

Hey how is everybody doing today? I am a noob in php (i actually just wrote my first php script yesterday) but I am running into a problem. I have a .php file and when I go to it on firefox it tries to either open with a program or …

Web Development php
Member Avatar for zachisevil
0
105
Member Avatar for joo123

HI ALL DOES ANYONE KNOW TAHT [url]http://www.ebazar.am[/url] IS RUNNIG ON WHICH SYSTEM OR DOES ANYONE KNOW ANY FREE SYSTEMS LIKE THIS. Thanks

Web Development php
Member Avatar for roobik
0
96
Member Avatar for Racoon200

Iam making a game, the error is that in the "d" loop (for...) the value "holeBalls" stays always the same. [code] for (d=holeNum;d<=holeBalls;d++) { document.getElementById('hole'+d).value++ } } [/code] what i want is that holeBalls here, gets the value of "'hole'+id" because now what happens is that (this is a kalah …

Web Development javascript
Member Avatar for Racoon200
0
103
Member Avatar for md_salman

I am writing a web based application using JSP and JDBC. In side a servlet I execute some code like this [code] DAO.addComments( commentsBean ); commentsList = DAO.getComments(); session.setAttribute( "comments", commentsList ); response.sendRedirect( "comments.jsp" ); [/code] when I move to comments.jsp I find all the comments except those that have …

Web Development java-jsp session
Member Avatar for sam.n
0
77
Member Avatar for tehgreatmg

I need help with writing a hit counter in javascript. I am new to weboage design so I really dont know how to go about doing this.

Web Development javascript
Member Avatar for digital-ether
0
981
Member Avatar for dudegio

Have a nice day to everyone! Pls help me on how am i going to configure my document root and drives for the fact that i encounter this errors: pls... pls... pls... `Warning: mkdir() failed (No such file or directory) in C:\websites\pjs3\BillingRegularDetailedSave.php on line 1928` `Warning: fopen("/PJS/2007-06-29/000002.txt", "a") - No …

Web Development file-system php
Member Avatar for php_daemon
0
254
Member Avatar for soutie

Hi All I'm a home educated website owner, only been doing it for three weeks. I would like to start a free membership for certain areas of the site, so far all I have tried has failed and is very frustrating. Can someone please send me to a user friendly …

Web Development php
Member Avatar for digital-ether
0
93
Member Avatar for loquela

Hi there, I've been using PHP and MySql for some time now but I am quite new to Javascript. I would like to know how it is possible to insert data stored in a MySql database into Javascript code. For exmple, I am working on a travel guide site and …

Web Development javascript
Member Avatar for digital-ether
0
945
Member Avatar for Sp!ke

I'm writing a CMS-style application, and I can't quite figure out templating. I have a function that returns the file contents of a templaet file within a themes directory. That part works fine. Inside one of those files is a mix between HTML and PHP variables, for example:[code]<html> <title>$title</title> <link …

Web Development cms html-css php vbulletin
Member Avatar for digital-ether
0
148
Member Avatar for hamarsheh

Hi everbody! i need single sign on software for our php website , For all application, because we used visual basic and php, and another things so we need software to do single sign on , that the user logs once to his page , and logs out when ever …

Web Development php visual-basic
Member Avatar for hamarsheh
0
101
Member Avatar for ruhi

Hi all, Can any one tell me how to use a value generated through a button click event in another button click event in the same page.Is viewstate is helpful? If yes then how? -ruhi

Web Development asp.net
Member Avatar for ruhi
0
140
Member Avatar for jej1216

I have a rudimentary knowledge of PHP. I'm looking for a way to create a site that lists pdf fils that the user can click on and download. We use Joomla for our company intranet, but the component we are trying is not working and the forum for it has …

Web Development pdf php
Member Avatar for jej1216
0
71
Member Avatar for Dark_Omen

My teacher suggested that I shouold learn ruby. I downloaded the software(but not the latest version). I dont know how to get it to work on my computer. I am running windows xp. If anyone can help me do this it would be great. I would also like to know …

Web Development ruby windows-xp
Member Avatar for jeanlazarou
0
287
Member Avatar for dudegio

Hello guys! I have problem with my Php program. The existing system is done in Php4.3.2. When i used the existing pages and install a freshcopy of Php 4.2.3, the login pages does not work. it reads from the database actually for the fact that if i enter a wrong …

Web Development php
Member Avatar for Puckdropper
0
166
Member Avatar for dudegio

Hello everyone! I have problem with the configuration of MySQL. I am using IIS, Php 4.3.11(CGI) and SQL Yog. All are working. I also installed and used MySQL Servers and Clients 4.0.15 for my database. If i connect to the database, i encounter this error: Can't connect to MySQL server …

Web Development mysql php
Member Avatar for Puckdropper
0
492
Member Avatar for akash_msrit

hi, i have a jsp page, in this page i am displaying data retrieved from mysql database. Now [B][U]the problem is i must color table cell based on cell value[/U][/B]. how to implement this.please give me an sample or working code foe this problem.( any code is accepted) preferably html …

Web Development html-css javascript
Member Avatar for ~s.o.s~
0
100
Member Avatar for bball7210

All, I am currently developing a UserJS "plug-in" for Opera in Linux using verision 9.21, build 641. I have encountered some bizarre problems and have been able to isolate and reproduce one using the code posted below. The basic issue throughout my code (and reproduced below) is that a command …

Web Development javascript
Member Avatar for ~s.o.s~
0
110
Member Avatar for schwarznavy

Hello, I'm not a Javascript expert -- not even a novice. But reading this forum and others, I've managed to get code in my page that allows me to have a big image, and three thumbnails. When I click on the thumbnails, a bigger version of them replaces the big …

Web Development image javascript
Member Avatar for MidiMagic
0
97
Member Avatar for 7arouf

heyguys i've used ASP.NET to create a new website using visual studio 2005 but i want to publish this website so that it can be accessible via internet... i have my domain... but somebody told me that i need an asp.net host provider... i don`t know if i bought host …

Web Development asp asp.net visual-studio
Member Avatar for sibir1us
0
129
Member Avatar for saswati_mishra

Hi, I have written a jsp file to fetch data from a database table and display it in the form of a table in jsp. The idea is to generate a dynamic table. I have written the following code. <%@page import="java.sql.*"%> <html> <head> <title>The alert table</title> </head> <body> <h1>Alerts</h1> <% …

Web Development java-jsp postgresql
Member Avatar for ~s.o.s~
0
184
Member Avatar for challenger

Greetings, I have a trigger created for table ABC to delete records from other tables connected to table ABC's key. When I run the query from the SQL Server Management, it works without error. However, when I call sqlDataSource's Delete(), it seems like it's not firing the triggers. Is it …

Web Development asp.net
Member Avatar for challenger
0
314
Member Avatar for johnroach1985

Hi. I am creating an asp.net web site. Using GridView the website creates a table. Now my question is I want to write a javascript function that colors the text "NO" red within the table cells. Waiting for your reply.

Web Development asp asp.net javascript
Member Avatar for johnroach1985
0
312
Member Avatar for HTTL

Hi. Is it possible to move the mouse with javascript? Thanks!

Web Development javascript
Member Avatar for HTTL
0
75

The End.