39,402 Topics

Member Avatar for
Member Avatar for ADVAD

Hi My following php code keeps giving me Undefined Offset errors: The code is: [code] <table border="1"> <tr> <th>Tile </th> <th> Email</th> <th> Publication No. </th> <th> Submitted By: First Name </th> <th> Submitted By: Last Name </th> <th> File Name </th> </tr> <tr> <?php if(!($lines=file('publication.txt'))) {echo 'Error:Unable to open …

Member Avatar for ADVAD
0
142
Member Avatar for ticallian

I'm trying to create an array to display the last 5 products a customer has viewed. The array is a 2 dimensional array like below... $RView= array( array( ID => "1001", RefCode => "Ref_01", Name => "Name_01" ), ... array( ID => "1005", RefCode => "Ref_05", Name => "Name_05" ) …

Member Avatar for ticallian
0
196
Member Avatar for jakesee

In a data/view architecture or template engine, should HTML forms be part of view or data? I tried several methods to separate HTML form design and form names (variables) but seem like a chicken and egg problem. is it common that the view designer must know all the form names …

0
70
Member Avatar for justted

Hello, I have a website which uses a session and then also creates a number of cookies. My knowledge of both sessions and cookies isnt great so I was wondering if anyone may know the reason for my problem .... Sometimes when I log into the site it allows access …

0
70
Member Avatar for csharplearner

Hello all, I work on MySQL and i have knowledge about it. I have no idea of what Apache is? I googled and came to know just like MySQL it is also a Web Server and nothing more about it. When people ask me if i have experience with Apache?! …

Member Avatar for csharplearner
0
274
Member Avatar for starsinthesky

hi, i have a hard time testing my PHP mail() function in the localhost. can you teach me? it's my first time to use this mail() function. this is my PHP code in the file: contact.php [code] <?php $email_to = $_REQUEST['email_to']; $subject = "Re: FAQ Suggestion"; $email = "d26thletter@yahoo.com"; $message …

Member Avatar for nhocikaka
0
2K
Member Avatar for aran87

Hello im new to the world of php, ive been designing a webpage in ma spare time and ive got to a stage where im stuck its basically ticking checkboxes and inserting them into the next page somehow using the $post method not sure how to do it. But the …

Member Avatar for coboldeveloper
0
163
Member Avatar for masocha
Member Avatar for sch_bern
0
128
Member Avatar for marjan_m

Hi, Please guide me about embedding google map api in the site page. I need to show map for different locations which are stored in DB. I got the API key but dont know how to implement it. Thanks for your time.

Member Avatar for marjan_m
0
134
Member Avatar for shahzad429

Hey every one. i am new in php. i know how to select, edit, add, delete data from database and show it in html table. before i was doing this using 4 php pages each for every one. but today i got an assignment that i have to display data …

Member Avatar for shahzad429
0
120
Member Avatar for mostafanageeb

I am now making a content management system for my site and I made a form that adds a new task to the database but I want this form to enable multiple users to this task I user select tag and allowed multiple choice but when I click submit I …

Member Avatar for cwarn23
0
62
Member Avatar for Josh Connerty

Hello, I have been working on some scripts for a forthcoming site and I have run across an issue. The issue being that when uploading large files (60Mb + ) will only be validated after they have finished being uploaded to a temporary directory. As you could probably imagine this …

Member Avatar for cwarn23
0
5K
Member Avatar for abazoskib

[CODE]<?php //set where you want to store files //in this example we keep file in folder upload //$HTTP_POST_FILES['ufile']['name']; = upload file name //for example upload file name cartoon.gif . $path will be upload/cartoon.gif $path= "/home/content/a/b/a/abazoskib/html/snapit/photos/".$_FILES['ufile']['name']; if($ufile !=none) { if(copy($_FILES['ufile']['tmp_name'], $path)) { echo "Successful<BR/>"; //$HTTP_POST_FILES['ufile']['name'] = file name //$HTTP_POST_FILES['ufile']['size'] = file …

Member Avatar for nav33n
0
255
Member Avatar for cloudedvision

I call this an imaginary error, because the code that causes is never run, and it does not report an error, but the functionality breaks. I'm developing a PHP framework. I have a debugger that writes lines to the a file throughout the execution of the framework. I noticed today …

Member Avatar for cwarn23
0
116
Member Avatar for dreamluverz

How can you pass values from nonpc games like xbox, psp, etc to webservers? I heard you can do it via xml? And how about posting values like POST? Is it also possible?

Member Avatar for Will Gresham
0
96
Member Avatar for Josh Connerty

I have done these scripts a thousand times. I still however can't seem to sort out this issue. The issue is that this block of code should return 3 images although it doesn't it only returns one image. The other one I am getting is from a different loop that …

Member Avatar for somedude3488
0
108
Member Avatar for rane_

Hi guys, I have read a lot of posts here for the same problem but I just can't seem to identify the problem in my code (im only a wannabe geek so please use laymans) Parse error: syntax error, unexpected T_STRING in /home/content/w/e/i/weightlosscand/html/sqz2.php on line 65 here's line 64-66 [code]<input …

Member Avatar for rane_
0
148
Member Avatar for dudegio

Hello everyone! Anyone has an idea of reading barcode using a handheld scanner attached to computer. Data being read from the barcode image will be displayed in text area. Any reference you can give is very much apprecciated. Thank you very much.

Member Avatar for Airshow
0
193
Member Avatar for brunope

Hello everyone, I encountered a problem for using the preg_replace method in a text which content a price formatted as $123.45. [CODE]<?php $xRegex = '#{params:.+?}#s'; $sPrice = "$123.45"; $sContent = "Price is {params:xxx}."; echo preg_replace( $xRegex, $sPrice, $sContent, 1 ); ?> [/CODE] When i'm doing this, I got : [I][B]Price …

Member Avatar for almostbob
0
123
Member Avatar for Shanti C

Good Morning All.. How to do coding for code tags , when we post a thread..And the display the content between the code tags with different color using PHP.. Thanks in Advance. Shanti.

Member Avatar for Shanti C
-1
149
Member Avatar for odysea

hi guys, found out about this forum a few weeks ago and found it very useful in regards php issues, i started to experiment with the language lately so i'm still a beginner, i need some help the following code: [CODE]<body> <?php ob_start(); include 'cms/core/config.php'; include 'cms/core/opendb.php'; if(isset($_POST['save'])) { $description …

Member Avatar for odysea
0
99
Member Avatar for santhanalakshmi

Hi, I had a login page to enter the username and password named as [B]"index.php"[/B]. when i entered to that [B]index.php [/B]page,my mouse focus should be pointed at the username textbox.... please help me...........

Member Avatar for santhanalakshmi
0
74
Member Avatar for kings

hi i am trying a job portal.when the paste's the job description the data is not formated.all the paragraphs,align is getting changes can anyone tell any method..so that the data comes as it was pasted when it is retrieved from db

Member Avatar for kings
0
132
Member Avatar for Aamit

Hi.. I am using downloaded code from google it create frame when we upload image. i am modified that code .. I want like when uploaded new image 1> previous image is deleted or new image is overload on previous image in Same frame but problem is when new image …

Member Avatar for danishbacker
0
174
Member Avatar for AON07

what i have so far is data coming from a text box, the user also can select which tables they would like to insert that data into, (up to 4 seperate tables). after its submitted the code checks if the record exists, if not it inserts the data into the …

Member Avatar for nav33n
0
107
Member Avatar for danishbacker

[code] <?php $fileName = basename( $_FILES['fileName']['name']); //count current total files $dir_path = "snaps/"; $count = count(glob($dir_path . "*")); $newFileName = $count . ".jpg"; $target_path = "snaps/" . $newFileName; [COLOR="Red"]if(move_uploaded_file($_FILES['fileName']['tmp_name'], $target_path))[/COLOR] { echo "<br/>Success"; else{ echo "<br />Failed"; } ?> [/code] The above works in my unix like server (Linux server.nixism.com …

Member Avatar for danishbacker
0
378
Member Avatar for danishbacker

I need to make a family tree. But i don't know how to make make it. I asked someone and done some searching in Google. I found three ways as follows 1. Using Database (foreign key to represent relation ship) 2. Using XML to store the data. 3. Using binary …

Member Avatar for danishbacker
0
1K
Member Avatar for diafol

Sorry about the possibly misleading title. Here's what I need to do: I'm producing a downloadable web app that users can load to their own php/MySQL enabled sites. It pretty much installs some tables into their DB and produces some pages to administer high school coursework marks (I won't go …

Member Avatar for diafol
0
129
Member Avatar for baudday

[code=php]<?php /* Dynamic Heading Generator By Stewart Rosenberger http://www.stewartspeak.com/headings/ This script generates PNG images of text, written in the font/size that you specify. These PNG images are passed back to the browser. Optionally, they can be cached for later use. If a cached image is found, a new image will …

Member Avatar for baudday
0
1K
Member Avatar for maheen123

Hi! I want to update or delete a record in database whose values will be taken from form. I tell you the scenario.... First, I created a form for data input which i then saved in database . Then i get the results from database in the form of table. …

Member Avatar for diafol
0
77
Member Avatar for Will Gresham

Hello all. Quick question. I have a table in my database with 'feedback' items which are assigned to pages/items in another database. I have a inner join to list all of the items on the feedback table and which items they are listed on. I have used a DISTINCT on …

0
64
Member Avatar for chrisscicluna

Hi i installed the system as instructed but when i try to login with my username and password this error is shortly being displayed: Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/smledit/public_html/sms/classes/crc_login.cls.php on line 129 You can check it out at: [url]http://www.sml.com.mt/sms/pages/crc_login.php[/url] Looking Forward to …

Member Avatar for lqdo
0
187
Member Avatar for mbabaali

pliz help ma have this code but it doesnt delete records ,am tuck what could be the problem,thanks here is the code <?php require_once('Connections/Database.php'); mysql_select_db($database_Database, $Database) or die("Unable to select database"); $aa=$_POST['pnum']; $bb=$_POST['dnum']; mysql_query("DELETE FROM doctor WHERE dID='$aa'"); $checkresult=mysql_query($query) ; if ($checkresult) echo 'delete query succeeded'; else echo 'delete query …

Member Avatar for BzzBee
0
74
Member Avatar for rameshreddy

cursor move on to "menu" then i get submenu in submenu i click on one option the page will display on <div> of same page, plz help me.thanks in advance. my code is: <a href="#" onmouseover="javascript:test(1)" id="ss">tutor</a> <div id="frame1" style="position:absolute; top:120px;left:65px;" class="hide";> <table id="itut" border="1"> <tr> <td> <a href="#" onclick="tutorlogin()">tutorlogin</a><br …

Member Avatar for BzzBee
0
105
Member Avatar for genieuk

Hi, I wanted to know what you PHP programmers recommend. I am new to PHP and am doing pretty good. I gone to w3schools and tzig but found they only explained so much and not much indepth. I been watching videos online that has made a huge difference in my …

Member Avatar for BzzBee
0
122
Member Avatar for shefeekj

HI, I am developing a new website..The design is sowhat over .My problem is its taking too much time to load.I need a very simple interface but i ended up in this bottle neck .I used jquery to add some effects .. Do u have any suggestion to reduce the …

Member Avatar for BzzBee
0
151
Member Avatar for fitse

Hello everyone, I have an xml document that contains the captions of photos in a photo gallery I wanted to put the caption after uploadind the photos and also delete a specific caption Like <caption>Name1</caption> <caption>Name2</caption> can anyone tell me how to edit the xml

Member Avatar for Airshow
0
117
Member Avatar for sandeep_more97

Hey Hii .... I am solving this problem from last 2 days.... but unable to find solution. What i am doing is ..... On click of submit button i want to send email and i am taking client to paypal page to do the payment..... i. e. i want to …

Member Avatar for sandeep_more97
0
305
Member Avatar for rmcgrady

Hi forum, Trying to create an RSS feed for my blog (not using a blog host or blog software). Seems to me the best way for me to do it is to use PHP in the XML to draw the last X posts from my MySQL database. So first, I …

Member Avatar for barbz
0
212
Member Avatar for gkalyan

HI every body, I m having a file aaa.php in my root directory(ie in my main domain) . Now i want to use that aaa.php in my subdomain.How can i point that file from subdomain to main domain. Just i am giving the full path <?php include("http://www.mydomainname.com/aaa.php")?> The above is …

Member Avatar for cwarn23
0
84
Member Avatar for bigfunkychief

Hello, I have a system that generates quotes, it opens a new window with the quote itself. I am trying to make it so I can generate a PDF automatically to a temp file on my webserver, and then use a script I wrote to email the attachment to the …

0
56
Member Avatar for ranjithnagaband

Hi i have one small application which includes clients registrations and contact details.Now i want voice recording which records the customerts conversation with the web site holder n tht conversation has to store in database. So i need a PHP application which supports the voice recordins.

Member Avatar for digital-ether
0
774
Member Avatar for totalnoob

Hi! I was wondering if there is any way to just include a small part of a file? If I write include("c:\wamp\www\somefile.php"); then the whole file is included. I would like to only include the half of the file or a variable. Is this possible? Thanks in advance!

Member Avatar for totalnoob
0
95
Member Avatar for zynap

Hello, I am trying to add hyperlink to my mysql query result. I have a table called EastLondon which consist of the following: [code] (restaurant_id INT UNSIGNED PRIMARY KEY, restaurant_name VARCHAR(20), phone_number VARCHAR(20), picture varchar(8), website varchar(40)); [/code] I extract all these info into a table using php. What I …

Member Avatar for ShawnCplus
0
4K
Member Avatar for ADVAD

Hi I am writing to a text file but end up having several duplicates in the text file, this is a basic program I am creating using PHP and HTML. How is it possible to fwrite only when record exists. Thnx [code]<?php $FirstName = $_POST['FirstName']; $LastName = $_POST['LastName']; $Email = …

Member Avatar for ShawnCplus
0
251
Member Avatar for marjan_m

Hi, Can any one please guide me that is there any way in php to add all country names automatically in a list box rather then making a static list of <option> Thanks for your time.

Member Avatar for rickya100
0
86
Member Avatar for kssi89

Hello everyone, I moved forward to purchase a book with PHP examples. This ecommmerce example did not make much sense to me at a certain point, it became too technial and I was unable to follow along with explicit understanding. There are two pieces of code that are problematic starting …

Member Avatar for kssi89
0
145
Member Avatar for engg.gaurav

how can i pass the array which have some record fetched from the database from one php page to another desire php page without using session

Member Avatar for ShawnCplus
0
50
Member Avatar for chrisscicluna

[I]<< Split from [URL="http://www.daniweb.com/forums/thread6923.html"]http://www.daniweb.com/forums/thread6923.html[/URL] >>[/I] Hi i installed the system as instructed but when i try to login with my username and password this error is shortly being displayed: Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/smledit/public_html/sms/classes/crc_login.cls.php on line 129 You can check it out …

0
81
Member Avatar for ero100@live.com

DOES ANY ONE KNOW HOW TO VALIDATE THIS FORM? case 1: if any field is not completed, display in red colour and display a text message to correct, case 2: once is completed, display TANKS FOR SUBMIT YOUR FORM, AND REDERECT TO INDEX PAGE. [code]<?php $msg ="Name: $_POST[name]\n"; $msg .="Email: …

Member Avatar for ADVAD
0
78

The End.