39,393 Topics
![]() | |
Hello Friends, I have a very simple table which contains 5 rows having 4 columns. The columns are label, Dropdown menu, Texbox, Textarea respectively Suppose the student enters 2 rows than it shuld go in the datbase like id | student_id | local/central | duties | skills -------------------------------------- 1 | … | |
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 … | |
![]() | 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" ) … ![]() |
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 … | |
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 … | |
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?! … | |
![]() | 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 … |
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 … | |
| |
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. | |
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 … | |
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 … | |
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 … | |
[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 … | |
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 … | |
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? | |
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 … | |
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 … | |
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. | |
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 … | |
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. | |
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 … | |
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........... | |
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 | |
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 … | |
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 … | |
[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 … | |
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 … | |
![]() | 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 … ![]() |
[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 … |
The End.