39,323 Topics

Member Avatar for
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
227
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
339
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
151
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
Member Avatar for Supergrass

Hi there, I've this error "Parse error: syntax error, unexpected T_STRING in /home/content/06/8070006/html/wp-content/themes/veryplaintxt/functions.php on line 512". Could anyone please help me take a look and tell me what's wrong with my code? Thanks heaps in advance! :) Sincerely, Gina [CODE]<?php // Produces links for every page just below the header …

Member Avatar for Supergrass
0
2K
Member Avatar for RazorRamon

I want the query to retrieve topics but if the topic repeats I only want one result to show up, no duplicates. I also want it to return username and timestamp. Here is what i have now but I get an error. [mysql_fetch_array() expects parameter 1 to be resource]. Anybody …

Member Avatar for karthik_ppts
0
195
Member Avatar for sam230

Currently i m working on Google map V3.. i got a task to show multiple markers n n their corresponding info windows at the same time.. i m able to show the multiple markers but unable to show multiple info windows at the same time.. plz help me.. is this …

Member Avatar for karthik_ppts
0
133
Member Avatar for dhruv_arora

I wrote this code and when I run the page I get the parse error :- [CODE]Parse error: syntax error, unexpected '[' in C:\xampp\htdocs\view.php on line 30[/CODE] my code is :- i checked my whole code, i was unable to find the error [CODE]<?php $page_title="View Users"; include("header.html"); include("nav.html"); ?> <div …

Member Avatar for karthik_ppts
0
87
Member Avatar for tape enterprise

I am having problems with PHP I had to reinstall apache and php and MySQL and this code worked great but now that I reinstalled its giving me this error Notice: Undefined variable: out in G:\file server\SERVER\server\admin\index.php on line 51 [CODE] $title = $_POST['title']; $post = addslashes($_POST['text']); function nl2p($str) { …

Member Avatar for MooGeek
0
93

The End.