38,023 Topics

Member Avatar for
Member Avatar for arunpawar

HI, i have written a bookmarking page that lets me add urls to database. as i have placed both database results and new url button code in same page. i have a bit conflict. whenever i refresh the page, dot entry goes in database and table gets populated which is …

Member Avatar for arunpawar
0
96
Member Avatar for xabi

Having trawled through approx 100 sites looking at various scripts, I cannot seem to find what I need, so was hoping that somebody could point me in the right direction. Either for a free script or tutorial or I would even consider a paid script. I have a website that …

Member Avatar for Skelly1983
0
106
Member Avatar for Verean

I've tried everything that I know of, to make the fields required. The form is quite simple and small. Here is the visual form code: [CODE]<form action="insert.php" method="post"> <table cellpadding="2" border="0"> <tr> <td>Server Name:</td> <td>IP:</td> </tr> <tr> <td> <input name="Name" type="text" /> </td> <td> <input name="IP" type="text" /> </td> </tr> …

Member Avatar for Verean
0
194
Member Avatar for mlhazan

Hello Experts, I am getting unwanted result.Please help! Here is the function: [CODE] function ArrayResults($result){ while ($row = mysql_fetch_assoc($result)){ //echo $row["first_name"]; //tested :works!! $this->arr2[] = $row; } return $this->arr2; }[/CODE] I called the function and used the print_r to see how is the array: [CODE] $mysql->ArrayResults($mysql->ExecuteSQL("SELECT * FROM Employee")); print_r($mysql …

Member Avatar for mlhazan
0
90
Member Avatar for adityamadhira

Hi I need help regarding file download. $url="http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']; $id = strrchr($url,"/"); $id= substr($id,1,strlen($id)); retrieving name of the pdf from url header('Content-disposition: attachment; filename='.$id); header('Content-type: application/pdf'); readfile($id); code for downloading file but it is not working? So i need help from you guys. Thanks in advance.

Member Avatar for adityamadhira
0
139
Member Avatar for macrogeek

Hello everyone...!!!! I am new to PHP and have problems using $_SESSIONS , the SESSION variables which I set in one file are not recognised in scripts stored in other Files...I get the error :Undefined index 'XYZ' for any arbitrary variable $_SESSION['XYZ']...Anyone having idea to resolve this issue....Following is the …

Member Avatar for weekendrockstar
0
231
Member Avatar for Ctechnology24

Is it possible to retrieve image to a PHP page from database if it used vb.net to save it? because I think the encoding style used by vb.net is not the same to the encoding process that I used in PHP, thats why I cant retrieve my image because of …

Member Avatar for jkon
0
145
Member Avatar for DaveyMoyes

Hi all, this is just a quick question with regards to php session data. . . I have a php built website and I am trying to develop a mobile html / php website to connect to the desktop website. I can enter my username / password / and secure …

Member Avatar for DaveyMoyes
0
180
Member Avatar for mmnewbee

I need help to solve a problem that has been troubling me for some time. I have a php search page that im having trouble paginating. The problem is that only the first page outputs anything the rest of the pages are blank. And I have already gone through all …

Member Avatar for mmnewbee
0
121
Member Avatar for moroccanplaya

[CODE] $url = $_GET['url']; echo $url; [/CODE] i dont know why i get a Undefined index error

Member Avatar for moroccanplaya
0
249
Member Avatar for heshanm

I have following errors in below coding. Undefined variables: fname,focu,foad,ftp,fmf,mname,mocu,moad,mtp,mmf,gname,gocu,goadd,gtp,gmf in C:\wamp\www\Student registration\manage studnt parent details\manageStudentRegistrationParentDetailsForm.php Code <?php $query="SELECT state,name,occupation,office_address,office_telephone,mobile_number FROM parent_info where admission_no='$admission_no'"; $result=mysql_query($query); while($row=mysql_fetch_array($result)){ $first=$row['state']; if($first=='father'){ $fname=$row['name']; $focu=$row['occupation']; $foadd=$row['office_address']; $ftp=$row['office_telephone']; $fmf=$row['mobile_number']; } if($first=='mother'){ $mname=$row['name']; $mocu=$row['occupation']; $moadd=$row['office_address']; $mtp=$row['office_telephone']; $mmf=$row['mobile_number']; } if($first=='guardians'){ $gname=$row['name']; $gocu=$row['occupation']; $goadd=$row['office_address']; $gtp=$row['office_telephone']; $gmf=$row['mobile_number']; } } ?> …

Member Avatar for heshanm
0
109
Member Avatar for ressaince

i have an ASP web services to change byte array that given from the client and change it to a file and save it in the web server the code is like this : [CODE] [WebMethod] public string UploadFile(byte[] f, string fileName) { try { MemoryStream ms = new MemoryStream(f); …

Member Avatar for Dagar.pp
0
510
Member Avatar for danielbala

Hi.. I installed WAMP server... When I go to localhost iam getting this is "NOT FOUND" HTTP Error 404. The requested resource is not found. how to solve this

Member Avatar for danielbala
0
150
Member Avatar for AdmanX

Hello, I am currently building a site for friends that would like to have 1 site but have 4 separate blogs on it. I have created a basic php admin section which allows 1 user to go in and add posts, manage posts and delete posts. What i would like …

Member Avatar for AdmanX
0
199
Member Avatar for subrata_ushasi

Hi all, I am trying to install a project management software "Mantis" but while installing it is giving the error [B]"BAD Does administrative user have access to the database? ( Lost connection to MySQL server at 'reading initial communication packet', system error: 111 )"[/B] urgent ,any body else thanks in …

Member Avatar for subrata_ushasi
0
1K
Member Avatar for mlhazan

Dear users, I am new to PHP5. My LAMP is working just fine.I made small database connect scripts and they just worked as it should.Then I tried the following code and run the mysql.php but showing me following error: [CODE]Could not run query: Access denied for user 'www-data'@'localhost' (using password: …

Member Avatar for emclondon
0
165
Member Avatar for bavenbabu

I have a problem while creating an xml file in php.I am not getting th root element.But all other elements are been outputted in the result.What might be the reason????Any help would be appreciated.The code is depicted below.order is my root element. <?php $url='success.xml'; //$xml = simplexml_load_file($url); $name = htmlentities($_POST['name']); …

Member Avatar for bavenbabu
0
169
Member Avatar for danielsikes

Hi, [CODE] <table class="info"> <thead> <tr> <th>Mailing Address</th> <th>Location Address</th> </tr> </thead> <tbody> <tr> <td><address>123 Somewhere ST.<br/>Somewhere, CA 123456</address></td> <td><address>123 Anotherplace Ln.<br/>Somewhere Else, CA 123434</address><br/></td> </tr> </tbody> </table> </div> <h3>Information</h3> <div class="blockContent borderedContent"> <table class="entryForm"> <tbody> <tr> <th>Website:</th> <td>http://somewebsitehere.com</td> </tr> <tr> <th>Segment 1:</th> <td>SomeInfo Here</td> </tr> <tr> <th>Email:</th> <td><a class="mailLink" …

Member Avatar for pritaeas
0
241
Member Avatar for mlhazan

I am currently working on a blog page and I need to highlight codes.It will grow as time passes so I am thinking in a broad sense.Geshi looks nice codes are readable but draw back is server side.If a page has 3/4 file it may make it delay on the …

Member Avatar for pritaeas
0
122
Member Avatar for florin1

Hello guys. I made a form with 3 inputs (song name 1, song name 2 and album name). When i submit this form it calls a php script like this one: [CODE]<?php $song1 = $_POST['song1']; $song2 = $_POST['song2']; $album = $_POST['album']; $output = shell_exec('D:\\apache\\htdocs\\test\\mp3wrap\\mp3wrap.exe '.$album.' '.$song1.' '.$song2.''); echo "<pre>$output</pre>"; ?>[/CODE] …

Member Avatar for florin1
0
163
Member Avatar for GordonUK

Hi everyone, I wonder if anyone can help me? I am developing a music website where users can download songs and I have noticed that other similar websites use folders called "Compressed Zipped Folders" which are unzipped automatically by Windows Vista etc. What I want to know is how to …

Member Avatar for pritaeas
0
135
Member Avatar for tubesnube

Hi guys. Was wondering could anyone help me here. What I am trying to do is to generate a number for a document upon selection. The number can't be random. As an example I mean: User request's 'Document X', Document X appears on screen and at the top of the …

Member Avatar for tubesnube
0
90
Member Avatar for vijiraghs

the following is my requirement: There are thousands of RDF files in a folder in my local webserver. The following is the structure of each of the files. [CODE] <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" > <rdf:Description rdf:about="http://www.wordpress.com/blogs/introduction to RDF"> <rdf:subject>introduction to RDF</rdf:subject> <rdf:object>vj</rdf:object> <rdf:value> formality</rdf:value> <rdf:value>intro</rdf:value> </rdf:Description> </rdf:RDF> [/CODE] The user will enter …

Member Avatar for cereal
0
579
Member Avatar for jdgieschen

[B]I'm trying to paginate my search results. The first page comes up just fine, but when I click to go to the next page, this happens:[/B] Notice: Undefined index: d1 in D:\Website Design Environment\EasyPHP-5.3.8.1\www\jquery_ui\process.php on line 2 Notice: Undefined index: d2 in D:\Website Design Environment\EasyPHP-5.3.8.1\www\jquery_ui\process.php on line 3 Notice: Undefined …

Member Avatar for jdgieschen
0
894
Member Avatar for technoknol

Hi friends, I have one file in PHP this file is remote upload script. But when i run this file, it's not downloading specified file in URL. Below is a script is there anyone who can solve my problem then pleases help me. [CODE]<?php define('BUFSIZ', 4095); $url = $_GET["t1"]; // …

Member Avatar for weekendrockstar
0
134
Member Avatar for phpbeginnerx

Hi experts, below are codes i learn from php video tutorial : <?php require_once("includes/connection.php"); ?> <?php require_once("includes/functions.php"); ?> <?php if(isset($_GET['subj'])) { $sel_subj = $_GET['subj'] ; $sel_page = ""; } elseif (isset($_GET['page'])) { $sel_subj = ""; $sel_page = $_GET['page'] ; } else { $sel_subj = ""; $sel_page = ""; } ?> …

Member Avatar for urtrivedi
0
144
Member Avatar for gopi17

helloo....guys need a favour from you....okay this is the scenario i have a attribute called document_no, now i would like to append running numbers behind it to fill in a new attribute eg: document_no = 123222 serial_no = 12322201 12322202 12322203 now the number starts from 01 and go on …

Member Avatar for gopi17
0
89
Member Avatar for stanley87

Hi,guys,i cant solve this insert query into ,this is my query,i want it to insert it to another new table.How to solve this query?thank Q very for the help...cheers [CODE] SELECT adp.adsPageId,adp.adsSpaceId, DATE_FORMAT(adp.dayClick, '%Y-%m-%d') AS dateReport, (SELECT COUNT(*) FROM ads_display att WHERE att.adsSpaceId = adp.adsSpaceId AND att.adsPageId = adp.adsPageId AND …

Member Avatar for stanley87
0
128
Member Avatar for bibiki

Hey there, the following is what I get when I perform a typical query on my database: +--------+----+---+---+----------+ | length | id | l | p | username | +--------+----+---+---+----------+ | 50 | 12 | 1 | 1 | bibiki | | 50 | 12 | 1 | 2 | …

Member Avatar for bibiki
0
163
Member Avatar for singularity~

I'm getting an error Notice: Undefined variable: temp. Event though my variable temp is declared; [CODE] if(isset($_POST['saveHomePageDescription'])) $temp = 'hello'; writef("./homePageDescription.txt",$temp); [/CODE]

Member Avatar for diafol
0
219

The End.