Posts
 
Reputation
Joined
Last Seen
Ranked #3K
Strength to Increase Rep
+5
Strength to Decrease Rep
-1
61% Quality Score
Upvotes Received
5
Posts with Upvotes
2
Upvoting Members
5
Downvotes Received
3
Posts with Downvotes
2
Downvoting Members
2
1 Commented Post
0 Endorsements
Ranked #2K
~28.2K People Reached
Favorite Tags
Member Avatar for theausum

<?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 />"; ?>

Member Avatar for Pramod_7
0
3K
Member Avatar for dudegio

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 …

Member Avatar for nicheteam
0
14K
Member Avatar for JoeyWong

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'); …

Member Avatar for JoeyWong
0
1K
Member Avatar for ivan3510

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(); …

Member Avatar for ivan3510
0
180
Member Avatar for mattyd

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 …

Member Avatar for richieking
0
139
Member Avatar for gchurch

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 …

Member Avatar for gchurch
0
4K
Member Avatar for SunnySideUp

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 …

Member Avatar for SunnySideUp
0
196
Member Avatar for suhnako

please help! we are going to develop a web-based learning management system..what programming languages should i use? including php.

Member Avatar for theausum
0
90
Member Avatar for trilithon

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

Member Avatar for trilithon
0
125
Member Avatar for vartol

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"'; …

Member Avatar for diafol
0
70
Member Avatar for benhowdle89

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 …

Member Avatar for sops21
0
179
Member Avatar for ultimatebuster

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(); …

Member Avatar for ultimatebuster
0
159
Member Avatar for lsmith93

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 …

Member Avatar for Borzoi
0
153
Member Avatar for sundeep_g

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; …

Member Avatar for sudeepjd
0
217
Member Avatar for yuryla

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 …

Member Avatar for theausum
0
74
Member Avatar for star_lavender

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 …

Member Avatar for theausum
0
184
Member Avatar for floatingDivs

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 …

Member Avatar for theausum
0
100
Member Avatar for xabi

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 …

Member Avatar for theausum
0
107
Member Avatar for ahmedeqbal

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...

Member Avatar for theausum
0
124
Member Avatar for mithesh

Hi can anybody help me wth whats the diff b/w php and a cake PHP ? Plsssssssssssss

Member Avatar for theausum
0
91
Member Avatar for nsam

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 …

Member Avatar for theausum
0
99
Member Avatar for theausum
Member Avatar for theausum
0
115
Member Avatar for theausum

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 …

Member Avatar for fatso83
2
3K
Member Avatar for theausum

I want to make sniffer in C++.So can anybody help me out by providing codes??

Member Avatar for suvirj
0
146
Member Avatar for theausum

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 …

Member Avatar for Salem
0
133
Member Avatar for theausum

[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"); …

-1
40
Member Avatar for theausum
Member Avatar for Merlin33069
0
35
Member Avatar for theausum
Member Avatar for theausum
Member Avatar for theausum
Member Avatar for peter_budo
0
71