39,392 Topics

Member Avatar for
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
77
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
210
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
154
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
67
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
106
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
112
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
142
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
147
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
214
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
189
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
952
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
104
Member Avatar for serdas

i don't know if this is enough you to help me but looking at this could you tell me what i could do to fix it? [code] $user_check = mysql_query("SELECT userdb_user_name FROM default_userdb WHERE userdb_user_name='$reciever'"); $user_check = mysql_num_rows($user_check); Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in …

Member Avatar for serdas
0
173
Member Avatar for patharianidhi

Dear all Plzz help me I am stuck with PHP include function. I have given the include path in php.ini file as include_path="C\PHP_includes In PHP_include folder i have 3 files menu.inc which has html code, menu.css that has all the styles and menu.js that has certain functions. i have a …

Member Avatar for diafol
0
132
Member Avatar for rapperhuj

i used phpmyadmin software then i create a database named sycom_dbase, but the problem i can execute it. but there is no output? and error messages.. any comments suggestions. why did it happens. where should i save all my php files.. www? i save it in www folder but it …

Member Avatar for diafol
0
168
Member Avatar for vinithktp

Hi, I developed a website with captcha image validation. I developed it with PHP Version 5.2.5 and i uploaded on PHP Version 4.3.11 server. Captcha image validation working with my server. But it is not working with my cient server. Here iam sending my code sample. Please help me to …

Member Avatar for buddylee17
0
153
Member Avatar for headedtomexico

I'm writing this little page that lets you sort of have a conversation with a perl script, and i'm having a problem. At the top of my php I access the perl script, with some text that the user input via a textbox. The perl responds with.. we'll say "Havin' …

Member Avatar for KevinADC
0
101
Member Avatar for akai80

Hi does anyone knows which is the most user-friendly software tool to use if i were to develop a Classified Ads website with enabled private messaging among users? I would prefer to develop on a PHP/MySQL platform. i have tried using GeoClassified but i find it quite user-unfriendly esp while …

Member Avatar for almostbob
0
76
Member Avatar for MSK 7

Hi to all, I am beginner in the field of php & I have a problem as, I want to open & show the contents of a new form (with in new window) , as click on submit button in the current form, after selecting one of the two radio …

Member Avatar for blocblue
0
79
Member Avatar for agent007

Hey All Has anyone successfully configured FastCGI (mod_fastcgi-2.4.6-AP22.dll), Apache (2.2.11) and PHP (5.2.8) on Windows XP (Pro XP3)? I have setup the fastcgi module and entered the directive to load it in the httpd.conf file, and edited that file further to use the fastcgi module to parse .php files. However, …

0
75
Member Avatar for almostbob

Got directed to these [url=http://www.addedbytes.com/cheat-sheets/php-cheat-sheet/]cheat sheets [/url] php css scripting regular expressions 'et al' had to pass the link on

Member Avatar for diafol
1
132
Member Avatar for ibiyemi

Hi Everyone, I am a bit new to using php/Mysql and i am having a little challenge. I am creating an online form but on entering a value in one of the form fields, i want to add a link to check if that value is valid(ie if it does …

Member Avatar for diafol
0
70

The End.