39,323 Topics
| |
i am porting over PHP code that was running prior to PHP5. Server is apache. i cannot get _GET or _POST to return a value that normally be obtained from an HTML page. I do know that in this version of PHP, the $HTTP_GET_whatever function has been deprecated. I am … | |
In my mysql table there are following values: ID (unique)(Auto incre.) INI URL Name DeprSize Dept. Location Knownsince MeetingNotes The php queries are 1) SELECT * FROM `dep1` WHERE `INI` 2) SELECT * FROM `dep1` ORDER BY `dep1` .`Name` DESC And the sql indexes are: ---------------------------------------------------------------------------- Keyname Type Cardinality Field … | |
I have a script which uploads image in a folder then then path to the database. it works well. the problem is that i can`t display the image using the path. [code=php] <?php $sql=mysql_query("SELECT path,user,date,filename FROM picha WHERE user='peacemaker'"); $row = mysql_fetch_array($sql); $user=$row['user']; $filename=$row['filename']; $path=$row['path'];//here you get path where you … | |
I am working on a web application and I would like to combine java script and php. I am using the window.confirm() function which gives a user an option to choose either yes or no. I am actually using this feature to end a users session so if user clicks … | |
i got a problem wiht path for userfileupload for fckeditor in cakePHP i used in config.php of fckeditor as $Config['UserFilesPath'] = '/tours/app/webroot/files/images' ; for my localhost with xampp but it is not working for uploading the files with fckeditor it says '/tours/app/webroot/index.php/images' cannot be created. i think its a problem … | |
Hello, can someone tell me how can I output all fields of a row in a mysql db using php? and then write. | |
Dear Forum, I've been doing php for sometime but just doing my first secure site. I am usign shared ssl from my webhost. I setup my pages and tested a paymennt system and the test is ok but now need to move the pages that contain personal info to the … | |
On my site lots of images are being used which are currently being stored on my server. But bandwidth is increacing quite alot and I want to store them on somewhere like Tinypic or Imageshack So my request is an image uploader to a free host using cURL. What I … | |
<?php $conn = new mysql('localhost', 'root', 'adm1ns'); $sq1 ="INSERT INTO data VALUES(?,?,?); $stmt = $conn->stmt_init(); $stmt->prepare($sql); $stmt->bind_param("sss",$instance,$instance,$instance); $stmt->execute(); $stmt->fetch(); ?> i use this code to store the data in mysql given by user... in sixth line i am getting a error "unexpected T_STRING" i cant cant this error pls help … | |
Hi to All, please suggest me easy codings for " Validation of form & Email field " any suggessions wiil be appreciated. Thanks & Regards | |
i don't know why my php code within the <html> doesn't work at all. [code] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta name="xsoldier2006" content="xsoldier2006, 2006, xsoldier, henry li, veteran 2006" /> <link rel="stylesheet" type="text/css" href="css/text.css"/> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Xsoldier_Home</title> </head> <body bgcolor="#333333"> <?php … | |
Hi All.. I'm using the following script to give the option to either "SAVE" or "OPEN" a file, via headers() function. I'd like disable the "OPEN" option -- does anybody know if this is possible? So that the script only offers the option of saving the document... Thanks for all … | |
Hi All I am trying to create a page to delete records from a database, but i cannot seem to get the right code in hereunder please find my code [code=php]<?php require_once('Connections/conn.php'); ?> <?php if (!function_exists("GetSQLValueString")) { function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") { $theValue = get_magic_quotes_gpc() … | |
Hi, I am trying to connect to a COM component using PHP, but keep on recieving an "Unexpected error has occured" message. The COM component code is [CODE=vb] Option Explicit Public Enum ApplicationErr Unexpected = Error.Unexpected End Enum Private Const m_csClassName As String = "XYZ.Application" Public Sub Initialize(ByVal udl As … | |
Firstly what a great forum and site alot of the threads on here have helped me over the past couple of months create and update alot of sites. So here is my problem, I have a importer which imports a feed (csv file) from a supplier (no problem importing it) … | |
hello I want to read data from a pdf file. I used file_get_contents(); but i didnt get the result...please help me..... very urgent. Thank you Ditty K.M | |
Hi to all, please tell me any easy php code, To 'show' and 'hide' a new form file (may be called as "form1.php") on same current page by click on radio buttons ? Any suggession will be appreciated, Thanks and Regards. | |
Hi All, First of all i'll tell you what i m doing .... I ve a blog at [url]http://myblog.blogspot.com/[/url] ... now ... i am going to make simple website for myself and i want my blog to open inside my website .... i tried using [code=php] <?php $remote = fopen("http://myblog.blogspot.com/", … | |
I am running WAMP and have pulled one of my sites down from the server that I need to work on locally. Can someone give me some pointers on how to get it running? I have done this with a Drupal site in the past and it runs like a … | |
I need to use ajax to make this whole process smoother. Here is a demo: http://www.theflickzone.com/dev/ If anyone can do this for me I will pay a few $ via paypal to say thanks :) Contents of index.html <form action="return.php" method="POST"> <p>IMDB URL: <input type="text" name="imdb" autocomplete="off"></p> <p>Links(line by line): … | |
Hi Everybody, i am looking for ebooks on php 5. please help me and give me some nice links. | |
i need a image re size code that takes a image and display the according to desired pixels. i have following code but its not working. it just shows the original image. [code=php]function imageResize($width, $height, $target) { //takes the larger size of the width and height and applies the //formula … | |
I wand to give the user the ability to upload as many pictures as he wants to. at present I hava a fexed amount of browse fields wich the user can use to select pictures... the code looks something like this : [code] <?PHP $max_file_size = 3000000; ECHO "<FORM NAME=name … | |
hi there , this is my code [code]ob_start(); <?php require_once('Connections/connectdb.php'); ?> <?php include('Connections/connectdb.php'); ?> <?php //initialize the session if (!isset($_SESSION)) { session_name(Username); } // ** Logout the current user. ** $logoutAction = $_SERVER['PHP_SELF']."?doLogout=true"; if ((isset($_SERVER['QUERY_STRING'])) && ($_SERVER['QUERY_STRING'] != "")){ $logoutAction .="&". htmlentities($_SERVER['QUERY_STRING']); } if ((isset($_GET['doLogout'])) &&($_GET['doLogout']=="true")){ //to fully log out … | |
Hi Guys, Ok here is the deal, i'm looking for a script that will allow a site admin to upload an image then add a description to it then click on save / upload/ send.... (whatever) Then the image and text is displayed on the webpage. I'm thinking of including … | |
Hi, all. i installed the XAMPP and run the [url]http://localhost[/url]. It seems fine for me and it show some welcome and "it works" information. But when i click SQL Admin, it couldn't run correctly. It always have some error information show up. the problem is like the attachment show up. … | |
Hello I need to do a php survey, I have php questionare but it does not support images. What I need to do is have users upload car pictures and then people to be able to vote on the cars to determine a winner. any advice from someone???? Than kyou | |
Hi im new to the site and my question is why wont my php files display in my browser? I have 10 years exp with html but i turned my site over to a developer he put in php. Now when i go to upload my site to a different … | |
in the following piece of code the else part of my if/else statements doent seem to work it just adds nothing, thanks. btw genre is a dropbox (and yes i have added the values) and genre2 is a text box, same with the filehost and filehost2. [CODE=php]$name = $_POST['song']; $artist … |
The End.