- Strength to Increase Rep
- +5
- Strength to Decrease Rep
- -1
- Upvotes Received
- 5
- Posts with Upvotes
- 2
- Upvoting Members
- 5
- Downvotes Received
- 3
- Posts with Downvotes
- 2
- Downvoting Members
- 2
<?php $ip = '59.32.28.65'; $url = "http://www.ipmango.com/api.php?ip=".$ip; $xml = simplexml_load_file($url); echo "IP address : {$xml->ipaddress} <br />"; echo "City : {$xml->city} <br />"; echo "Region : {$xml->region} <br />"; echo "Country Name : {$xml->countryname} <br />"; echo "Latitude : {$xml->latitude} <br />"; echo "Longitude : {$xml->longitude} <br />"; ?> |
|
Hello please help me troubleshooting this. i got this error in my login.. pleaaaaase. below is the **error** that prompts me when i login: PHP Warning: Cannot modify header information - headers already sent by (output started at D:\HostingSpaces\spindev\spindev.spinweb.ph\wwwroot\YPS\login\login.php:9) in D:\HostingSpaces\spindev\spindev.spinweb.ph\wwwroot\YPS\login\login.php on line 71 PHP Warning: Cannot modify header information … |
|
Hi all, i don't know how to solve this problem...i want store all the data into database. help pls~ thanks~ <!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" xml:lang="en" lang="en"> <head> <link href="/style.css" rel="stylesheet" type="text/css" /> <title>Insert New Institution</title> <script type="text/javascript"> function addRowToTable() { var tbl = document.getElementById('tblAddress'); … |
|
Hi! Sorry for my bad english. I have this code: [CODE] <html> <style type="text/css"> #traka{ border:1px solid black; position:relative; width:300px; } #boja{ position:absolute; top:0; left:0; height:100%; background-color:yellow; } #tekst{ text-align:center; position:relative; } </style> <script type="text/javascript"> wid=0; function kreni(){ setTimeout("izvod()",700); } function izvod(){ wid+=10; pos=(wid*100/300); pos=Math.round(pos); pos+="%"; document.getElementById('tekst').innerHTML=pos; document.getElementById('boja').style.width=wid; if(pos!="100%"){ kreni(); … |
|
I have read through the FAQ sticky regarding this topic (and have also searched/read here further on this topic) but I am still receiving the following error: [B][I]Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/a4542527/public_html/index.php on line 8[/I][/B] The scripting for this is basic at … |
|
hey i have two radio buttons: 'Accept' and 'Don't Accept' when the form submit button is pressed and the 'Accept' radio is not checked i want the page to reload without sending the info accross... [CODE]<form id="form1" name="form1" method="post" action="PaymentFormProcess.php"> <table width="80%" align="center"> <tr> <td width="43%"><strong>Do you accept these terms … |
|
Hi, I am using Tiny MCE as a Textbox to get user generated input which can be bold, italic, underlined, lists and different alignments. When the user submits the form data the information is then saved to a variable like below: [CODE] $jobDesc = mysqli_real_escape_string ($dbc, $trimmed['txtJobProfile']); [/CODE] The I … |
|
please help! we are going to develop a web-based learning management system..what programming languages should i use? including php. |
|
Hi All, I need to create a dropdown box for a user to select a row from a table and populate the fields in a form for the user to update that row. What will be the best way to do this? Thank you in advance Max |
|
The code is posted below, the problem is that i get a parse error at line 80 (last line) and i cannout see why from my point is correct. Thanks. <?php function select_($sql,$select_name,$selected_value,$initial_value,$val1,$val2,$post) { $result=mysql_query($sql); ?> <select name="<? print $select_name;?>"> <? if(!empty($post)) { while($row=mysql_fetch_array($result)) { print'<option '; if($row[$val1]==$post) { print'selected="selected"'; … |
|
Hi, I'm doing a site for a client and they want a blog and an articles area. What i imagined doing was designing the homepage in html/css/jquery etc...and then install WordPress through cPanel for the blog and the article area. I have a choice i need some help with, do … |
|
Currently I'm working on a microblog just to get familiar with PHP MySQL. I have a pretty big problem though. Here's the php code: [code] Â Â function get_all_users(){ Â Â Â Â $query = "SELECT * FROM ".$this->prefix."users"; Â Â Â Â if ($stmt = $this->prepare($query)){ Â Â Â Â Â Â $stmt->execute(); … |
|
Just wondering but is there a way to include the meta tags from one page to another? The reason why i ask this is that i built a website using PHP Includes and want to include the meta tags so when i load index.php?id=About , it will load the meta … |
|
Helo guys....I am very happy to intract with you all. can any one suggest me how to upload a image...i trie so many web site..here is my code.. uploadimage.php <?php define ("MAX_SIZE","10000"); define ("WIDTH","150"); define ("HEIGHT","100"); function make_thumb($img_name,$filename,$new_w,$new_h) { $ext=getExtension($img_name); if(!strcmp("jpg",$ext) || !strcmp("jpeg",$ext)) $src_img=imagecreatefromjpeg($img_name); if(!strcmp("png",$ext)) $src_img=imagecreatefrompng($img_name); $old_x=imageSX($src_img); $old_y=imageSY($src_img); $ratio1=$old_x/$new_w; $ratio2=$old_y/$new_h; … |
|
HERE IS MY CODE. I NEED TO OPEN EACH DIRECTORY AND MAKE THE LINKS FOR EACH SUBDIRECTORY. THE PROBLEM IN THIS CODE IS: EACH DIRECTORY HAS THE SAME FILE AS IN THE PREVIOUS ONE.. LIKE FOR EXAMPLE, WEBSITE OUTPUTS: DIRECTORY1 FILE1 ---- DIRECTORY2 FILE1 FILE2 ---- DIRECTORY3 FILE1 FILE2 FILE3 … |
|
Hi. I want to create a search form using the drop down list and checkbox. First, the users have to select from drop down list whether they want to search by date or id. After that, for example, a new pair of drop down list will display for the users … |
|
Hi Daniweb, I have a question for you guys. I've been reading up on PHP security and want to get it down pat before embarking on some projects I wish to do. The question right now is about how to create a table with PHP that will enable SHA1 hashing … |
|
I'm receiving the error [code=php]Unknown column 'members.committee' in 'on clause'[/code] from the following code. [code=php]"SELECT members.firstname, members.surname, members.photo, YEAR(members.datejoined) AS yearjoined, members.profile, members.committee, category.cat_type, committee.`position`, articles.art_ID, articles.title FROM members, category LEFT JOIN committee ON members.committee = committee.ctte_ID LEFT JOIN articles ON members.mem_ID = articles.author WHERE %s = mem_ID AND members.category … |
|
Friends, I’ve list of categories with url look like this ‘index.php?cat_id=1,2,3’ I want to rewrite my url as ‘demo-page.html’ However I want to be use here my page title in url page. How its possible? Waiting for reply... |
|
Hi can anybody help me wth whats the diff b/w php and a cake PHP ? Plsssssssssssss |
|
Hi all, Can somebody help me out in this as this is very urgent for me.. I want to append 2 $_get variables in a single update query so that i can assign some items to the latest inserted item Following is the code I am using.. $insert = "INSERT … |
|
For Mobile Applications carbide C++ is better or j2me is better? |
|
Code to Execute an SQL Script in JDBC. The SQL Script should have comments starting with - or -- only on new lines and each command should end with a ; . Reading a sql file and putting all of it in a string variable and feeding to the execute … |
|
I want to make sniffer in C++.So can anybody help me out by providing codes?? |
|
This is the code to print the Permutations of a String. [CODE]#include<stdio.h> #include<conio.h> #include<string.h> void permute(char *str,int l,int pos,int r); void swap(char &a,char &b); void print_string(char *str,int r); int main() { char str[10]=""; int l,r; printf("Enter The String : "); gets(str); l=strlen(str); printf("Enter The Number Of Places To permute on … |
|
[code=c] #include<stdio.h> #include<conio.h> #include<string.h> void permute(char *str,int l,int pos,int r); void swap(char &a,char &b); void print_string(char *str,int r); int main() { char str[10]=""; int l,r; printf("Enter The String : "); gets(str); l=strlen(str); printf("Enter The Number Of Places To permute on : "); scanf("%d",&r); printf("The Following Permuations are possible : \n\n"); … |
|
Can anybody tell me the price of the surface computer of microsoft?? |
|
|
|
Its easier to make games for websites in javascript or in flash?? |