39,402 Topics

Member Avatar for
Member Avatar for Studio

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

Member Avatar for Studio
0
72
Member Avatar for Coward

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 …

Member Avatar for Coward
0
68
Member Avatar for rush1

hi, i am new to php can u please tell me how ti insert data into table for user name and password??

Member Avatar for rush1
0
90
Member Avatar for whitestream6

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 …

Member Avatar for FlashCreations
0
148
Member Avatar for user1701

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 …

Member Avatar for user1701
0
99
Member Avatar for apollokid

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" …

Member Avatar for marcosjp
0
131
Member Avatar for ade92uk

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 …

Member Avatar for death_oclock
0
73
Member Avatar for queenc

can somebody tell me what the error is [B]Call to a member function insertseek1() on a non-object[/B]

Member Avatar for death_oclock
0
47
Member Avatar for ubaldc

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 …

Member Avatar for ubaldc
0
246
Member Avatar for desiguru

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 …

Member Avatar for pritaeas
0
106
Member Avatar for mrcniceguy

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 …

Member Avatar for mrcniceguy
0
295
Member Avatar for sureronald

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 …

Member Avatar for diafol
0
99
Member Avatar for naju

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 …

Member Avatar for diafol
0
110
Member Avatar for lldcrb328

Hello, can someone tell me how can I output all fields of a row in a mysql db using php? and then write.

Member Avatar for cwarn23
0
93
Member Avatar for jgna

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 …

Member Avatar for cwarn23
0
66
Member Avatar for theimben

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 …

Member Avatar for theimben
0
76
Member Avatar for nawabsheriff

<?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 …

Member Avatar for nawabsheriff
0
266
Member Avatar for MSK 7

Hi to All, please suggest me easy codings for " Validation of form & Email field " any suggessions wiil be appreciated. Thanks & Regards

Member Avatar for nav33n
0
66
Member Avatar for k2k

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 …

Member Avatar for katarey
0
145
Member Avatar for queenc
Member Avatar for mschroeder
0
83
Member Avatar for lldcrb328

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 …

Member Avatar for almostbob
0
63
Member Avatar for dragon@dragon64

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() …

Member Avatar for dragon@dragon64
0
263
Member Avatar for amey72

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 …

0
48
Member Avatar for glycerine

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) …

Member Avatar for glycerine
0
123
Member Avatar for ditty

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

Member Avatar for death_oclock
0
99
Member Avatar for MSK 7

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.

Member Avatar for death_oclock
0
126
Member Avatar for jyotiu

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/", …

Member Avatar for theimben
0
100
Member Avatar for 2bu

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 …

Member Avatar for theimben
0
80
Member Avatar for theimben

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): …

Member Avatar for theimben
0
121
Member Avatar for Naveed_Cn

Hi Everybody, i am looking for ebooks on php 5. please help me and give me some nice links.

Member Avatar for peter_budo
0
138
Member Avatar for mr.khurrams

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 …

Member Avatar for ShawnCplus
0
78
Member Avatar for marcmm

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 …

Member Avatar for marcmm
0
211
Member Avatar for mlempaa

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 …

Member Avatar for sarithak
0
155
Member Avatar for emhmk1

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 …

Member Avatar for emhmk1
0
116
Member Avatar for shasha821110

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. …

Member Avatar for shasha821110
0
69
Member Avatar for jencinas69

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

Member Avatar for almostbob
0
103
Member Avatar for MrMellow

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 …

Member Avatar for almostbob
0
242
Member Avatar for Scottmandoo

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 …

Member Avatar for Scottmandoo
0
107
Member Avatar for chadlong41

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.

Member Avatar for death_oclock
0
114
Member Avatar for chadlong41

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 …

Member Avatar for death_oclock
0
80
Member Avatar for chadlong41

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 …

Member Avatar for diafol
0
64
Member Avatar for gagan22

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 …

Member Avatar for diafol
0
143
Member Avatar for Danthon

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 …

Member Avatar for Danthon
0
149
Member Avatar for chaithanya_86

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 …

Member Avatar for masijade
0
137
Member Avatar for jeet_portal

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 …

Member Avatar for jeet_portal
0
99
Member Avatar for pulse0

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 …

Member Avatar for diafol
0
131
Member Avatar for 6pandn21

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 …

Member Avatar for 6pandn21
0
215
Member Avatar for khr2003

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 …

Member Avatar for prawin@123
0
192
Member Avatar for MSK 7

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.

Member Avatar for diafol
0
956
Member Avatar for suneer

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

Member Avatar for suneer
0
105

The End.