39,326 Topics

Member Avatar for
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
100
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
61
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
120
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
66
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
204
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
121
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
234
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
153
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
253
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
88
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
148
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
143
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
77
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
100
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
58
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
195
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
92
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
144
Member Avatar for zeeshan_kust

Hello all, i have two arrays i.e [CODE]$ar1=array("Mobile","shop","software","hardware");[/CODE] and [CODE]$arr2=arry("shop","Mobile","shop","software","shop")[/CODE] i want to compare the elements of arr2 to arr1 i.e [CODE]foreach($arr2 as $val) { if(in_array($val, $arr1)) { //mycode to insert data into mysql table variable++; // here there should be a variable that must be increamented when ever match …

Member Avatar for kekkaishi
0
158
Member Avatar for begueradj

Hi people, I get an error when performing the following request: [CODE] $query=" SELECT * FROM vessel,cargo,customer ORDER BY ladate DESC WHERE vessel.id=cargo.id AND vessel.id=customer.id LIMIT $eu, $limit";[/CODE] it is about the ORDER BY ladate DESC Can you you show me where I should write ORDER BY in the correct …

Member Avatar for begueradj
0
112
Member Avatar for lsvife

I am trying to connect myphpadmin.. when i use 'localhost' i can connect easily to myphpadmin but when i replace localhost to my ip address i got an error it says Forbidden You don't have permission to access /phpmyadmin/ on this server. I've already change the privileges but still i …

Member Avatar for lsvife
0
431
Member Avatar for NutanGadakh

How to protect web page printscreen and Save As option in file menu? Can anyone help me?

Member Avatar for diafol
0
56
Member Avatar for yorro

Anyone can tell my why it keeps saving at My Documents? [CODE] $newfile = 'temp.xls'; $wkb->SaveAs($newfile); [/CODE] If I [B]echo[/B] $newfile, it will display 'http://localhost/test/excel/temps.xls' Its suppose to save it at same level right? wrong, it keeps saving at "My Documents" How is that possible? Thanks

Member Avatar for yorro
0
118
Member Avatar for kokfui

hi all, im current doing a assignment, i looking for a solution for my problem, now i have a database to store my item information include item name,id,content,price. actually it is a bidding system, if someone bid on the item, the item id will stored into the buyer informatio, and …

Member Avatar for happytogether
0
121
Member Avatar for ricardo de melo

Hello, I'm trying to do some editing in my website but I just don't know what was wrong that caused some message appear on my website "Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 122880 bytes) in /home/rumahcem/public_html/wp-admin/menu.php on line 82" So can anyone help me …

Member Avatar for happytogether
0
149
Member Avatar for adamworld

I am trying to store millions of records with address, city, state, zip, etc. I originally had one table with 17 different fields with the primary key being id. However, I soon realized after inserting almost a million, the website began to lag and was slow. What is the best …

Member Avatar for debasisdas
0
261

The End.