39,402 Topics

Member Avatar for
Member Avatar for renjithdas

Hi I tried to resize image with file name ._DYK_RTH134_1000.jpg. I got the following errors Warning: imagecreatefromjpeg() [function.imagecreatefromjpeg]: gd-jpeg: JPEG library reports unrecoverable error. If I am using image with name like DYK_RTH134_1000.jpg then its working fine. Some of my filename have special characters. like . ( ' etc. Could …

Member Avatar for renjithdas
0
178
Member Avatar for gilgil2

Hi am trying to delete a row from a mysql database and can't work out why it is not working. Here is the code $link = mysql_connect('', '', '') or die('Could not connect: ' . mysql_error()); mysql_select_db('') or die(mysql_error()); mysql_query("DELETE FROM gigs WHERE gigname='".$name."'"); mysql_close($link); The $link is working, and …

Member Avatar for phorce
0
498
Member Avatar for joseph.akinadewo

I need some help on how to calculate amount. For example, my subscriptin is $100 per 100 credit, to calculate the amount of this or more, can someone provide me this scripts please.

Member Avatar for joseph.akinadewo
-1
84
Member Avatar for shehnaz1991

hiii i hv tried updating a database table frm the form bt it is not getting updated can u suggest me some php code for updating the database values i hv used the following code <?php $host="localhost"; // Host name $username="root"; // Mysql username $password="root"; // Mysql password $db_name="project"; // …

Member Avatar for Squidge
0
113
Member Avatar for heur1konrc

I have a very small database in MySQL. There are 20 columns, all text. My PHP script loads all this data into an array and assigns each value to a variable. One of the varibles is $ID_num which contains a unique identifier that is also tied to an image in …

Member Avatar for phorce
0
155
Member Avatar for levsha

I know it's a dumb question, but I can't figure it out. What's wrong with this code? - [CODE]$progress_report = curdate();[/CODE] It doesn't work. Thank you!

Member Avatar for anushathecoder
0
681
Member Avatar for anjaliv

can any one help me in loading image along with its name in texbox loads the text by selecting a option in dependent dropdown using ajax..

Member Avatar for divyakrishnan
0
113
Member Avatar for phpHelp

Hi, I am here with a strange issue...my facebook app becomes system/browser dependent...some people can access it some can not...my app is having simple html code...why it's happening, can any body help me... Thank you

Member Avatar for cuonic
0
136
Member Avatar for kaleem_ullah

I have devloped a contact form with PHP code. It work perfectly. when you submit the form all the information e-mail to you perfectly. After submitting the contact form it will take you back to you same contact page. Know want to make some changes in it. When some one …

Member Avatar for divyakrishnan
0
302
Member Avatar for polinolin

hi, buddy. i have problem to generate 1024bits key RSA algorithm on PHP. i always get error when compile my program on mozilla. can you help mo to find the solution to generate it or generate prime 1024 bit? thanks!

Member Avatar for pritaeas
0
41
Member Avatar for louisdesouza

I created a javascript registration form and when the user submits the form, a 'sendemail.php' file will send the data in the form to my gmail email account. The code from 'sendemail.php' is shown below: Code: $mail->IsSMTP(); // Fixed. $mail->Host = 'smtp.gmail.com'; // Or Hotmail. $mail->Port = '587'; // Fixed. …

Member Avatar for pritaeas
0
628
Member Avatar for justsawyer

So I want to make a web based text game. But know nothing about coding :D I'm pretty sure php would be the best to do it in but not sure, either way were should I start?

Member Avatar for coreyavis
0
137
Member Avatar for Djmann1013

I need help with this code: <?php $a = json_decode(file_get_contents('http://www.ace-spades.com/serverlist.json'),true); $n = count($a); for($i=0; $i < $n; $i++) { echo 'identifier: ' . $a[$i]['identifier'] .' count: '. $a[$i]['count'] . "\n"; } ?> I need it so that it doesn't display this: http://www.aosserverhome.hostoi.com/servers/servertest1.php I want to use that data and only …

Member Avatar for cereal
0
95
Member Avatar for Djmann1013

Hi. I am trying to search for text on a page. This is the page i am searching: http://www.ace-spades.com/serverlist.json. This is the code I have: <?php $link = "http://www.ace-spades.com/serverlist.json"; $linkcontents = file_get_contents($link); $needle = "ServerIP"; $numofplayers = //I need help here if (strpos($linkcontents, $needle) == false) { echo "<center>0/12 Players …

Member Avatar for cereal
0
344
Member Avatar for niths

hi all, i had a image upload option where i can upload images.Now how do i select multiple files and upload them... [CODE]<form name="upload" enctype="multipart/form-data" action="fileupload.php" method="post"> <table> <tr> <td> Upload Images: <input type="file" name="imageupload"> </td> <td><input type="submit" name="submit" value="Submit"></td> </tr> </table> </form>[/CODE] when i click browse button i can …

Member Avatar for sheikhali449
0
519
Member Avatar for ReDuX

This is a very simple statistics script that provides for services on/offline, memory info, server load averages and uptime and lastly drive info. Its easily customised and i have usef <font> alot where you could have set come css and have it all done easily and look a bit more …

Member Avatar for ReDuX
0
172
Member Avatar for phpHelp

I installed Drupal 6 in my web root folder...now for my facebook app (in PHP), I have kept that App folder (non-drupal-folder) under the root....but when I try to access that app either it shows index page for drupal site or sometimes error "Page not found"...I tried to edit .htaccess …

Member Avatar for diafol
0
177
Member Avatar for eburlea

Hi all. Please help. How is it possible to transfer a variable from PHP to JavaScript. I have the following code. <?php $id = 5; ?> <script>window.location.href = 'view_topic.php?id=**VAR**'</script> Instead of VAR should come the value of $id from PHP. Thanks in advance.

Member Avatar for eburlea
0
148
Member Avatar for davy_yg

I wonder why whether I fill in the recaptcha or left it empty, I still receive the e-mail message. We've received your contact information <div id="form"> <form action="kontak_action.php" method="get"> <table border="0"> <tr align="left"> <th>Nama&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:</th> <th><input type="text" name="nama" size="25"/></th> </tr> <tr align="left"> <th>Email&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:</th> <th><input type="text" name="email" size="25" /></th> </tr> <tr align="left"> …

Member Avatar for davy_yg
0
138
Member Avatar for keval007

Hi, Can any one provide me small code or way how can I read the below XML file in PHP. <Countries> <Country> <Page1_col1>Country1</Page1_col1> <Page1_col2>89,921</Page1_col2> <Page1_col2>61</Page1_col2> <Country_sub_details> <Page2_col1>A1</Page2_col1> <Page2_col2>1,187</Page2_col2> <Page2_col3>45</Page2_col3> <Country_sub_sub_details> <Page3_col1>AA1</Page3_col1> <Page3_col2>375</Page3_col2> <Page3_col3>45</Page3_col3> </Country_sub_sub_details> </Country_sub_details> </Country> </Countries> I am not aware about the XML libraries in PHP.

Member Avatar for keval007
0
199
Member Avatar for rayidi

I have a Query string > { "id": "105201322211272730088", "name": "Rayidi Radha Krishna", "given_name": "Rayidi", "family_name": "Radha Krishna", "link": "https://plus.google.com/105201322211272730088", "picture": "https://lh3.googleusercontent.com/-UTEdowBnUUE/AAAAAAAAAAI/AAAAAAAABd0/FrCv9VX1Pp4/photo.jpg", "gender": "male", "birthday": "0000-09-23", "locale": "en" } I want to convert this Query string to an array. thanks in advance.

Member Avatar for blocblue
0
358
Member Avatar for veledrom

Hi, I'm having problem with reading xml file because there are invalid chars like & sign. How can I evaluate this problem and read the file with simple_xml or DOM? **php** $xmlDoc=simplexml_load_file('items.xml'); $doc = new DomDocument; $doc->load('items.xml'); //Both of these don't work **xml** <?xml version="1.0" encoding="ISO-8859-1"?> <store id="AMZ-0101-STR"> <items> <item> …

Member Avatar for pritaeas
0
252
Member Avatar for McLaren

We are developing poker application in PHP, where we need to calculate poker hand equities. Something like there: http://www.codingthewheel.com/archives/multiway-ranged-isometric-equity-calculation-in-poker-1 Question - isn't there a more simple way without using those enumerate or monte carlo methods? If there is not, then is there some PHP script for that? In the link …

Member Avatar for pritaeas
0
100
Member Avatar for phpDave

Hi, I trying to user 3 AND operators in one Select Statement. It's not working. Is this even posable. If not, any suggestions? Here is the code: $query_Recordset1 = "SELECT * FROM user JOIN message WHERE message.user2 = '$user2' AND message.user_id = '$user2' AND email = '$email'"; Thanks!

Member Avatar for pritaeas
0
88
Member Avatar for kb5220

###Hello Developer,### I started with a small projeckt and now i come to a small problem. Where i need to use Ajax/Jquery. And since i dont have the most experience with Jquery / Ajax, Would I like to ask for help. ###The problem:### I have some search criteria as **Category, …

Member Avatar for lambing
0
109
Member Avatar for newbie1234

jebkharcha.net84.net/smart/index.php please tell security flaw in this site

Member Avatar for newbie1234
0
105
Member Avatar for muralibobby2015

hello, our site have 1000 users.here i have to give unique numbers from '000' to '999' to each user. now i am adding from starting '000'. how can i give unique numbers to users when adding and updating users? Thanks

Member Avatar for diafol
0
107
Member Avatar for JameB

I'm making a website where users select one of the four options - A, B, C, or D (for simplicity) and press a button to be redirected to a different page (page 2) that uses the selection to display one of the four images at the top. The selection is …

Member Avatar for JameB
0
276
Member Avatar for aianne

Hello everyone! I am a student and I am currently working for online voting system for my school. I am having a hard time how to prevent users/students from multiple votes. Could please give me some example that users can only vote once using their ID number? I have a …

Member Avatar for titosd
0
566
Member Avatar for latooplat

I have a special problem over in terms of sorting out those words like a keyboard type. For example: the user inputs these words into the textarea HOUSE DOLL KITE NICE Then, the result should be DOLL HOUSE KITE NICE this is sorted out according to the qwerty order. <?php …

Member Avatar for pritaeas
0
1K
Member Avatar for ak47carbon

my website page url is mysite/use.php?v=123(it is dummy entry basically it come from another page) i want to convert my url into mysite.use-123.html. i got a code for this purpose from http://roshanbh.com.np/2008/03/url-rewriting-examples-htaccess.html but problem is that when i paste below code in .htaccess it is not working Options +FollowSymlinks RewriteEngine …

Member Avatar for ak47carbon
0
201
Member Avatar for selfmastery

I am running easyphp12 running mysql as a local db server for a some software. This software can also connect to a remote db where it doesnt give this error while performing the exact mysql query, so I only get the error when using the local db. Ive tried increasing …

Member Avatar for smantscheff
0
484
Member Avatar for taskeef

**downloading file form specifice site using php+curl** Hi ervery one this is my question is here i hope you will help me I am trying to download file form this site http://www.emobilez.com/apps/app-samsung-i8520-beam-381-tawkon-2.0.1.9-115963.htm and my link is that file i want to download ` http://www.emobilez.com/apps/download.php?image_id=115963` using this tutorial http://www.daniweb.com/web-development/php/threads/78356/creating-cookies-using-curl-php but no …

Member Avatar for almostbob
0
283
Member Avatar for gabrielcastillo

I'm trying to write a script to restart my wamp server with the click of a button. I am trying to use `exec("c:\\\\wamp\wampmanager.exe -restart");` to run the command. Seems to be not working. I have used system(), and passthru(); functions to get the results I am looking for but got …

Member Avatar for Kieran Y5
0
189
Member Avatar for ganesh641
Member Avatar for madhu123456789

I have created admin panel with admin having rights to create users now i want to give user privileges through admin to view selected columns in mysql table.How can i do that code in php?

Member Avatar for pritaeas
0
94
Member Avatar for ak47carbon

i have 'topic' and 'comment' fields in table of database ,when some one give comment on topic no 1 ,it save in dabase with topic number and comment, i want show topic number with higest comment. tell me sql query to show result

Member Avatar for pritaeas
0
86
Member Avatar for johnbo100

Hi all, My head is about to explode and I was wondering if anyone has ever found a solution to my problem. Using MYSQL and PHP I need to gather those people under 5 years of age and break up the ages into 6 month periods whilst keeping a count …

Member Avatar for pritaeas
0
175
Member Avatar for newbie26

hey..how can i add a time picker in php/html??? where in i can edit or adjust the hour and minutes?? and when i already adjust the time, the succeeding text boxes will automatic increment the minutes by one. i need this urgent for my project. thanks

Member Avatar for newbie26
0
232
Member Avatar for veledrom

Hi, Based on what learned from my readings on web and forums, I'll go for DOM with DOMDocument. "SAX is better for memory efficiency but a bit complex and chalenging." "DOM is uses loads whole xml into memory but easier and widely prefered and used." The question is, based on …

Member Avatar for veledrom
0
95
Member Avatar for Djmann1013

Hi. I am having trouble with this: <?php $host="localhost"; // Host name $username="username"; // Mysql username $password="password"; // Mysql password $db_name="database"; // Database name $tbl_name="table"; // Table name // Connect to server and select database. mysql_connect("$host", "$username", "$password")or die("cannot connect"); // Line with the error (Line 8) mysql_select_db("$db_name")or die("Error. MySQL …

Member Avatar for pritaeas
0
362
Member Avatar for smoothe19

I am using PHP to output an HTML table but when it does the pictures refuses to display. The php array $members['smallimg'] linkts to the .jpg file for example [url]http://www.powerme.edu/me/images/faculty/70_70/gkumar_2012.jpg[/url] // If there is at least 1 member listed as Faculty, then we are going to get the header and …

Member Avatar for blocblue
0
129
Member Avatar for waluigi

Hi, i'm working on page, where I need to add contact-form. I've used code from NiceAndSimpleForm, i mean [code=php] <?php $EmailFrom = "blablabla"; $EmailTo = "blablabla"; $Subject = "blablabla"; $Name = Trim(stripslashes($_POST['Name'])); $City = Trim(stripslashes($_POST['City'])); $Email = Trim(stripslashes($_POST['Email'])); $Message = Trim(stripslashes($_POST['Message'])); // prepare email body text $Body = ""; $Body …

Member Avatar for sayantanbagchi
0
6K
Member Avatar for dicksonkaranja

Hi, Am building a web application and i would like to integrate it with the internet payment gateways like paypal or moneybookers. Plz can anyone explain to me how i can go about it. Thanks

Member Avatar for newbie1234
0
166
Member Avatar for Djmann1013

Hi I am having trouble with this code: <? $host="mysql6.000webhost.com"; // Host name $username="removed"; // Mysql username $password="removed"; // Mysql password $db_name="removed"; // Database name $tbl_name="direct"; // Table name // Connect to server and select database. mysql_connect("$host", "$username", "$password")or die("cannot connect"); mysql_select_db("$db_name")or die("Error. MySQL Not Responding."); $SQL = "SELECT * …

Member Avatar for Djmann1013
0
196
Member Avatar for divyakrishnan

Hi, I have used the following code to load data from a php page using AJAX with JQuery.The script running well in all browsers except Firefox. The script I used is as follows. test_ajax.php <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title></head> <body> <script type="text/javascript" src="jquery-1.3.1.min.js"></script> <script type="text/javascript"> function …

Member Avatar for asaretitilope
0
245
Member Avatar for Valkyrian

Hi I know that multiple checkbox values has been discussed earlier but I have't got any wiser starring at them. This is how I want the database entries to look like: id ... drillID ...kommentar ==================== 1559...1...........NULL ------------------------------- 1559...2...........NULL ------------------------------- 1559...3...........NULL With the code below I can print out both …

Member Avatar for diafol
0
373
Member Avatar for Valkyrian

Hi! I have a dynamic checkbox group to chose drills for golf players. When finished there might be 100 or so drills to select from and every player might have 20 drills selected. The code below works fine but prints a long vertical list of ckeckboxes straight down. Is it …

Member Avatar for diafol
0
610
Member Avatar for dhruv_arora

Hey I created this application, where a user needs to enter a code (which he has bought from me, offline), after filling up the form, he is redirected to a form. The form checks the mysql database where a coloumn "barcode" has been where all the codes already inserted, if …

Member Avatar for phorce
0
108
Member Avatar for newbie1234

I saw many website user page is like www.xyz.com/hhh From these complete information can be retrive of "hhh" user. I want to know that how www.xyz.com?username=hhh can be convert to www.xyz/hhh Any help

Member Avatar for IIM
0
159

The End.