52,566 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for asif49

I'll get straight to the point, here's how I've coded my mailform: [CODE] <html> <body> <?php $email = $_REQUEST['email']; $subject = "Contact Us Query"; $message = $_REQUEST['message']; $message = stripslashes($message); mail("myemail@msn.com", "$subject", $message, "From:" . $email); header("Location:success.php"); ?> </body> </html> [/CODE] My problem is that although the emails get sent, …

Web Development php
Member Avatar for asif49
0
140
Member Avatar for Sparhauoc

Greetings all. Trying to use PEAR mail to mail some results of a quiz I have designed for students, when I get the following message: "Warning:require_once(Mail.php)[function.require-once]: failed to open stream: No such file or directory in C:\xampp\htdocs\results.php on line 81" followed by "Fatal error:require_once(function.require]: Failed opening required 'Mail.php'(include_path='.;C:\xampp\php\PEAR')in C:\xampp\htdocs\results.php on …

Web Development file-stream php
Member Avatar for Sparhauoc
0
1K
Member Avatar for VitiumExMachina

Hey guys, I'm having a problem with uploading files to a remote server. I just want the visitor to be able to upload a file, and have it go into the uploads directory of my website. My website root is "C:\tomcat\webapps\ROOT", and the uploads directory is at "C:\tomcat\webapps\ROOT\uploads". Both "upload.html" …

Web Development file-system java-jsp
Member Avatar for luddite
0
200
Member Avatar for rakwel10

Quite having a problem here... I have an array of student numbers put in a variable. And this variable will be use to an sql query. e.g. sql = "SELECT class FROM tbl_class WHERE studnum = '[COLOR="Red"]$array_studnum[/COLOR]'"; How can I get that specific student number inside an array for me …

Web Development php
Member Avatar for diafol
0
143
Member Avatar for DILO3D

I describe my problem with following simple example. [CODE] function show(str) { if (window.XMLHttpRequest){ xmlhttp=new XMLHttpRequest(); } else xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4 && xmlhttp.status==200) { document.getElementById("txtHint").innerHTML=xmlhttp.responseText; } } xmlhttp.open("GET","data.php?q="+str,true); xmlhttp.send(); } [/CODE] here,i am getting some responsetext or result from data.php file through my request. In my …

Web Development javascript xml
Member Avatar for Sorcher
0
327
Member Avatar for Aksel

Hi :) Is there any way, using PHP, to display a mini-version of an external website ? What I'm trying to achieve is when my users enter a link, then it should automatically try to display the link's contents - but within a given height / width. Appriciate any feedback …

Web Development php
Member Avatar for pritaeas
0
363
Member Avatar for G_Waddell

Hi All, I have to deliver a secure web ASP.net site that after 20 minutes of inactivity wipes the users sessions and forces then to login again. I have set up all the necessary timeouts on the server and at the top of each of my master pages I have …

Member Avatar for Airshow
0
642
Member Avatar for megachip04

I am attempting to install ffmpeg-php on my Dreamhost VPS. It runs Debian. I am under the impression that it is quite easy using 'sudo apt-get install php5-ffmpeg' I have tried this, it appears to install fine. My problem is, I'm not sure where it installs and how I get …

Web Development debian php
Member Avatar for cereal
0
731
Member Avatar for designalex

Hi, can anyone guide me in the right direction with the following: I want to start a hosting reseller service, didnt find a relative category to post in but my question is related to php so... I want to develop a site where users can query available domain names, the …

Web Development api php sql
Member Avatar for designalex
0
174
Member Avatar for rejisha

hi all.... i want to add 01+1 and my desired output is 02. my code is var t=01; var t2=t+1; alert(t2); the alert value is 2. I want 02....what will i do? thanks in advance....

Web Development javascript
Member Avatar for revathyrace
0
111
Member Avatar for Jothe

Hallo good people, am looking for a nice code that i can wright or someone to guide me through to create notifications within my site. On top of the notifications to be displayed within my site when an event occurs within the db and therefore i would need the necessary …

Web Development php
Member Avatar for Jothe
0
102
Member Avatar for mary_forum

how to generate id with character in php-mysql eg: LAKS01 LAKS02 LAKS03

Web Development php
Member Avatar for mary_forum
0
175
Member Avatar for gotboots

Hi all, pretty new to sql. have made code already for showing, adding and deleting data from database but can't seem to make the update work. any help is much appreciated. here's what I have: [CODE]<html><body><form action="update.php" method="post"> <label>Person ID:<br></label> <input type="text" name="personID" size="40" value="" maxlength="150" /> <label>Customer Name:<br></label> <input …

Web Development php sql
Member Avatar for gotboots
0
188
Member Avatar for Shernykens

<?php $id=$result; $res=@mysql_query("Select * from t_stores where user_id='$id'"); print "<label>Select Company/Store </label>"; print "<select name=\"store_id\">\n"; print "<option value=''>\n"; while($row=mysql_fetch_assoc($res)){ $store_id=$row; $store_name=$row; print "<option value='$store_id'>$store_name\n"; $store=$_GET; // a noob way that above to get store_id but it wont work--> } ?> //how do i get the $store_id in the print above …

Web Development php
Member Avatar for divyakrishnan
0
180
Member Avatar for kostas_213

I have a table called [COLOR="Red"]school[/COLOR] and a table called [COLOR="red"]students[/COLOR]. I have a foreign key in [COLOR="red"]students[/COLOR] called [COLOR="Green"]school_id[/COLOR] which is connected with table [COLOR="Red"]school[/COLOR] , field [COLOR="Green"]id[/COLOR]. I made a form where field **[COLOR="green"]title[/COLOR]** appears to the registration form of the [COLOR="Red"]student[/COLOR]. The problem is that i want …

Web Development java-jsp sql
Member Avatar for anand01
0
152
Member Avatar for vampshay

hi someone help me with this error:( Warning: mysql_query() [function.mysql-query]: Access denied for user 'ODBC'@'localhost' (using password: NO) in C:\xampp\htdocs\CDX\class_lib.php on line 57 Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in C:\xampp\htdocs\CDX\class_lib.php on line 57 [CODE] <?php class contactdirectory{ private $db_host = 'localhost'; // Database …

Web Development mysql php
Member Avatar for divyakrishnan
0
270
Member Avatar for masterjiraya

In my full program. I managed to finish my own thesis project from a certain bookshop company. It's features has: 1.) CMS ( Catalog, Gross Revenue, Number of Users, Number of Orders, Contact details of customers, Multiple admin Accounts, update-able Currency Foreign Exchange (from Oanda.com), paypal module, one-to-one and one-to-many …

Web Development cms ecommerce php
Member Avatar for masterjiraya
0
328
Member Avatar for preston326

Hi, this works well on my localhost but when I upload it to my web server I get: Parse error: syntax error, unexpected T_STRING in /home/zupa/public_html/grafika.php on line 1 This whole xml thing is new to me and I really dont know why doesnt it work on my server (while …

Web Development html-css php web-server
Member Avatar for preston326
0
255
Member Avatar for johnniegee

I am reading data from a mysql db to my webpage. I wish to make a google pi-chart but have no idea how to pass the data from php (html?) to javascript(?) to populate the graph. I'm reading the rows into the html page ok, they are dispaying in a …

Web Development javascript mysql php
Member Avatar for Ichcha
0
212
Member Avatar for garymae14

evening !! i just want to ask if can you help me on how to create graph using php ?

Web Development php
Member Avatar for masterjiraya
0
108
Member Avatar for Ichcha

[ATTACH]22040[/ATTACH] the following code displays output as in attachment.. it skips some of the value.. in the above output, am not getting group name for DTA. but if i add [CODE]where groupid='DTA' in query[/CODE], it displays groupname. what went wrong here? please help.. thanking in advance. [CODE] while($rowmain=mssql_fetch_array($resultmain)) { $course …

Web Development php
Member Avatar for Ichcha
0
100
Member Avatar for fifarulez

I can't seem to get my register page working with a password. This is the query I executed: [CODE]CREATE TABLE dbUsers ( id INT(10) NOT NULL AUTO_INCREMENT PRIMARY KEY, username VARCHAR(16) unique, password CHAR(16), email VARCHAR(25) );[/CODE] It only registers if there is no password filled..

Web Development php sql
Member Avatar for fifarulez
0
189
Member Avatar for dimasalang

hi experts.. I'm new to javascript/ajax and i need to upload a picture to a server then the server will send a preview without redreshing the page..how can i do that? any suggestion? or sites for tutorials? thanks for help.. i need this ASAP..

Web Development javascript
Member Avatar for dimasalang
0
107
Member Avatar for mpw5013

I'm making a simple box in the header of Joomla that displays the total quantity and total value of the cart. It works perfectly in VirtueMart, but once I leave the storefront the (Total) value is removed. How do I fix this? I would like to set a permanent super …

Web Development php session
Member Avatar for mpw5013
0
129
Member Avatar for fifarulez

I'm almost done making my registration system on my home server. Thanks to everyone for your help. The last thing I would like to know is why it says: Error: [U]User not added to database.[/U] This is part of my register code: [CODE] // Fields are clear, add user to …

Web Development php
Member Avatar for fifarulez
0
155
Member Avatar for Feriscool

I've created an html page with forms, and what I need is for each new person that clicks the 'submit' button, have the text in the fields print to a [B]new line[/B] in the output.txt file on the web host. This is what I have so far: [CODE]<?PHP $filename = …

Web Development php
Member Avatar for diafol
0
163
Member Avatar for asif49

I have a commenting system on my website which displays the date and time of when something was commented. I have used this method to do it at the moment: [CODE] date_default_timezone_set("Europe/London"); echo $date = "posted on " . date("Y-m-d") . " at " . date("H:i:s") . "<br><br>"; [/CODE] I …

Web Development php
Member Avatar for asif49
0
137
Member Avatar for fifarulez

Hello, like before, I'm still trying to make a register page with login and logout. Here's the link to my server (If I'm not allowed to share links please remind me.) [url]http://fifarulez.dyndns.org/hacks4all.wapzan.com/registration/[/url] After the registration it will give 2 warnings. ( ! ) Warning: mysql_query() [function.mysql-query]: Access denied for user …

Web Development php sql
Member Avatar for diafol
0
275
Member Avatar for chris_j_haines

Hi I have an occasional problem with the following scripts Here is the file upload form [CODE] <?php session_start(); if(isset($_SESSION['username']) == false){ header("Location: login.php"); exit(); } if(($_SESSION['userlevel']) != 'admin'){ header("Location: login.php"); exit(); } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> …

Web Development file-system html-css mysql php
Member Avatar for stoopkid
0
178
Member Avatar for mownam

<?php include "db/config.php";?> <?php function loginCheck($username,$password) { $sql=mysql_query("select UserId, UserName, Password from user_login where UserName= '$_POST[username]' and Password= '$_POST[password]'"); $name=$sql['UserName']; //echo"hi".$name; //select * from user_login where UserName='mownam' and Password='welcome' $result =mysql_query($sql); //$uname=$_REQUEST["username"]; if(mysql_num_rows($result) > 0) { echo "<center>successfully logged<br />".$uname; } else { ?><div align="center" style="background-color: #FFFFCC"style="font:"Courier New" , Courier, …

Web Development mysql php
Member Avatar for stoopkid
0
230
Member Avatar for nikita.chandra

Hi, I have installed Netbeans IDE 7.0.1 for php application and created a demo application. When i executed the application in the browser following url [url]http://localhost/CSR/index.php[/url] and error : Oops! Google Chrome could not connect to localhost Please help. Thanks, Nikita

Web Development ide php
Member Avatar for diafol
0
238
Member Avatar for jacksantho

Hi, If i turned OFF in php.ini file magic_quotes_gpc = Off; my code is working finely, when by using unserialize. Problem here: If i turned ON in php.ini file magic_quotes_gpc = On; [CODE] echo "<br>"; echo "<table>"; echo "<tr><td><b>confirm</b></td><td><a href='test.php?cname=confirm&cid=".base64_encode($id)."&code=".base64_encode($pcode)."&pname=".serialize($name)."'>Confirm</a></td>"; echo "</table>"; [/CODE] ($name is an array).Not unserialised--problem here [CODE] …

Web Development php
Member Avatar for diafol
0
281
Member Avatar for rakwel10

Hi! I have this code that adds field when the user hit the "add new field" button. The problem here is, once you added an input field, then fill it out, then add a new field again, the info in the first field be erased. As how the code runs, …

Web Development javascript
0
121
Member Avatar for cgull

Hello, Does anyone know how can I setup an email server on my local machine, with google or my host's server? Or do you know of any site that explains how to do that? Thanks

Web Development client-server email php
Member Avatar for cgull
0
88
Member Avatar for jenberden

Hello! i would like to ask some codes in voting system using php, can select and determine the winner. Thank you...

Web Development php
Member Avatar for pritaeas
0
118
Member Avatar for Nahiyan

Hello, I am experiencing a problem with running javascript code when ajax calls a file. I have a file named 'index.php' which simply loads some comments by using the file 'comment.inc.php' and run some javascript code to change the id of some div. I don't know how to let the …

Web Development html-css javascript php
Member Avatar for Nahiyan
0
519
Member Avatar for to.areeb

I have htmltable which dynamically generated. I want to print this table. which consist lot of pages. when I used window.print() its printing into 7, 8 pages. but my problem is I need Header and footer on each page (A4 size). how can Set header and footer to each page. …

Web Development asp asp.net html-css
Member Avatar for Alfredking
0
499
Member Avatar for nats01282

Hello, im unsure how to fetch a database row that includes php, i have a row in my database that displays a marquee saying 'welcome $username' i have connected to the database but the php on page shows 'welcome $username' how would i get it to state the username instaed …

Web Development php
Member Avatar for cgull
0
215
Member Avatar for uselessninja

hi everyone .... how to graph data from MSSQL database using php? i research in google and i found phpgraphlib but it only graph the value of the array

Web Development mssql php
Member Avatar for uselessninja
0
132
Member Avatar for spawn2004

hi, everyone, i have a question abbout pdf and php. I use php , mysql and ajax in my page. After upload the pdf files i go in this page and get to data in table with paging. My question is hot to load the pdf files in same page …

Web Development pdf php
Member Avatar for pritaeas
0
90
Member Avatar for fifarulez

Hello, I've always liked coding and lately I've learned a little but more of it. Now I also understand sql and db a little more. My problem is that my register.php file seems to give me a notice. Notice: Undefined index: op in C:\wamp\www\hacks4all.wapzan.com\registration\register.php on line 11 and Notice: Undefined …

Web Development php sql
Member Avatar for pritaeas
0
458
Member Avatar for aksahoo17

Hi, I am new to ColdFusion , so i need so help from all.... I am going to do a form having multiple submit buttons in it . So how can i know which button was clicked. according to this i want different work... Like simple i want to do …

Web Development coldfusion
Member Avatar for aksahoo17
0
827
Member Avatar for extemer

HI guys i have a little problem while i post the data that is class_id and subject_id to my db with it extra field is generated having zero in class_id and subject_id e.g below [B]Edit Delete 0 0 Edit Delete 315 1[/B] beside the original ids.here is my code below …

Web Development html-css javascript-jquery php
Member Avatar for cgull
0
131
Member Avatar for guinntiques

Hi. I'm using vs2008 and asp.net masterpages. One of my pages is in my administration area on my server. When I visit this page, I can click a button which begins sending newsletters out to my membership 50 at a time and every 11 minutes (as specified by my email …

Web Development asp.net web-browser
Member Avatar for guinntiques
0
139
Member Avatar for cutebaboi

i've read many articles and discussions through google, i have followed and corrected all yet still nothing happens. they say that it does not appear if it has no data to display, yet it does have data. i also set AutoGenerateColumns of gridview to true i was using linqdatasource connected …

Web Development asp.net
Member Avatar for cutebaboi
0
160
Member Avatar for 007tron

hello all, I am trying to create an istock kind of pagination of pictures, I am trying to find out how to do this in php (using divs or tables? not sure which is more suitable)and mysql.(ps is it a bad idea to store pictures in mysql database). I have …

Web Development php
Member Avatar for 007tron
0
154
Member Avatar for jakizak

Hi everyone, Having difficulty comparing two strings (Inside variables) in php. I have tried several methods, one being strcmp but I think I was doing that incorrectly, and now the simple [B]===[/B] / [B]==[/B] comparison methods. Here is the code: [CODE] <?php if ($pubinfo_username === $currentuser) { echo "<img alt=\"Remove …

Web Development php
Member Avatar for diafol
0
175
Member Avatar for joedy

In my index.php file I have this $answer = $a + $b; echo '<iframe src="ianswer.php".....etc. etc. ianswer.php contains only the following line echo $answer; But the ianswer.php doesn't know what $answer is. If I change that line to echo "RUBBISH"; The word RUBBISH appears in the iframe. How do I …

Web Development php
Member Avatar for joedy
0
174
Member Avatar for Paaat

Hey, I'm having a problem executing the following code: [CODE] <?php session_start(); require('connect.php'); if($_POST['username'])){ $name=$_POST['username']; $checkUsername = mysql_query("select * from users where UserName='$name'"); if(mysql_num_rows($checkUsername){ echo 'Logged in successfully!'; $_SESSION['username'] = $name; } else{ echo 'The username or password you've entered is not valid!'; } } ?> [/CODE]

Web Development mysql php
Member Avatar for Paaat
0
91
Member Avatar for kaizokupuffball

Hi! I got this image uploading script that will upload the user's choosen picture, and save it in the user's folder with the users nickname. Now, when i got the picture uploaded i want to resize it to 3 exact sizes (3 versions of the image). 240x250 and 2 other …

Web Development file-system image php
Member Avatar for kaizokupuffball
0
402

The End.