39,326 Topics

Member Avatar for
Member Avatar for muralibobby2015

hello, i have to find google co=ordinates from given address. so i am displaying google map in popup box but i don't know why google map not loading in popup. but it is working fine in new page.when i am trying to display in popup then only i am getting …

Member Avatar for diafol
0
225
Member Avatar for MDanz

i'm trying to get a clean url for my about page. i want to change [url]http://www.example.com/about.php[/url] to [url]http://www.example.com/about[/url] i put my htaccess file as this [code]RewriteEngine On RewriteBase / RewriteRule ^(.+)/([0-9]+)/?$ about.php[/code] it's not working though, i get the 404 not found error.

Member Avatar for MooGeek
0
75
Member Avatar for Misheki

I have a PHP shopping cart system and it's using MS SQL for the backend. Currently it's using the mssql driver. Now I want to move it to Windows Azure and I'm required to change the driver to sqlsrv 2 in order for it to work there. Can anybody tell …

Member Avatar for Misheki
0
468
Member Avatar for Kostas Theof

Hello to everyone and wish for a Happy New Year. I have an html code from which I want to execute various php files (with various parameters). Say the html file is called htmlcode.html. Say one php file is called phpfile1.php and a second php file called phpfile2.php Everything works …

Member Avatar for yahya al salman
0
3K
Member Avatar for Jhon E

Hello everyone i'm getting the following error message. [COLOR="Red"]Fatal error: Call to a member function prepare() on a non-object in C:\xampplite\htdocs\Prepared_Statements.php on line 20[/COLOR] My code so far [B]connection.php[/B] [CODE]$db_server = "localhost"; $db_user = "root"; $db_password = ""; $db = "test"; $connection = mysql_connect($db_server,$db_user,$db_password,$db); if(!$connection){ die("Database Connection Failed".mysql_error()); } $select_database …

Member Avatar for Stefano Mtangoo
0
143
Member Avatar for Espenij

Hello I get this message : Notice: Undefined index: id in *****7index.php on line 26 when we go from php4 to php5. My code on line 25-35 is : [code] <?php if($_GET["id"] == "web"){ echo "<link rel='stylesheet' href='css/style.css' media='screen'/>"; echo "<link rel='stylesheet' href='css/style.css' media='handheld, only screen and (max-device-width:480px)' />"; echo …

Member Avatar for Espenij
0
8K
Member Avatar for naru vaishnaw

please correct this problem [CODE] id -- int user_id -- int friend_id -- int [/CODE] [CODE] <? session_start(); //starts session mysql_connect("localhost", "root", ""); mysql_select_db("admin"); if ($user_id= $_SESSION['logged']){ //check if user is logged in if($_GET['user_id']){ //gets userid $friend_id=$_GET['user_id']; //friend $by = $user_id; //me $query = "INSERT INTO friend_req ( 'friend_id , …

Member Avatar for diafol
0
148
Member Avatar for Danny159

Hey, I have some php code that I cant seem to get working... Here is the code... This is the javascript that changed the ?show in the url to what the user selects.. [CODE]<script type="text/javascript"> function show(){ var e = document.getElementById("select"); var strUser = e.options[e.selectedIndex].value; window.location = "?show="+strUser; } </script> …

Member Avatar for twiss
0
136
Member Avatar for gambit_1607

in my admin i'm at feed item content type and i've set the comment settings to read/write, but when i load a specific feed item on my page such as mydomain.com/node/137941 there is no comments. i did some research and i came across some code that u can use to …

0
87
Member Avatar for krabz01
Member Avatar for davecoventry

Hi, I have an array (2=>50, 231=>63, 235=>121) How do I change the second item? Thanks, Dave

Member Avatar for davecoventry
0
65
Member Avatar for garyjuano

how to calculate the exceeds time. $due_date=strtotime("July 5,2011,8:00 am"); $today=strtotime("July 5,2011,9:00 am"); example i borrow a book so the due date is = ($due_date), then i return the book at ($today) how can i caculate the munites exceed from $due_date to $today...the munites exceed is 60 munites. how can i …

Member Avatar for karthik_ppts
0
60
Member Avatar for jacob21

Hi,I am uploading CSV file.its working fine. but an extra record(blank record) added with all csv records Need help for above [CODE]<?php session_start(); if (!isset($_SESSION['username'])) { header('Location: login.php'); } ?> <!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"> <head> <style type="text/css"> table, th { border:1px solid #666666; font-family:Verdana; …

Member Avatar for karthik_ppts
0
425
Member Avatar for danishbacker

Hi guys another newbie here want to know and learn about NGINX :) how can i use that in my next project ? Any help would be greatly appreciated Thanks in advance.

Member Avatar for pritaeas
0
136
Member Avatar for tigrum

Hello everyone I haeve tried to understand the capabilities of python in web development. Have gone throuhg forums and online tutorials. Nevertheless I am not able to find any topic which can give me some insite along with basic examples of how to send http get data from an xp …

Member Avatar for serinformaticos
0
228
Member Avatar for iranmovie

I was following a tutorial and i copied word by word i don't know why i get the error. Error >> Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/*****/public_html/download/url/search.php on line 36 [CODE]<?php $results = $_GET['results']; $terms = explode(" ", $results); $query = "SELECT * …

Member Avatar for dhruv_arora
0
297
Member Avatar for klemme

Hi, In have created a smallm cms, and I would like to offer customers to download it, instead of only getting access to it, if I design a website for them, AND "attach" the backend to the site. How can I create a download function, so that the whole "system"/CMS, …

Member Avatar for diafol
0
95
Member Avatar for wilko1995

Hi all, [CODE]<?php $con = mysql_connect('localhost','root',''); if (!$con) { die("Could not connect: " . mysql_error()); } mysql_select_db('users',$con); $sql="SELECT username FROM users_info"; $user = $_POST[username] if($sql != $user) { die("Error: Username is not in our database! Make sure you check the spelling."); } else { redirect('/users/' ->$user); } mysql_close($con); ?>[/CODE] The …

Member Avatar for karthik_ppts
0
107
Member Avatar for krabz01
Member Avatar for vibhaJ
0
341
Member Avatar for jrotunda85

I am trying to figure out the best way to figure out "age" of a particular item. I currently have fields in a mySQL databases that are stored as datetime formats and I need to display (in PHP) the relative age of those dates in terms of years, months, and …

Member Avatar for karthik_ppts
0
152
Member Avatar for jrotunda85

So I am in the process of putting some finishing touches on a new section of my website which allows users to keep track of their cigars in an online inventory (or humidor) type system. I'm kind of stuck; however, on what the best way to capture and process data …

Member Avatar for vibhaJ
0
155
Member Avatar for Xufyan

Hello I have developed a form , i want the user to only input number if a user input any alphabet or symbol ad submit the form the error must appear on the same page, i have done this with form action but i want the error to be shown …

Member Avatar for Stefano Mtangoo
0
359
Member Avatar for extemer

hello guys i am making student form for my database and i want to add a image tag so that person can brows the student photo from the computer...how can i do this please help me out..

Member Avatar for krabz01
0
114
Member Avatar for IIM

Anyone has an idea of how to execute the complete php code ....means i want to make online php editor...that will take code as input from user and correspondingly display the output.... I am not sure how to work with it... Till now i thought of taking input from user …

Member Avatar for IIM
0
237
Member Avatar for ashiiiish
Member Avatar for chrishea
0
254
Member Avatar for Xufyan

this is the simple php for loop, [CODE]<?php for ($a=1; $a<=10; $a++) echo $a . ", "; ?>[/CODE] the output of this program is 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, i want to remove ',' from the last value i want the output should be, 1, …

Member Avatar for twiss
0
118
Member Avatar for naru vaishnaw

how to auto resize right iframe when i click my php page link .can it is possible to set auto resize my right iframe. [CODE] <table width="162" height="386" border="1" class="indextable"> <tr> <td><iframe src="mmmmaaaammmmaaa.php" width="180" height="445" frameborder="0" scrolling="no" hspace="0"></iframe> </td> </tr> </table> <table width="168" height="154" border="1" class="chat"> <tr> <td>&nbsp;</td> </tr> </table> …

Member Avatar for twiss
0
68
Member Avatar for Xufyan

please look at this code, [CODE]for ($count=$num1; $count<=$num2; $count++){ for ($count1=1; $count1<=2; $count++){ echo $count1; } } [/CODE] why this is never ending loop ? when i run this code my browser hanged, why it is happening ??

Member Avatar for Xufyan
0
94
Member Avatar for jacob21

Getting below error: Warning: fopen(detail.csv) [function.fopen]: failed to open stream: No such file or directory in C:\xampp\htdocs\hindi\import_file.php on line 28 Warning: fgetcsv() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\hindi\import_file.php on line 29 Column count doesn't match value count at row 1 Need suggestions [CODE]<!DOCTYPE html PUBLIC "-//W3C//DTD …

Member Avatar for karthik_ppts
0
316
Member Avatar for ramukumar

Hi all, I want to use php variable for example $Lang[0] in the href as <a href=$Lang[0] target=_blank> where $Lang[0]="http://www.dailyhungama.com" thanks in advance

Member Avatar for aru211285
0
8K

The End.