39,402 Topics

Member Avatar for
Member Avatar for LloydFarrell

Hi everyone, I have a pagination script that is working great - What I am trying to is use a variable from the url and insert that into my pagination Here is the working pagination - [code] <?php /* Now we apply our rules and draw the pagination object. We're …

Member Avatar for tomato.pgn
0
123
Member Avatar for xxreenaxx1

I can read from files that are uploaded but now I would like to INSERT the data entered on the file to be inserted to mysql database. But not sure how this work. Tried to search few term and I have tested few methods. Nothing works. [CODE]<?php if ($_FILES["file"]["error"] > …

0
66
Member Avatar for divyakrishnan

Hi.. I have installed xampp-win32-1.7.4-VC6 on windows. I can access it as localhost. But showing the following error while it accessing from other machines which are locally connected. The error as follows [COLOR="Red"]Access forbidden! New XAMPP security concept: Access to the requested directory is only available from the local network. …

0
41
Member Avatar for boblack

i'm trying to embed my C code function into PHP using SWIG but it doesn't work.....how can i figure it out? Regards

0
44
Member Avatar for divyakrishnan

Hi... I have a problem to load a PDF file which is stored on another machine.I had loaded the PDF on the same machine using following PHP script.Here I had used a hyper link to load PDF. [CODE] <?php $file="first"; $pdfFile=$file.".pdf#page=1"; ?> <a href="<?php echo $pdfFile; ?>" target="_blank" > Click …

Member Avatar for divyakrishnan
0
772
Member Avatar for xxreenaxx1

[CODE] SELECT * FROM user u, subject s, test t, question q, answer a WHERE u.Use_ID =1 AND t.Sub_ID =1 AND s.Sub_ID = t.Sub_ID AND a.Que_ID = q.Que_ID [/CODE] I would like to check if the a.Que_ID =q.Que_ID does not exist then it should do the rest of the query. …

0
59
Member Avatar for new_developer

Hi everyone, Please check php code below, when i load this page in browser it gives me following errors. "Notice: Undefined index: submit in E:\wamp\www\login\register.php on line 4" "Notice: Undefined index: fullname in E:\wamp\www\login\register.php on line 5" "Notice: Undefined index: username in E:\wamp\www\login\register.php on line 6 "Notice: Undefined index: password …

Member Avatar for new_developer
0
103
Member Avatar for xxreenaxx1

I have two table of same data. First table is written by the admin and the second data is written by the user. Now I want to compare these two and see if they match, if not then the correct data is displayed. So far I am retrieving the user's …

Member Avatar for xxreenaxx1
0
113
Member Avatar for xxreenaxx1

I have two delete function and would like to make this as one. So I can use this on my webpage. But not sure how? Anyone willing to help me :D [CODE=php] DELETE FROM test WHERE Tes_ID=$Tes_ID; DELETE FROM question WHERE Tes_ID=$Tes_ID [/CODE]

Member Avatar for xxreenaxx1
0
81
Member Avatar for ale89

Hi everyone! I'm making my own forum without any bulletin board system that is already done and all you need to install, no idea why my own to make a code made ​​by me. At the time of creating a new topic in my forum, What me recommend the text …

Member Avatar for diafol
0
169
Member Avatar for vibhaJ

Hello All, I am having one email template code as shown below. [CODE] <table width="400" border="0"> <tr> <td><strong>Id</strong></td> <td><strong>Name</strong></td> <td><strong>Address</strong></td> </tr> <tr> <td>##ID##</td> <td>##NAME##</td> <td>##ADDRESS##</td> </tr> </table> [/CODE] Site administrator manage this. Now i want php code to dynamic replace [B]##key##[/B] code. It is simple for one record but here …

Member Avatar for diafol
0
90
Member Avatar for dgcerk369

I have a webmaster that got a problem converting excel to Msql and i want to help him along with a software or other solution that converts excel to msql database. thanks

Member Avatar for happytogether
0
54
Member Avatar for patrickm129

Hi all, I'm working on a login system for my site. But when I use mysql_num_rows I get an error [CODE]"Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in /home/patrickm129/patthepcwizard.com/login02.php on line 25"[/CODE]. I'd really appreciate it if you would be able to solve this with me. P.S.: …

Member Avatar for happytogether
0
111
Member Avatar for drewpark88

Hey guys, What would be the easiest way to retrieve Google Analytics Monthly Visitors & Pageviews? I just want to display them in text for my website like: Visitors this Month: 1,222 Pageviews this Month: 3,433 If you have example code or a link to a tutorial that would be …

Member Avatar for pavankumarr
0
258
Member Avatar for ss90

hi~ my problem is when i choose the program from the drop-down list then the PEO-ID will auto display the data that related with program ...then after fill in the form it can click the 'register' button .. [CODE]<?php require_once('../../../Connections/admin_db.php'); ?> <?php require_once('../../../Connections/admin_db.php'); ?> <?php require_once('../../../Connections/admin_db.php'); ?> <?php if (!function_exists("GetSQLValueString")) …

0
90
Member Avatar for puvi

hi frens.. i ll simplify my requirement and explain the issue.. lets say, i have 3 textbox rate, quantity, total and a "add row" button. I must be able to add any no. of rows. There must also be a supertotal field before the "add row" button to display the …

Member Avatar for puvi
0
595
Member Avatar for masterjiraya

this is the code for selecting the file to be deleted by the user [CODE=HTML] <title>File Delete</title><form enctype="multipart/form-data" action="delete.php" method="POST"> <input type="hidden" name="hidden1" value="file to be uploaded in AldrichSample folder" /> Please choose a file: <input name="deleted" type="file" /><br /> <input type="submit" value="DELETE" /><br /> <input type="reset" value="cancel" /><br /> …

0
59
Member Avatar for twitt

I want to write a code, to query "Keyword" and echo the results of advertisements that appear in google search result (11 paid search adwords results). How can i do it?

0
32
Member Avatar for ubi_ct83

Hi, i wanna develop web-based system. use PHP to send data to database.but, from database i use the data to be processed by java application then send back to database.my problem is i cant relate the user and java application.so,im thinking of sending directly data to java application and at …

0
60
Member Avatar for Joshua Kidd

Hello all, I have this page that I made: [url]http://www.globalvirtualairlines.com/MyPages/web%20app.php[/url] and on the middle column called "Total Flights" and there are many 0's. I want to be able to change all the 0's to NONE. How would I do this? Can someone help? Thanks. :)

Member Avatar for Joshua Kidd
0
116
Member Avatar for avmaza

Dear friends, I have created one form to search the data from the database. the form is having four text button to get input for search. if the search criteria matches, it will display the results on next page. But I want to print while giving the input data in …

Member Avatar for nomita
0
181
Member Avatar for Joshua Kidd

Hello all, I am very new to PHP about 2 weeks on it now, and I was wondering if there would be any possible way to 1. Write Text to an XML File via FTP(or other way) 2. Delete certain lines, or Delete certain childs in the XML file. (IK …

0
64
Member Avatar for phpDave

Hi, I'm working on a site that allows users to connect with each other. User can search, find friend, and then request a connection. It works but if user request a second time it duplicates the row in table. I only want INSERT if does not exists. Here is code. …

Member Avatar for phpDave
0
96
Member Avatar for agr8lemon

I've used this many times and it's always worked, however for some reason I'm missing something. [CODE]$ddType_query="SELECT DISTINCT Type from dbo.LTN_HARDWARE"; $ddType_result=odbc_exec($conn, $ddType_query); while ($ddTypeOptionsRows = odbc_fetch_array($ddType_result)) { //echo $ddTypeOptionsRows['Type'], "\n"; $ddTypeOptions = $ddTypeOptionsRows['Type'] ; } odbc_close($conn);[/CODE] I'm trying to get the $ddTypeOptions to contain all the distinct results of …

Member Avatar for diafol
0
94
Member Avatar for woolm110

Hey Everyone, I'm currently creating a simple shopping cart with interaction to PayPal. I've set up a database with a table named orders. I'm using the PayPal sandbox and what I'm looking to do is to post the order details into my database on payment completion. I have a script …

0
159
Member Avatar for tcollins412

i have a script that sends an email to cellphones: [CODE=html] <form name='celltest' method=post> <input type=hidden name=cellsubmit value=yes> <tr><td rowspan=1>Mobile Phone: <input type='text' class='efield' id='phone' name='phonetest' style='width: 200px;'></td><td style='padding-bottom: 15px; padding-left: 3px;'>&nbsp;<a href="?ref=ea&dotest=1" class='eap' style='width: 50px;'>Test</a></td></tr></table></td></tr><tr><td style='font-size: 12px; text-align: left; padding-top: 2px; padding-left: 35px;'>Provider: <select name=provider class=efield style='width:258px;' id='provider'> <option …

0
132
Member Avatar for saifi007

hi friends. I m not able to open yahoo weather on my website by fopen() function and server gave me this error:- Warning: fopen([url]http://xml.weather.yahoo.com/forecastrss?u=c&p=98908[/url]) [function.fopen]: failed to open stream: no suitable wrapper could be found so plz give me another way to add yahoo weather on my website

Member Avatar for diafol
0
45
Member Avatar for rom.

I'm making a simple IP logger. I've tested the script, but the database doesn't seem to filling up. It could be a problem with the database format etc, details below. Otherwise, I must have made an newbie oversight in the PHP. Some fresh eyes would be greatly appreciated! id: INT(10), …

Member Avatar for diafol
0
170
Member Avatar for LloydFarrell

Hi all... I am trying to get data from a table field called "custom" from a mysql database the data is stored as 23-1, where 23 is the id and 1 is the quantity How do I build an array or extract the data and place the values into two …

Member Avatar for LloydFarrell
0
102
Member Avatar for zeusthegreat

what i wish to do is for a visitor to my web site to be able to upload either picture of no more than 4mg and a word or pdf file of 1mg have been able to do this in part, but i cannot get the image to show on …

Member Avatar for diafol
0
63
Member Avatar for klemme

Hi All! I have a table with different kinds of customers information. With the code I have posted below, I want to pull out all the records from the database. When I progress to make the "create_record" page, my intention is that it should automatically be added as an extra …

Member Avatar for joban.ali
0
123
Member Avatar for Aeterna

My website [url]http://animalcrueltyfacts.net[/url] is having serious issues with IE. These are not browser compatibility issues, and they are not isolated to my computer. No version of IE on any computer can load the server to my website. I have no idea whats causing this. The website works fine in other …

0
68
Member Avatar for adamworld

I am working on a site and I want to be able to query the appropriate table based on their location. For example, if they input they live in NY, it should query the NY table. If they input they live in CA, it should query the CA table and …

Member Avatar for adamworld
0
94
Member Avatar for devinodaniel

I have a site the generated a row of data from MySQL db. The parent element DIV is called "enclosure". This shows up as hidden when page loads. I have a link "show/hide" that I'm using to show the data when click using jQuery. My problem: Since all the rows …

Member Avatar for macneato
0
207
Member Avatar for an00p

Hello Friends, I have an issue after upgrading my firefox to version 4. This issue was there in IE8 but worked nicely in firefox3 Here is my issue: I have a page with three forms and each form posts using "htmlentities($_SERVER['PHP_SELF'])" action that is to the same page. Based on …

Member Avatar for an00p
0
122
Member Avatar for TechySafi

[CODE]<script language = "javascript"> var XMLHttpRequestObject = false; if (window.XMLHttpRequest) { XMLHttpRequestObject = new XMLHttpRequest(); } else if (window.ActiveXObject) { XMLHttpRequestObject = new ActiveXObject("Microsoft.XMLHTTP"); } function getData(dataSource, divID) { if(XMLHttpRequestObject) { var obj = document.getElementById(divID); XMLHttpRequestObject.open("GET", dataSource); XMLHttpRequestObject.onreadystatechange = function() { if (XMLHttpRequestObject.readyState == 4 && XMLHttpRequestObject.status == 200) { …

Member Avatar for TechySafi
0
238
Member Avatar for jrotunda85

I keep getting the following error whenever I try to run this query on my "spot" table: [CODE]#1054 - Unknown column 'a.Longitude' in 'field list'[/CODE] The weird thing is though that the column DOES in fact exist, is spelled the same way, and has thousands of rows of data. Even …

Member Avatar for jrotunda85
0
114
Member Avatar for vijaygupta

hello , I am writing a validation code in which i have validate two feilds and check if the feild username and email already exist in the database. please help

Member Avatar for jkon
0
165
Member Avatar for GreaseJunkie

Hi, I've looked around and cannot find an answer to this. I want every email that comes in to a certain email address to get stripped of everything but the subject and email address and get stored into a MySQL database. First, is this possible? If so, how? If someone …

Member Avatar for GreaseJunkie
0
261
Member Avatar for fidolas7

1.<?php 2.$con = mysql_connect("localhost","root","")or die (mysql_error()); 3.mysql_select_db("registration", $con); 4.function protect($value){ 5.$value=mysql_real_escape_string($value); 6.$value=stripslashes($value); 7.$value=strip_tags($value); 8.} 9.if(isset($_POST['upload']) && $_FILES['file']['size'] >0) 10.{ 11.$fileName = $_FILES['file']['name']; 12.$tmpName = $_FILES['file']['tmp_name']; 13.$fileSize = $_FILES['file']['size']; 14.$fileType = $_FILES['file']['type']; 15.$fp = fopen($tmpName, 'r'); 16.$content = fread($fp, filesize($tmpName)); 17.$content = addslashes($content); 18.fclose($fp); 19.if(!get_magic_quotes_gpc()) 20.{ 21. $fileName = addslashes($fileName); 22.} …

Member Avatar for dornaled
0
90
Member Avatar for JimBobUKII

Hi I was wondering if someone could help me. I have a dropdown list which is populated from MySQL. The dropdown data is classed as sections. When a user selects a section from the dropdown a form on the same page is populate with the section name and they are …

Member Avatar for JimBobUKII
0
150
Member Avatar for veledrom

Hi guys, I have two questions, I wonder if they are possible to implement. 1. [ICODE]<form action="nextform.php" method="POST">[/ICODE] Is it possible to hide nextform.php from other users as I don't want anyone seeing where the data is being POSTed. Or similar solution. 2. Is it possible to hide javascript files …

Member Avatar for Akash Saikia
0
146
Member Avatar for lsvife

I want to create a web application that enable the user to create java jar file using PHP.. How to create java jar file using PHP? Could anyone give the code? appreciate it...thnks..

0
80
Member Avatar for vitaquous

I would like to be able to take data from a MySQL DB and place it in various div elements. I would like to do this after the page has been rendered. I know I could do this using JavaScript with innerHTML, but do not know what function to use …

Member Avatar for vitaquous
0
15K
Member Avatar for puvi

hi frens I am trying to pass array in $_SESSION from the abc.php to generatepdf.php. the pdf is not getting generated after i wrote this part of code. this is in generatepdf.php [CODE] foreach($_SESSION['refcode'] as $temp) { $refcode[]=$temp; } foreach($_SESSION['description'] as $temp) { $description[]=$temp; } foreach($_SESSION['unit'] as $temp) { $unit[]=$temp; …

Member Avatar for puvi
0
102
Member Avatar for jacob21

Hi,I am using below code. For particular category,i made different pages like human.php,sales.php is there any other method for doing that in more efficient way. [CODE]<div style="background-image:url('image/top.png');height:15px;width:975px;"></div> <div style="background-image:url('image/mid.png');background-repeat:repeat-y;"> <table align="center" cellpadding="0" cellspacing="0" width="1024"> <tr> <td style="width:200px; vertical-align:top;"> <div style="padding-left:15px;"> <ul id="css3menu" style="//width:165px;"> <li class="topfirst"><a href="management.php?category=General Management" title="General Management">General Management</a></li> …

0
60
Member Avatar for hbhaskar

i want to edit certain bookmarks in a word document through PHP. i bookmarked the relevant characters in the word document format.doc and run the following script....but its showing errors. Please help [CODE]<?php $word = new COM("word.application") or die("Unable to instantiate Word"); echo "Loaded Word, version {$word->Version}\n"; $template_file = "C:/Program …

Member Avatar for jkon
0
197
Member Avatar for vilasdhobale

How do I create an auto bidding feature in webid? It will require the bidder to set their maximum bidding price, so that the system will automatically place the bids at regular intervals whenever there is a new bid, until the maximum is reached. What do I have to do …

Member Avatar for Akash Saikia
0
95
Member Avatar for slrobinson1983

hello all. i have this code... [CODE]<?php $query= "SELECT * FROM table"; $result=mysql_query($query) or die(mysql_error()); $num_rows = mysql_num_rows($result); if($num_rows > 0) { echo "<table>"; while($row = mysql_fetch_array($result)) { echo "<td>" . $row['data'] . "," . "</td>"; } echo "</table>"; } ?>[/CODE] lets say it is displaying from 5 records, it …

Member Avatar for diafol
0
105
Member Avatar for brianjoe

Hi all I have made a website for a client, a little like a small forum. There are these inputs when starting a new thread: Headline URL Content In the URL they can type only letters numbers and a "-". So that their threads URL can be like [url]http://www.something.com/show/this-is-my-thread[/url] But …

Member Avatar for MagicMedia
0
147

The End.