39,402 Topics

Member Avatar for
Member Avatar for Famous16

hi everyone, can anyone explain that how to place a banner on the top of a home page using PHP coding. If anyone has the solution then please help me. Waiting for your nice reply With Regards,

Member Avatar for diafol
-1
114
Member Avatar for vinpkl

hi all i have a checkbox and input box [code] $others_text=$_REQUEST['others_text']; [/code] [code] <input type="checkbox" value="<?php echo $others_text ?>" name="checkacc[]" id="checkacc[]" /> Others <input type="text" style="width:200px;" name="others_text" /> [/code] i want that the customer should tick the checkbox and enter the information in text box and that information should become …

Member Avatar for fobos
0
58
Member Avatar for SKANK!!!!!

like im at [url]http://www.mysite.com/thispage.php?black=acolour[/url] and i need the whole thing in the variable not just the mysite.com/thispage.php i need the variables. NOW the pages variable names will be changing so i cannot count on them being the same name like "black" everytime. so far i have got [CODE]$fullurl = "http://www.mysite.com".$_SERVER[SCRIPT_NAME];[/CODE] …

Member Avatar for SKANK!!!!!
0
196
Member Avatar for azegurb

hi all i have a problem with file content copying. i have index.php and there are codes in it. i would like to create [COLOR="red"]indexa.php[/COLOR] and append[COLOR="red"] index.php [/COLOR]file contents to newly created [COLOR="red"]indexa.php [/COLOR]file thanks beforehands here is my file [CODE]<?php // This function shows your form function form(){ …

Member Avatar for azegurb
0
1K
Member Avatar for xylude

I have an if statement that is always evaluating true even if none of the conditions are true. It goes like this: if(condition1 || condition2 || condidion3) { //do stuff } For whatever reason even if none of the 3 conditions are actually true, it just runs anyway. Is there …

Member Avatar for theighost
0
114
Member Avatar for kristo5747

Greetings! I created this form that works like a charm, captures data in my db and sends email. Suppose user Joe hits the RESET button before he clicks SUBMIT, all fields are reset. If Joe hits the RESET button AFTER he clicked SUBMIT (e.g. to make a new submission)...nothing gets …

Member Avatar for kristo5747
0
122
Member Avatar for Midnite003

I have thsi script and I am trying to pass the variables to a form ... and have it email them but for some reason its not working ... can anyone offer a reason why it might not be or what I might do to fix it ? This is …

Member Avatar for digital-ether
0
175
Member Avatar for nathanpacker

I have looked everywhere, I've figured out how to add x amount of days to the current date, or take away x amount of days from the current date. But let's say I have a date stored in my database as "0000-00-00", that is not the current date. How can …

Member Avatar for ripraw
0
194
Member Avatar for SOlaNkI ThakUr

i just want to display images ( that are stored into database )in a dynamically create table which has dynamically row & 4 columns in php like this:- image1|image2|image3|image4 image5|image6|image7|image8 image9|image10 etc. if a new image i upload in the database than it should come in third row third column …

Member Avatar for Froger93
0
90
Member Avatar for D4n1sD

Hello, I would like to know how to create dynamic pictures with imported text from php. For example an image with the variable $username above it, but not to make 10000 images with the different usernames but 1 which will be generated for each username. So tell me.

Member Avatar for Froger93
0
93
Member Avatar for khess

If you are a PHP, Zend or IBM fan, today Zend and IBM announce a major release for IBM i-Series Servers. Zend Technologies and IBM are working together to offer PHP solutions for IBM i customers. Today Zend announced Zend Server for IBM i, a Web Application Server for applications …

Member Avatar for theighost
0
883
Member Avatar for anumitadas

Can we make a software using Php As php is web development softawre I am confused :( Plz help

Member Avatar for hondros
0
62
Member Avatar for eusb

Hey , I'm having trouble showing data from my data base in php. i always get the " No database selected " line and also i was wondering why the second echo doesn't show the result is : first echo No database selected this is my code [code] <?php require($_server["DOCUMENT_ROOT"]."/config/db_config.php"); …

Member Avatar for theighost
0
248
Member Avatar for filch

I am having a hell of a time with a form, which is built dynamically from PHP. The form is constructed first by calling a page called gala-tix.php, This page holds a bunch of javascript functions, the form code and it also calls an include called dwt.php. dwt.php has a …

Member Avatar for colweb
0
163
Member Avatar for niths

[QUOTE]hi all, i need to print the value in sql2.but it is not printing it. but if i execute the same query in mysql it is giving the value. so please check this. thank u.[/QUOTE] [CODE]$sql2="select allocatedmemory from projects where projectname='$projectassign'"; mysql_error(); $d=mysql_query($sql2); $data1=mysql_result($d,0); echo '$data1';[/CODE]

Member Avatar for prem2
0
78
Member Avatar for jino

Dear all, I have a table in mysql and i want to insert records into the table without using "FOR" or "WHILE" loop..Can this be done?? Thanks in advance.. Jino.

Member Avatar for indraginanjar
0
210
Member Avatar for 3pmSunday

I want to have the user fill out a form with the email address they would like to send to and a short message and be able to send it without opening an external mail program like outlook is that possible?

Member Avatar for jas11
0
102
Member Avatar for computerfox

Okay, so I'm not sure why this is happening, but I have a table full of data and I got the edit link working for the top of the stack, but when I want to edit another entry, it keeps pulling in the info from the top ID. Is this …

Member Avatar for computerfox
0
126
Member Avatar for phobia1

Hi Guys I'm back...greetings to all and thanks for keeping in touch. Not sure even where to post this question but php section usually is cool. Is there any guru here willing to help me make a display of exchange rates on my site? I only need Euro, Sterling, USD …

Member Avatar for waelm2010
0
372
Member Avatar for benqus

Dear Dudes! =) If anybody has a complete list of php methods separate in a file, please share it with me! I really need a txt file containing all of the PHP methods. It goes for my diploma work also... =) Ex: [CODE] for(){} //new line if(){} //new line switch(){} …

Member Avatar for benqus
0
149
Member Avatar for michael_r

hi i have got a simple table in my database like this: [B]from[/B]|[B]to[/B] bangalore | delhi chennai | mumbai i am using two drop down list to display this data. here is my code: [CODE]<select name="From"> <?php while($row = mysql_fetch_row($result)) { ?> <option value="<?php echo $row[0];?>"><?php echo $row[0];?></option> <?php }?> …

Member Avatar for diafol
0
160
Member Avatar for nelliott10

I am trying to code an update sql command which can be seen in the code below, however, i am getting the following error: - Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/qchqsdju/public_html/project/lines/update_line.php on line 40. The code is: - [CODE] <? // Connect database. …

Member Avatar for diafol
0
89
Member Avatar for nelliott10

I am a bit of a newbie to PHP and have produced a dynamic form for a uni project, however, I am unsure how to code the PHP script which will insert the data inputted through the form into a SQL database. The code for the form can be seen …

Member Avatar for diafol
0
139
Member Avatar for lordtrini

I am trying to display the results of a query in the form of a table. this it the PHP that i am using below. The problem is that the headings of the table repeats. I really don't want that... I am also trying to get a border around the …

Member Avatar for lordtrini
0
341
Member Avatar for Designer_101

Hey Im having a bit of trouble due to creating a media player playlist and using xml to input the directory variables to flash. I haven't really used xml much apart from that. Anyway... I need the variables from my XML file in a variable ready to print in php …

Member Avatar for whiteyoh
0
116
Member Avatar for BHance

Hello All, I have 2 data sources. Data source A needs information to be updated on a regular basis. It receives it's updated information from data source B. There are many thousands of records involved here so I am trying to limit the amount of MySql queries as much as …

Member Avatar for wcgoran
0
5K
Member Avatar for Arsench

Hello world, I’m trying something very simple but can’t get the result. I have table from I’m selecting a value which exist, then I want to display the value on the other page, but can’t get the result. Here is the code. The first page is active.php where goes the …

Member Avatar for Arsench
0
116
Member Avatar for star_lavender

How to use while loop to loop a set of radio button groups? I have several questions that retrieve from database and each question has five different ratings named 1, 2, 3, 4 and 5. I create radio button group for the rating and using while to loop them. I …

Member Avatar for star_lavender
0
3K
Member Avatar for Encrypted

Anyone know what I'm doing wrong here? I'm trying to get this code to work so that if a directory exists.. the mkdir() function is bypassed (so i dont get an error) but it seems that no matter what I throw in my is_dir() function it always hops down to …

Member Avatar for Encrypted
0
129
Member Avatar for haboota

Hi - I am playing around with a php image gallery and Im stuck trying to add lightbox to it. The script automatically builds the gallery, and all anchors to the full size picture are generated. How can I add the rel="lightbox" tag? [CODE] echo "<center><a href=\"$PHP_SELF?path=$aPath&page=$aThisPage&img=$aFn&idx=$aIdx\"><img border=\"4\" width=\"$twidth\" height=\"$theight\" …

Member Avatar for haboota
0
123
Member Avatar for Juls

Hi, I have a text data type field in MySQL table that I need to read out to a page. When the value is entered into this text field the value will have returns as follows: ------------------ TEST TEST aaaaaaaa asdasdasdfas 3rd lineasadas ---------------- When I read this value out …

Member Avatar for Mckcvision
0
299
Member Avatar for jrw89

I have the following code:[CODE=php]<?php $implementation = new DOMImplementation(); $document = $implementation->createDocument('http://www.w3.org/1999/xhtml', 'html', $implementation->createDocumentType('html')); echo $document->saveHTML(); ?>[/CODE]which returns:[CODE=html]<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"></html> [/CODE]...exactly as I wanted it to. However, when I run the following: [CODE=php]<?php $implementation = new DOMImplementation(); $document = $implementation->createDocument('http://www.w3.org/1999/xhtml', 'html', $implementation->createDocumentType('html')); $head = $document->createElement('head'); $document->appendChild($head); echo $document->saveHTML(); ?>[/CODE]I …

Member Avatar for jrw89
0
106
Member Avatar for jeeter19

I have 2 variables that should be global within its own file. I am attempting to access their set information from a function within that file but I receive nothing but an error. When I hardcode in the information into the function instead of retrieving from the variables, it works …

Member Avatar for diafol
0
104
Member Avatar for sainiweb

<?php session_start(); /*if (!isset($_SESSION['user'])) { header("Location: index.php"); }*/ include ("include/header.php"); include ("include/dbc.php"); //require_once "Spreadsheet/Excel/Writer.php"; //define('FPDF_FONTPATH','./fpdf/font/'); //require('./fpdf/fpdf.php'); //require ('pdf.php'); $rowsPerPage = 10; $pageNum = 1; if(isset($_GET['page'])) { $pageNum = $_GET['page']; } $offset = ($pageNum - 1) * $rowsPerPage; $_SESSION['From']=$_REQUEST['From']; $_SESSION['To']=$_REQUEST['To']; $sql = "SELECT * FROM daily_material_record LIMIT $offset,$rowsPerPage"; $result = mysql_query($sql); …

0
58
Member Avatar for leeZA1

I have a problem, if someone can help great!! Every time the form is submitted to delete the stabletitle it says successful even when the title entered is not in the database, if its not in the database it should say unsucessful, can someone see what is wrong with my …

Member Avatar for diafol
0
87
Member Avatar for Linlin

Hello! I have more or less zero knowledge about coding in PHP. The most I've done is includes, to help me maintaining my sites more efficiently. I hope I will not offend anyone with this question. Anyhow, towards my issue. I have one table containing several fields, with information such …

Member Avatar for almostbob
0
229
Member Avatar for wahdude316

If I'm not posting this right please excuse me I'm new to this board. I'm trying to edit my htaccess file, so that I can hide my affiliate links. I copied the code from an internet marketing forum. <ifmodule mod_rewrite.c> RewriteEngine On RewriteRule greensmoke.html [url]http://www.greensmoke.com/13745.html[/url] [R=301,L] </ifmodule> <ifmodule mod_rewrite.c> RewriteEngine …

0
67
Member Avatar for agiletechnosys

Agile Technosys provide Web Development service for prospective client, to help them to reach their customer with the help of internet. Website helps us to serve our desired client base in a targeted manner. Web Design and Web Development become the integral part of our marketing and advertisement phase. While …

-2
61
Member Avatar for niths

i am not getting the value in $sql2. so can anyone please.... thank u [CODE]$sql2="select allocatedmemory from projects where projectname='$projectassign'"; mysql_error(); $data1=mysql_query($sql2); echo '$data1';[/CODE]

Member Avatar for cwarn23
0
92
Member Avatar for througheye

Hello, I want to make my php based script's url search engin friendly,as i know nothing about .htaccess, can anyone one hints me about the code in the .htaccess file. [url]http://127.0.0.1/one/index?base=one&script=comment[/url] ignore 127.0.0.1/one/ the actual url is index?default&base=one&script=comment where "one" is the folder name and comment is the script on …

Member Avatar for cwarn23
0
157
Member Avatar for whitestream6

This is my XML code: [CODE]<?xml version="1.0" encoding="ISO-8859-1"?> <library> <episodes> <episode> <eptitle>Police Stop!</eptitle> <epno></epno> <desc>Dangerous driving caught on camera.</desc> </episode> <episode> <eptitle>Police Stop! 2</eptitle> <epno></epno> <desc>Dangerous driving caught on camera. Including a pursuit through the Midlands.</desc> </episode> <episode> <eptitle>Police Stop! 3</eptitle> <epno></epno> <desc>Featuring footage of dangerous driving on our roads, …

Member Avatar for phpuser
0
97
Member Avatar for jasper77

Hello! I am missing something... I am using phpmailer-fe to collect the information from a form and send it to me in an e-mail. This is the first time I'm using the phpmailer scripts and they seem straightforward. The form seems to process and sends the viewer to a success …

0
45
Member Avatar for arraystechnosys

Arrays Technosys is training institute in pune which provides technical courses related to computer and IT training.Arrays also providing live projects and performs placement activities which gives 100% job garuntee. The various courses offered at Arrays Technosys have been formulated by highly experienced professionals in the niche domains. The course …

Member Avatar for arraystechnosys
-2
175
Member Avatar for keval_hack

Alright, I do little experience with programming with HTML/PHP The thing I need is an script that will log the visiting persons IP address AND his country of origin in any way; so the admin (me) can see it and confirm he/she has done whatever I want him to do. …

Member Avatar for keval_hack
0
157
Member Avatar for frugalfreeloade

Hi, I've been searching for hours for an answer to this. I have a coupon saving website and I'm trying to allow people to print off a shopping list by checking checkboxes that once submitted will send you to a basic white page with just those item selected displayed so …

Member Avatar for metalix
0
216
Member Avatar for Syakoban

Hi, I'm trying to get an "app" created to run a com port on my local machine to control some electromechanical equipment. The issue is connecting to the local machine from a phone or laptop using WiFi and pulling up a "web page" (in PHP???) that can then communicate to …

Member Avatar for metalix
0
136
Member Avatar for kayblack

Hi guys, I'm trying to create a php script that'll send information gathered from a form and send it as an html email with the info arranged in tables. Can't seem to get it to work. Here's the message part of the script (containing the table): [CODE]$to="o.oloyede@feeslimited.net"; $message=" <table width="500" …

Member Avatar for cjohnweb
0
6K
Member Avatar for sallecpt

Hey guys. First of all, its been 2 days, and already 2:30am in the morning. I've eaten a steel fork, jumped over the moon, broke an arm, and cant get it to work. Will somebody please assist me in this; The end result sound simple, and maybe it is, but …

Member Avatar for sallecpt
0
155
Member Avatar for TrinitySamuels

Hello! Well, for those experts there, how do you guys master PHP Programming Language? I can't seem to find any good courses in colleges / uni that offers a subject on "PHP Language" ... So, how do you guys managed to learn it? Via books and e-books?.

Member Avatar for colweb
0
86
Member Avatar for michael_r

hi every one this is my first post in any forum i have got an error while inserting a row to mysql this is my code: $query = "INSERT INTO flight(date,from,to,depart_time_hr,depart_time_min,arr_time_hr,arr_time_min) VALUES('$_POST[date]','$_POST[from2]','$_POST[to2]','$_POST[hours1]','$_POST[minutes1]','$_POST[hours2]','$_POST[minutes2]')"; the error shown is: 1064 You have an error in your SQL syntax; check the manual that corresponds …

Member Avatar for michael_r
0
157

The End.