39,323 Topics
| |
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 … | |
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! | |
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.. | |
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 | |
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 … | |
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! | |
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. … | |
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? | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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. | |
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 :</th> <th><input type="text" name="nama" size="25"/></th> </tr> <tr align="left"> <th>Email :</th> <th><input type="text" name="email" size="25" /></th> </tr> <tr align="left"> … | |
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. | |
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. | |
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> … | |
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 … | |
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! | |
###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, … | |
jebkharcha.net84.net/smart/index.php please tell security flaw in this site | |
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 | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
**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 … | |
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 … |
The End.