39,402 Topics
![]() | |
Hi I have been searching everywhere including daniweb about retrieving image paths out of a mysql database and outputting them as images on the page using PHP. Does anyone know of a good tutorial that will help me do this. Thanks Studio | |
hi Friends i have problam withe oop i have class : [CODE] class create { function CreateDiv($persian,$author) { $div="<div align=\"right\" dir=\"rtl\">" . "<p style=\"font: 12px Tahoma; direction: rtl; text-align: right; line-height: 20px;\">" . "test datebase" ."<font color=\"#0066FF\">$author</font> ".$persian->date('compelete')."<br>" ."</div>"; return (string) $div; } } [/CODE] and sample page [CODE] <!DOCTYPE … | |
hi, i am new to php can u please tell me how ti insert data into table for user name and password?? | |
I've just been editing an open-source PHP application (original version at [url]http://scripts.ringsworld.com/content-management/basiccms/[/url] , and modifying it to suit my needs :icon_cheesygrin: However, the PHP application is a CMS and always generates URLs this way: [url]http://yourwebaddresshere.com/cms/?id=1[/url] when I am trying to get it to be [url]http://yourwebaddresshere.com/cms/?id=pagename[/url] but I am struggling to … | |
Ok so Ive been working with PHP for a while now but now trying to go beyond the basics, Im building an admin panel for example for a database of cars, and Im intending for the user to be able to scroll down a table of entries populated by the … | |
Hi all, this is my first post and was wondering if someone can help me :D See I have a search field with a results.php and I want to have results from multiple fields. [ICODE]<form id="form1" name="form1" method="get" action="results.php"> Search: <label> <input type="text" name="findthis" id="findthis" /> </label> <label> <input type="submit" … | |
I have tried: [CODE]$urlres = preg_match_all('#<img[^>]*?>#si', $site, $matches); $checkhttp = preg_match('#src="http#si', $matches[0][$i], $checked); if ($urlres = true) {for($i = 0, $size = sizeof($matches[0]); $i < $size; ++$i) { if ($checkhttp != true): $pattern = '#src="http:#'; $replacement = 'src="'; $replacement .= $link2; $string = $matches[0][$i]; $result = preg_replace($pattern, $replacement, $string); echo … | |
can somebody tell me what the error is [B]Call to a member function insertseek1() on a non-object[/B] | |
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 … | |
Is there object persistence in PHP 5? I ask because it seems that with all the associated memory overhead with OOP, I am wondering if there is another reason for PHP to go OOP besides maintainability. | |
I have got my database driven web site I m using Code : [code=php]$query = "SELECT * FROM $sTableName WHERE ID=$inPageID LIMIT 1"; $_CONTENT = mysql_fetch_array(mysql_query($query)); <?= $_CONTENT['PAGE_CONTENT'] ?>[/code] to insert the content, into the page. Now if I wanted to add a php command into the page (the part … | |
Hi I have a simple Table (Table1) with 3 fields (ID, Date, Value). So if I query the DB for a certain date it lists the ID and value of all rows with that date. What I need to do is have a checkbox next to each table row and … ![]() | |
Hi everyone, I want to use two radio button on a php page when we click on first radio button page will show different form below the radio button and when we will click or select second radio button then i want to show another form on the same php … ![]() | |
Hi guys I must insert in a html site a htaccess file that create a redirect 301 to the site home page for every page that gives error 404 (Page not found), but without affecting the single redirect 301 already present in the file htaccess regarding other subpage moved and … | |
hi, i am a php developer. i have query. i have to send a email with the MS Word document attached to it. The document is submitted by the user along with his form through a HTML file. the email contains the form details entered by user and the attachment … | |
Hi Friends, Here i require some help regarding my problem. My Problem is how can i do automatic attachment (only PDF) when i will send a email. I am using Cpdf class for writing a dynamic pdf retrieve from mysql Database. Right now my code is working well when i … | |
I'm trying to retrieve the last modified information of a webpage? I don't even know if php would do it or would javascript be better better for this. I've tried document.lastmodified with java script but that does not help much. I've noticed that in firefox ->tools->page info gives me the … ![]() | |
Hello guys! I hope you don't mind me posting so quick again. I am struggling or better don't seem to have proper idea about what to do here. I want to make a simple birthday reminder. I have got a list of people in my database and I log in … | |
Hi I am trying to get the first day of a given month and the last day. I use mktime function like so: mktime(0,0,0,7,1,2007); and got the time stamp: 1183212000 when I converted it I got: Sat, 30 Jun 2007 14:00:00 GMT which is not what I want, I wanted … | |
Hi , to all I want your help :- How i can open a new file (may be called as "form1.php" ) on my current page , only by onclick of radio buttons without using submit button ? any suggessions will be appreciated. Thanks & Regards. ![]() | |
i want to diplay values from database to table.then i want to edit new value to the same field and post to database.how can i do it using php codes.please help me |
The End.