345 Posted Topics

Member Avatar for paulthepainter

whats the value of $_GET['name']? ist the name of a person?, like "John"?, why are including names?, include and require function are used for including files, of course the $urle works coz its a path to the filename which is the january_10.html. what are you tring to do?

Member Avatar for rajarajan2017
0
811
Member Avatar for vizz
Member Avatar for bjeffries

[CODE]<script type="text/javascript"> function jfunc(x){ if(x=="shirt_yes"){ document.getElementById("jdiv").style.display="block"; }else{ document.getElementById("jdiv").style.display="none"; } } </script> Include Shirt: <br/> Yes:<input type="radio" name="shirt" onclick="jfunc(this.value)" value="shirt_yes"/> No:<input type="radio" name="shirt" onclick="jfunc(this.value)" value="shirt_no"/> <br/> <div id="jdiv" style="display:none;"> Size: <select name="size" id="size" onChange="MM_jumpMenu('parent',this,0)"> <option>medium</option> <option>large</option> <option>XL</option> <option>XXL</option> </select> <br/> <input type="submit" value="Submit order" /> <br /> </div> </form>[/CODE]

Member Avatar for bjeffries
0
112
Member Avatar for sugikrish

[CODE]$query = mysql_query("SELECT * FROM img WHERE id='$b'"); $row = mysql_fetch_array($query); echo "<img src='".$content = $row['image']."' />"; [/CODE]

Member Avatar for sugikrish
0
342
Member Avatar for RicardoE
Member Avatar for Manny7
Member Avatar for QWaz
Member Avatar for jhudson0219

[CODE]<HTML> <HEAD> <TITLE> MY FIRST PHP PAGE </TITLE> </HEAD> <BODY <?php echo "Hello World<br>Hello World Hello Indiana!"; ?> </BODY> </HTML>[/CODE]

Member Avatar for Xufyan
0
184
Member Avatar for sajidk25

edit your insert.php to this [CODE]<?php include('config.php'); if (isset($_POST['Signup'])) { $bday = $_POST['birthday_year']."-".$_POST['Birthday_month']."-".$_POST['Birthday_day']; $query="insert into date values('','".$bday."')"; $res=mysql_query($query)or die(mysql_error()); echo mysql_affected_rows(); } ?>[/CODE]

Member Avatar for cwarn23
0
93
Member Avatar for shubhamjain1
Member Avatar for Jothe
0
96
Member Avatar for Designer_101

she right a version control system is the answer... see this link [url]http://bazaar.canonical.com/en/[/url]

Member Avatar for digital-ether
0
133
Member Avatar for dalip_007

[CODE]$sql = mysql_query("SELECT any_column FROM yourtable") while($row=mysql_fetch_array($sql)){ echo $row['any_column']; }[/CODE]

Member Avatar for vaultdweller123
0
70
Member Avatar for Mike516

[CODE]$refresh = filemtime("stats.php"); $now = time(); $last_update = strtotime(date("m/j/y h:i", $refresh)); $answer = $now - $last_update; echo "Last refreshed: ".$last_update. "<br/>"; echo"<a href='' onclick='history.go(0)'>Refresh Server Status</a>";[/CODE]

Member Avatar for vaultdweller123
0
62
Member Avatar for tokenjoker187

yeah this is like the header("location: sample.php"); you cant have any output before the session_start() even spaces, newline, tab etc. or else it will generate an error

Member Avatar for tokenjoker187
0
186
Member Avatar for muralibobby2015

this is the only thing i know on how to change cursor using CSS, like cursor:pointer [url]http://www.javascriptkit.com/dhtmltutors/csscursors.shtml[/url] i hope it helps :)

Member Avatar for muralibobby2015
0
92
Member Avatar for sastudent

ask the one who made your script as i see you didn't create this, as you dont even know what your doing and how the code works, and also youre just showing us partial part of the code. okay...to limit the file size you need [CODE]$_FILES["file"]["size"] < 50000))[/CODE] in this …

Member Avatar for pzuurveen
0
129
Member Avatar for starlight22

where is your log-in form? if you run this directly of course you will encounter an error to enter the field, coz you username and password are empty

Member Avatar for rajarajan2017
0
122
Member Avatar for jedmund
Member Avatar for ivanichi
Member Avatar for Jothe

hehe your ajax example is from w3schools... ok first make a database for names, then query them all then changed this part from an array [CODE]// Fill up array with names $a[]="Anna"; $a[]="Brittany"; $a[]="Cinderella"; $a[]="Diana"; $a[]="Eva"; $a[]="Fiona"; $a[]="Gunda"; $a[]="Hege"; $a[]="Inga"; $a[]="Johanna"; $a[]="Kitty"; $a[]="Linda"; $a[]="Nina"; $a[]="Ophelia"; $a[]="Petunia"; $a[]="Amanda"; $a[]="Raquel"; $a[]="Cindy"; $a[]="Doris"; …

Member Avatar for Jothe
0
179
Member Avatar for waren
Member Avatar for waren
0
115
Member Avatar for aynamohol

do you understand what Will is saying to you? he means put $row['image'] inside an image tag, like this [CODE]echo "<img src='".$row['image']."' />";[/CODE]

Member Avatar for aynamohol
0
112
Member Avatar for sastudent

why would you change the getTitle() function? its fine already, it just a matter of how you retrieve it so you retrieve it like this, first lets instantiate you class Entry [CODE]<?php $obj = new Entry(); // instantiate class Entry $title = $obj->getTitle(); // get array title foreach($title as $val){ …

Member Avatar for sastudent
0
123
Member Avatar for Chichiro

I admire Indian programmers as they are humble and naturally intelligent, look at Pranav Mistry he's a living proof. If you hate the school.... then so be it, but not the indian people.

Member Avatar for vaultdweller123
0
548
Member Avatar for Azamcsn32
Member Avatar for whiteyoh

with your query, it's not just the 0.3 will be displayed, it will also display the 0.1 and 0.2 your recordset will look something like this 0.1 0.2 0.3

Member Avatar for vaultdweller123
0
103
Member Avatar for rajeesh_rsn

its because of htaccess, try searching about htaccess so you know what it can do about rewriting urls

Member Avatar for Manuz
0
117
Member Avatar for happygeek

your FREEDOM OF EXPRESSION will lead to war, i am not against it, but it should be used appropriately. RESPECT each others religion as others will kill for it.

Member Avatar for finito
4
706
Member Avatar for canadian_angel

[CODE]<!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> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/> <title>Teas of the World!</title> </head> <body> <table> <?php // Script 10.6 - Teas of the World.php // This function displays a four cell table. function tea() { $types = array ("Chinese Green", "Japanese Red", "Korean …

Member Avatar for rajarajan2017
0
131
Member Avatar for GioChaos
Member Avatar for rajarajan2017
0
329
Member Avatar for debow

hmm... whats sqlQuery($sql)? it should be... [CODE]$sql = "UPDATE event_results set result='".$time."' Where event='$event' and athlete_id='$id'"; mysql_query($sql);[/CODE]

Member Avatar for debow
0
269
Member Avatar for Grantism

maybe theres a problem with your database, maybe the data type of field username is int and not varchar, try checking your table fields as i check there is no problem on getting the username.

Member Avatar for vaultdweller123
0
176
Member Avatar for wish02

you forgot the closing single quote [CODE]echo "<script type='text/javascript'>location.href='userReport_Create_Ticket.php;</script>"; [/CODE] to [CODE]echo "<script type='text/javascript'>location.href='userReport_Create_Ticket.php';</script>"; [/CODE]

Member Avatar for vaultdweller123
0
370
Member Avatar for nileshgr

yeah i agree.... MAYBE itech7 is lying on screenshots, but i will totally agree on him on the page load, it takes a head ache waiting on page loads, good thing i can hover on threads to see its description before i click a thread i want to engage.

Member Avatar for nileshgr
0
258
Member Avatar for khanan

first you must study how to upload file [url]http://www.w3schools.com/php/php_file_upload.asp[/url], then save the image path to database then you can retrive them so you can get them to display images using the html img tag

Member Avatar for vaultdweller123
0
97
Member Avatar for QWaz
Member Avatar for dalip_007

it wont display dude coz its a tag. i dont what kind of tag is that but you actually created it... try viewing the source code and youll see that your tag has been created.

Member Avatar for dalip_007
0
144
Member Avatar for luskbo

dude try removing your html code in your getList.php, just remain your php code [CODE]<?php $q=$_GET["q"]; $con = mysql_connect('localhost', '********', '********'); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("*******", $con); $sql="SELECT * FROM resi_list WHERE id = '".$q."'"; $result = mysql_query($sql); //php code. this loops through the …

Member Avatar for luskbo
0
235
Member Avatar for Virangya

yeah virangya is right, session is the solution to your problem, try this tutorial about session [url]http://www.w3schools.com/php/php_sessions.asp[/url]

Member Avatar for Virangya
0
151
Member Avatar for bimal_nayak
Member Avatar for Zagga
0
80
Member Avatar for jhudson0219

one thing is for sure.... your PHP tags is not parsed... maybe you have problem on your PHP server, or maybe you didn't put it the root directory or you didn't save it as .php

Member Avatar for jhudson0219
0
127
Member Avatar for starriinites

Well you can do both... but if you getting tired of repairing stuff... you can try to be a programmer.... well it's not really that hard... as long as you like to read... and requires hardwork of course... the fact that you do well on repairing it's just show that …

Member Avatar for NityaAmarendra
1
201
Member Avatar for PixelatedKarma

changed the two &stmt to $stmt [CODE] $stmt->bindParam(':username', &username, PDO::PARAM_STR); $stmt->bindParam(':password', &password, PDO::PARAM_STR, 40);[/CODE]

Member Avatar for PixelatedKarma
0
116
Member Avatar for levsha

yeah dude it should work, maybe you got problem on retrieving your stored session, try inspecting your php.ini where did you set it or you can explicitly define it using session_save_path('path/path'), put it before the session_start. hope that helps ^_^

Member Avatar for Grantism
0
207
Member Avatar for dalip_007

the arrow sign "->" is used to reference objects from its function/methods and properties

Member Avatar for dalip_007
0
147
Member Avatar for ayooshkasmth

why do you have to extract() the result? when you can already traverse the recordset via mysql_fetch_array. and when you do extract you dont use arrays anymore like $row['content'] coz extract() assign values to array indexes so instead of echo $row['content'] you use $content. you may try this [CODE]<?php $query …

Member Avatar for ayooshkasmth
0
204
Member Avatar for LloydFarrell

your drop down and submit button has the same name, thats causing ambiguity [CODE] <select name="country" id="country" class="tb12" title="Search country"> <option value="England">England</option> <option value="USA">USA</option> </select> [/CODE] and [CODE]<input name="country" type="submit" id="country" class="tb11" value="Search country" title="Search by country" />[/CODE]

Member Avatar for vaultdweller123
0
88
Member Avatar for Designer_101

yeah i get what you mean dude like, the facebook share link, when you attach a link a small thumbnail of the site wil be displayed. i dont know that but i know how to get site contents and convert it so string. [CODE]<?php echo file_get_contents('http://www.example.com/'); ?>[/CODE]

Member Avatar for chrishea
0
86
Member Avatar for akulkarni

the username should be root if you use the default mysql_connect("localhost","root","")

Member Avatar for akulkarni
0
212
Member Avatar for leprakhauns

The End.