345 Posted Topics
Re: 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? ![]() | |
Re: [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] | |
Re: [CODE]$query = mysql_query("SELECT * FROM img WHERE id='$b'"); $row = mysql_fetch_array($query); echo "<img src='".$content = $row['image']."' />"; [/CODE] | |
Re: use mysql_insert_id to get the last inserted id | |
Re: [CODE]<HTML> <HEAD> <TITLE> MY FIRST PHP PAGE </TITLE> </HEAD> <BODY <?php echo "Hello World<br>Hello World Hello Indiana!"; ?> </BODY> </HTML>[/CODE] | |
Re: 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] | |
Re: you mean OOP? yeah OOP is much better its primary goal is reusability | |
Re: she right a version control system is the answer... see this link [url]http://bazaar.canonical.com/en/[/url] | |
Re: [CODE]$sql = mysql_query("SELECT any_column FROM yourtable") while($row=mysql_fetch_array($sql)){ echo $row['any_column']; }[/CODE] | |
Re: [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] | |
Re: 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 | |
Re: 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 :) | |
Re: 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 … | |
Re: 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 ![]() | |
Re: @ivanichi explain the problem clearly so we can help you | |
Re: 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"; … | |
Re: i hope you set-up correctly the php.ini for the mail function to work | |
Re: 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] | |
Re: 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){ … | |
Re: 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. | |
| |
Re: 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 | |
Re: its because of htaccess, try searching about htaccess so you know what it can do about rewriting urls | |
Re: 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. | |
Re: [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 … ![]() | |
Re: [CODE]SELECT * FROM `likes`[/CODE] it should be [CODE]SELECT * FROM likes[/CODE] ![]() | |
Re: 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] | |
Re: 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. | |
Re: 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] | |
![]() | Re: 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. ![]() |
Re: 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 | |
Re: [CODE]<?php print_r($_GET); ?>[/CODE] | |
Re: 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. | |
Re: 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 … | |
Re: 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] | |
Re: whooaaaaa! thats a lot of code! my braincells are depleted! ![]() | |
Re: 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 | |
Re: 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 … | |
Re: changed the two &stmt to $stmt [CODE] $stmt->bindParam(':username', &username, PDO::PARAM_STR); $stmt->bindParam(':password', &password, PDO::PARAM_STR, 40);[/CODE] | |
Re: 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 ^_^ | |
Re: the arrow sign "->" is used to reference objects from its function/methods and properties | |
Re: 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 … | |
Re: 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] | |
Re: 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] | |
Re: the username should be root if you use the default mysql_connect("localhost","root","") | |
The End.