39,402 Topics

Member Avatar for
Member Avatar for muralibobby2015

hello, i am facing problem with image cropping. can you provide any code for crop images. actually my problem is i want to display 400X500 images. actually the original image size is 1600x900. then i am cropping that to 400X500. but it is scretching out. please tell me is there …

Member Avatar for cereal
0
152
Member Avatar for Coyx

Hi guys, I'm wondering if anyone can help. I have surryussface flu and I just can't seem to concentrate at all. I need to be able to select a colour from a list like the attached image. I've managed to code it right up to the part where it can …

Member Avatar for Coyx
0
1K
Member Avatar for Ingska

Hi! I am coding a quite simple php form where many of the input forms are going to be filled with numbers. Is there a simple way I could get the numbers separated by thousands? Like the form showing 100 000 instead of 100000? Thanks in advance!

Member Avatar for Ingska
0
314
Member Avatar for SweetElite

Help please Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING on line 48 [CODE]'mysql_host' => $_CONF['db']['localhost'], 'mysql_user' => $_CONF['db']['xxxxxxx'], 'mysql_pass' => $_CONF['db']['xxxxxxx'], 'mysql_name' => $_CONF['db']['xxxxxxx'], 'mysql_prefix' => (isset($_CONF['db']['prefix']) ? $_CONF['db']['prefix'] :'' ), );[/CODE]

Member Avatar for MooGeek
0
49
Member Avatar for secstr

I have a similar issue with this code: [CODE]//Läsa in rätter för att kunna radera de oönskade via checkbox.. function ReadProductsForEdit($ratter){ $link = mysql_connect("localhost", "fruit", "potatoe"); mysql_select_db("db"); $result = mysql_query("SELECT * FROM meny"); echo '<form method="post" action="iframe_index.php">'; echo '<br><br><table width="500px">'; echo '<tr><td class="nr"><b>Nr</b></td><td class="ratt"><b>Rätt</b></td><td class="beskr"><b>Beskrivning</b></td></tr>'; while ($row = mysql_fetch_array($result)){ echo …

Member Avatar for secstr
0
180
Member Avatar for deraad

My program works according to what day it is, and it works perfectly, however, I don't know if the date() function is relative to the date of where my website server is located, or is it relative to where the user is? Here is an exact function i'm referring to: …

Member Avatar for deraad
0
93
Member Avatar for IT seeker

my work is stop here dont know how to do this i want to store numbers of images in mysql. after thar i want to reterive those products images with description and price. how it will be done? secondly if i click on category number 1 those images with detail …

Member Avatar for IT seeker
0
85
Member Avatar for stoopkid

I am building a Leasing Company Property web site, and one option they'd like is to have "Similar Properties" recommended to the visitor. The array contains "Bedroom Type" data (studio, 1 bedroom, 2 bedroom, 3 bedroom). A sample array is: Array ( [0] => Studio [1] => 1BR ) I …

Member Avatar for diafol
0
145
Member Avatar for Danny159

Hey All, I am after a HTML select file that has all the UK towns and cities in it does anyone know of one? Dan

Member Avatar for Danny159
0
111
Member Avatar for Farhad.idrees

Hi i need to make logic..in ecommerce web.. When i add any item to cart so Items Session start... but the problem is if i add same any again to cart so when i will be implemented? i know i need to use multidimentional arrary...becuase of item id and price.... …

Member Avatar for Rhamises
0
110
Member Avatar for Mohan_dhawle

i am devloping one web application where am faceing problem, i want to use the value enter by user in textfield into one sql query in that program, and am unable to do that can anyone please provide me code for this??

Member Avatar for diafol
0
94
Member Avatar for fffkral

Hello! How can I send a form's informations to several php file...!? For example, a user with a form can to register several website or blog. I am waiting for your guidance and thanks!

Member Avatar for NinjaMediaD
0
154
Member Avatar for jacko_162

New user to Daniweb in the hope i can get some help cus my brain is fried. Im relitively a n00b at php but i can handle the basics, working with images is beyond me at the moment but im learning. I have the below code, which works. it uploads …

Member Avatar for jacko_162
0
268
Member Avatar for DarkBerzerk

im using SimpleCart script and when the custmer press the Checkout Button [CODE]<a href="javascript:;" class="simpleCart_checkout">Checkout</a>[/CODE] this code run [CODE] me.checkout = function() { if( me.quantity === 0 ){ error("Cart is empty"); return; } switch( me.checkoutTo ){ case PayPal: me.paypalCheckout(); break; case GoogleCheckout: me.googleCheckout(); break; case Email: me.emailCheckout(); break; default: me.customCheckout(); …

Member Avatar for DarkBerzerk
0
126
Member Avatar for madz015

Does anyone uses a proxy debugger. Please share it with me. I have a problem with my nusoap I don't know why it's not working. I need to know if its communicating the web services or not..please..please

Member Avatar for pritaeas
0
78
Member Avatar for kinnu tandel

hello frnds, I am stuck with one problem.please help me..thanks in advance.. well, i have html registration page with username,password,firstname,lastname,and when i submit this from then all those information should be store in a file like text,xls,csv any type. i am not using any database.i used to store information in …

Member Avatar for cereal
0
77
Member Avatar for httpgal

I'm having a strange problem with a website I'm working on. What I want to do is pass a SQL query variable (in this case cid) using a link, but for some reason it just isn't working. This type of query works just fine on other pages of this site, …

Member Avatar for httpgal
0
208
Member Avatar for titosd

Hello, I have a question/ I want to get the selected value from a form without submit, and then to use this selected values in another php file. i think if i can put the values in array, and then to register the array on a session, and the to …

Member Avatar for diafol
0
147
Member Avatar for mwenyenia07

i want to load client details as follows: 1. you enter his/her Identity number in a textbox and press enter. this will call a controller that will do the rest of the stuff. how can you do it using jquery and codeIgniter. show by example.

-2
95
Member Avatar for spectralbat

Hi guys, I'm in the process of learning PHP. I know the dribs and drabs and can kind of understand code when I read it, but I'm not to the point of being able to write an advanced script from scratch. I've been interested in chatbots and the concept AI …

Member Avatar for Tomy300
0
2K
Member Avatar for bayken37

Hey guys, can't say that I'm all that versed in php code but I'm wondering if it's even possible to do what I want to do. Basically I need the inserted .inc file to be variable based on the page ID ("TEAMID" below) .. so if it's id=15, I need …

Member Avatar for MagicMedia
0
128
Member Avatar for 007tron

hi all I have the code below, and I am getting this error: The image "http://127.0.0.1/newsite/thumbnailgenerator.php" cannot be displayed because it contains errors. think this should be correct, what could the problem be? please help if you can. thanks :) [CODE] <?php header('Content-type: image/jpg'); function create_thumb_nail($array_image) { if (isset($array_image['image'])){ $image …

Member Avatar for 007tron
0
210
Member Avatar for amear

$result = mysql_query("SELECT * FROM rooms"); while($row = mysql_fetch_array($result)) { mysql_query("insert into chat (name,text,date,chat_id) values('$_SESSION[username]','$_POST[text]','$date','$row[id]')"); } can i do that without repeat the mysql_query code?

Member Avatar for amear
0
114
Member Avatar for Buppy

Hi, Maybe anyone has worked with this before. I have a cakephp app where i need to dynamically create images. When i use header('Content-Type: image/png'); imagepng($dest); i get this - The image cannot be displayed, because it contains errors. When i try this imagepng($dest,"image.png"); The image is never saved, tried …

Member Avatar for cereal
0
106
Member Avatar for Sorcher

It outputs blank for some reason, here is my current code. [CODE]<table> <?php $puserid = $anothervalue; echo public_Images($puserid); ?> </table>[/CODE] [CODE]function public_Images($puserid){ $sql = "SELECT * FROM `ue-userfile` WHERE userid = '$puserid' AND albumname ='Public' ORDER BY date DESC"; $result = mysql_query($sql); $count = 0; while($row = mysql_fetch_array($result)){ if ($count …

Member Avatar for Sorcher
0
89
Member Avatar for phpsa

Drupal 7 I know there was a previous post, but this is a little more specific to the $_GET function and Drupal. echo $_GET['id']; Error Message: Notice: Undefined index: id in eval() Just to make sure it worked, I created a test site and copy/pasted my code into a php …

0
73
Member Avatar for AngieS

Ok, I feel like I'm so close, but could use some help. I am trying to retrieve data from mySQL database via use of a form with checkboxes. This form is working somewhat except that it is only pulling one selection, not all that are selected. Can someone look at …

Member Avatar for diafol
0
112
Member Avatar for AbhishekBiswal

But the problem is: There a File names "includes" which includes the php files which have been included in some of the php files outside of it. But I want to lock/ make it inaccessible for users. Is it possible that the users can't access the folder/directory but the php …

Member Avatar for cereal
0
3K
Member Avatar for no1uknow

Has anyone found a good way to create powerpoint files on the fly. I'd like to go straight from PHP but creating from an HTML or XML doc is fine too... Also I'm totally Linux so COM Objects on Windows is out... thanks for any help...

Member Avatar for chrishea
0
3K
Member Avatar for kevin wood

this code will delete all the files from a directory on the server. be careful when using this as it will delete everything in the directory so use it wisely or make sure you have backups if it is implemented on the wrong directory. it works by searching for all …

Member Avatar for smithdp1
0
245
Member Avatar for alltech

Have a website that i am developing [url]http://www.wheels4rent.net[/url] and need help with PHP. when the dates etc and location is entered i have a deep link into another site and i have done this with PHP. This displays cars etc and prices. However i want to have a "book" button …

Member Avatar for alltech
0
508
Member Avatar for zevo

Hello everybody, i need help from you guys.. I want to split text line into 2-3 lines and put it on image using GD. I know how to write text on image with GD, but i don't know how to split text to get the last line.. Here is what …

Member Avatar for pritaeas
0
356
Member Avatar for LRNPHP

Hi There, I have 2 tables, one with dst codes and one with fees. I want to match the fees with the dst code. I've been trying a for loop but it's not working 100%. What is the best way of matching dst code with the corresponding fee? If TABLE …

Member Avatar for LRNPHP
0
163
Member Avatar for petrakid

I have a large text string which is queried from a database. It can be several thousand words long. As of right now, when the search is run, it pulls all of the text and then prints the first 150 characters: [code] echo '<span class="line3">'. strip_tags(truncateText($sermontext, 150)) .'</span>'; [/code] The …

Member Avatar for petrakid
0
145
Member Avatar for DarkBerzerk

i have table in the database for login system [CODE]CREATE TABLE users ( username varchar(30) primary key, password varchar(32), userid varchar(32), userlevel tinyint(1) unsigned not null, email varchar(50), timestamp int(11) unsigned not null ); [/CODE] already have cart for things that doesnt need shipping, but its with JavaScript, [url]http://lasthunter.freehostia.com/rated-online/conf_files/js/simpleCart.js[/url] but …

0
277
Member Avatar for elcubanoluis

I have never worked with mysql. I need to design a few pages for a website that allows certain people to log into the page and be able to update or change the info manually without having to use any html editing software are any programs. How is this done? …

Member Avatar for pritaeas
0
103
Member Avatar for sam230

i have a date column where dates are saved in varchar format like this 17-03-2011 :: 11:19:48 i want to find last date through query.. please help thanks

Member Avatar for pritaeas
0
184
Member Avatar for DarkBerzerk

i need simple shopping cart (without shipping fee and those things) but with/without cPanel and registration form with MySQL to save members data, any suggestions? :D

Member Avatar for DarkBerzerk
0
115
Member Avatar for cgull

Hello, I have a database where I insert records into, in Hebrew. One of the fields needs to have quotes in it. Then I need to use this field as the title attribute in an image tag. I got confused with all the different functions: mysql_real_escape_string, addslashes, stripslashes etc. Up …

0
84
Member Avatar for AbhishekBiswal

What I am upto: I am tryin' to develop a Blog CMS. There is a Database named blog in which there's a table named posts. The posts table has these fields: post_id, post_title, post_url, post_time, post_category, post_desc, post_username. Here, post_username is the username of the user who posted this post. …

Member Avatar for urtrivedi
0
197
Member Avatar for eduard77

I am analyzing a code and I receive the next error Warning: mysql_result() expects parameter 1 to be resource, boolean given in C:\wamp\www\AktiveKB\admin\includes\classes\class.auth.php on line 175 I am new in php and I don't know how to handle this error

Member Avatar for eduard77
0
93
Member Avatar for mwenyenia07

hi i want an idea/code that can call a controller method from a javascript function inside a view. am using codeIgniter 1.7.2. what i wanted to achieve is to load details of a client by entering his account number and press enter key to load the details. hope you will …

Member Avatar for urtrivedi
0
110
Member Avatar for turt2live

Hello, I am making an online gallery for a friend and have this (partially listed) folder structure. root/index.php root/inc/gallery.inc.php root/inc/setup.inc.php root/inc/includes.inc.php Gallery.inc.php has various functions in it (Get image, album, etc), setup.inc.php has config variables (for my friend's ease of access, contains SQL stuff and date formats), here is what …

Member Avatar for turt2live
0
304
Member Avatar for Aksel

Hi :) I have a page where users can enter youtube url's within bbtags such as: [Youtube ]youtube-url-here[ /youtube] However...I'm having some problems when the url contains the &amp sign..as this seems to cut off the string at this point. I've read somewhere that one have to use urlencode these …

Member Avatar for vibhaJ
0
103
Member Avatar for jabeen111

how can i appear confirm message box when row are delete (are you sure to delete this record) in php?? [CODE]echo '<td><a href="teachers_delete.php?Course_Id=' . $row['Course_Id'] .'" ><img src="images/delete.gif" /></a></td>';[/CODE]

Member Avatar for vibhaJ
0
140
Member Avatar for binu_ds

Hi all, I have three CSV file. First one include toname,toid and status.Second one has username and password and the third one include from,subject,content,reply to,cc etc.I want to read csv files and to send bulk amount email address. Also want to increase mail sending time. How will read csv file …

Member Avatar for karthik_ppts
1
95
Member Avatar for davidXY

Hey, I am very new to php. I have a PHP script (modified from [url]http://woogley.net/misc/Highscore/)that[/url] I call from a my Java code to access a database in order to read/write records. The SELECT part of it was perfect. However, i can't write to the database when I try to UPDATE. …

Member Avatar for davidXY
0
146
Member Avatar for canterorist

hi everyone! I would like ask what is the use of this file in wordpress? myfile.mo <--(sample file that I'm talking about). every time i use plugin in wordpress and inspect their files. i always see this file(myfile.mo). i want to know why they include this file into their plugins. …

0
49
Member Avatar for bulbul14
0
41
Member Avatar for bulbul14

how to secure WordPress from hacking?i want know details information, can you help me friends?

0
39

The End.