39,320 Topics
| |
Hello. i made an swf (With ActionScript 3.0) that exchanges data with php file. The swf works perfectly fine when on my local host but when i embed the swf in a the page the swf doesn't work. The swf runs a php file ( [url]www.mywebsite.com/mypage.php[/url] ) and recives data … | |
I am setting up a database currently and I want frequently used values stored in a Code table on my database. The Code table is setup with the following columns: Type_CD" , "Code" , "Description". For example, if I wanted to pull a list of states, I would want all … | |
hi, I have xampp/eclipse/windowsxp. below code does not send any email. I dont know whether i need to do something with php.ini file. or i need mail server. I am new to this. When i run the following code in eclipse, i get message saying Mail Sent but i never … | |
Hello, I just installed XAMPP to a Windows 7 computer and I am trying to learn some PHP. I go to C:/xampp/htdocs and create a file named [B]phptest.php[/B]. And I write inside this code : [CODE]<HTML> <HEAD> <TITLE>PHP Testing</TITLE> </HEAD> <BODY> <?php echo “If this works, we <i>really</i> did it!”; … | |
Link to the page [CODE]<a href="http://xxxx.com/u/'.$_SESSION['loginid'].'/index.php?user='.$_SESSION['loginid'].'">test</a>[/CODE] index.php [CODE]<?php if (isset($_GET['user'])){ define("HOST", "xxxx.xxxxxxx.com"); define("DBUSER", "xxxxx"); define("PASS", "xxxx"); define("DB", "xxxx"); $conn = mysql_connect(HOST, DBUSER, PASS) or die('Could not connect !<br />Please contact the site's administrator.'); $db = mysql_select_db(DB) or die('Could not connect to database !<br />Please contact the site's administrator.'); $user = … | |
Hi, everyone. I've been attempting to write a very simple and short code. All I want to do is have some text on the page that says, "Click here to make a cookie." The 'Click here' part will be the link. What I want is for the 'Click here' link … | |
its value not valuo can u help me with this........ | |
[CODE] $id_subramura1=$row['id_subramura1']; $display_block.="<li><a href=\"".$_SERVER["PHP_SELF"]."?id_subramura1=" .$id_subramura1."\">".$Denumire_Subramura1."</a></strong></li>"; print_r($_GET); if($_GET["id_subramura1"] === "") echo "a is an empty string\n"; if($_GET["id_subramura1"] === false) echo "a is false\n"; if($_GET["id_subramura1"] === null) echo "a is null\n"; if(isset($_GET["id_subramura1"])) echo "a is set\n"; if(!empty($_GET["id_subramura1"])) echo "a is not empty";[/CODE] How it possible to echo "a is null" when is … | |
I am trying to define and pass through (I think that's the term) a variable from my login page to other parts of my site. Right now, the user logs in providing their username/password combination and those variables are able to be used. What I want is if a login … | |
Hey everyone, I'm relatively new to PHP coding and I have a question I've been having trouble finding the answer to - it may be I'm not sure [I]exactly[/I] what I'm needing or what it's called. I am trying to create a very rudimentary login in system where users will … | |
| Just a quickie - is there a freely available WYSIWYG editor I can use on my site? I want it to be written entirely in PHP - no other languages e.g. JavaScript. Is it technically possible to avoid JavaScript? All of the editors I have seen use JS in one … |
Hi I have a website that has a get.php file that echoes out the specific image i want Here is the code: [CODE]$id = addslashes($_REQUEST['id']); $image = mysql_query("SELECT * FROM items WHERE id=$id"); $image = mysql_fetch_assoc($image); $image = $image['image']; header("Content-type: image/jpeg"); echo $image;[/CODE] To get an image from the database … | |
hey people. okay, i am designing a social network. but i got a problem in my signup code. check this is the form code : [CODE] <script src="../../../SpryAssets/SpryValidationTextField.js" type="text/javascript"></script> <link href="../../../SpryAssets/SpryValidationTextField.css" rel="stylesheet" type="text/css" /> <script src="../../../SpryAssets/SpryValidationSelect.js" type="text/javascript"></script> <link href="../../../SpryAssets/SpryValidationSelect.css" rel="stylesheet" type="text/css" /> <div id="signup"> <div id="CollapsiblePanel1" class="CollapsiblePanel"> <div class="CollapsiblePanelTab" tabindex="0" … | |
Hello good ITz This is my last resort,I've checked threads but saw no answer to my question,I blieve you good people will help me out This are my existing forms, i want to add a multiple file upload system to it for each user that signs up as shown below … | |
Hello i need to match a loginid from another label in my MYSQL database. I dont know how or what i should search to get to this. | |
<form name="contact_form" method="post" action="./contact/mailer.php" onSubmit="return evalid()"> <table border="0"><tr> <td>First Name *</td> <td colspan="2"><input name="fname" type="text" size="30" /></td> </tr><tr> <td>Last Name *</td> <td colspan="2"><input name="lname" type="text" size="30" /></td> </tr><tr> <td>Your E-mail *</td> <td colspan="2"><input type="text" name="mail" size="30" /></td> </tr><tr> <td>Phone</td> <td colspan="2"><input name="phone" type="text" size="30" onkeypress="return numere(event)" onkeyup="return limitarelungime(this, 12)" /></td> … | |
[CODE]<body> <?php $host="localhost"; // Host name $username="root"; // Mysql username $password=""; // Mysql password $db_name="shipments"; // Database name $tbl_name="info"; // Table name // Connect to server and select databse. mysql_connect("$host", "$username", "$password")or die("cannot connect"); mysql_select_db("$db_name")or die("cannot select DB"); $sql="SELECT * FROM $tbl_name"; $result=mysql_query($sql); $count=mysql_num_rows($result); ?> <table width="100%" border="0" align="center" cellpadding="0" … | |
<li><a href="register.php" rel="nofollow">Register</a></li> Driving me nuts..I'm trying to create forum type software but I can't seem to figure out how to programmically click on this link Any ideas? Tried by id and by tag but there isn't one for this...what is the work around for this? Thanks | |
Okay. I have a whole list of products. Some are the same thing ie: same titles I have a form where people search for the products. I organize the products by a rank I give each product when they are first created. I want to group up the products. For … | |
Is there anyway to download a redirecting php file using it's link. I tried just using the right click the link and "save target as" option, but it processes the redirect first and I end up download the index.htm file of the site you get redirected to. Any ideas? | |
I have: tbl CATEGORIE with column: id_categorie ,Name; Tbl Subramura1 with columns:id_subramura1, id_categorie, Name_subramura1; Tbl Subramura2 with columns:id_subramura2, id_subramura1, Name_subramura2; Tbl Subramura3 with columns:id_subramura3, id_subramura2, Name_subramura3; Complete name=id_subramura1+id_subramura2+id_subramura3; How to make a tree navigation for a catalog list? I Try with $_SERVER['PHP SELF'] and GET but it not working. | |
Hello friends, Props to anyone who can help me out on this because I have a feeling it's going to be quite complicated. I've searched and searched and can't seem to find the right answer so I've decided to resort to the brilliance of these forums. Here's my scenario: I … | |
Hi, guys I want to implement the google coder in my web, such that if I give the address of any location he can give me the latitude and longitude of that address, plz any one have any tutorial then plz send it to me. just like these webs [url]http://itouchmap.com/latlong.html[/url] … | |
My tree for navigation it not showing the third level [CODE] $display_block.="<li><a href=\"".$_SERVER["PHP_SELF"]."?id_subramura1=" .$id_subramura1."\">".$Denumire_Subramura1."</a></strong></li>"; } if (isset($_GET["id_subramura1"])) { if($_GET['id_subramura1']==$id_subramura1) $query2 = "SELECT * FROM subramura_2 where id_subramura1='".$id_subramura1."' order by Denumire_Subramura2"; if(isset($query2) && !empty($query2)) { echo"<!--" . $query2. "-->"; $result2= mysql_query($query2) or die ("invalid query 4: " . mysql_error());} $display_block .="<ul>"; … | |
I have a tree that is not working to third level....something it wrong with the $_GET id_subramura1 [CODE] $display_block.="<li><a href=\"".$_SERVER["PHP_SELF"]."?id_subramura1=" .$id_subramura1."\">".$Denumire_Subramura1."</a></strong></li>"; } [COLOR="Green"] if (isset($_GET["id_subramura1"])) { if($_GET['id_subramura1']==$id_subramura1)[/COLOR] $query2 = "SELECT * FROM subramura_2 where id_subramura1='".$id_subramura1."' order by Denumire_Subramura2"; if(isset($query2) && !empty($query2)) { echo"<!--" . $query2. "-->"; $result2= mysql_query($query2) or die … | |
Sorry for the crappy title but it was the best that I could come up with for this. It could be quite easy to someone but I'm wracking my brains out on it. Background: I have a script that shows dynamic articles. The rows for each has the author, title, … | |
Here is what my page is suppose to look like. There are clickable tabs at the top namely: Home, About, Contact Us. When I click on the About tab for example, the content for the About would be displayed. However, the content for the Home tab is still there. I … | |
Hello I'm using a form with a dropdown list. When the user select "Test1" in the dropdown then press the button "Submit" it has to send the data to [url]www.test1.com[/url]. When the user select "Test2" in the dropdown then press the button "Submit" it has to send the date to … | |
i have this code: [CODE]<?php session_start(); $id=$_SESSION['uid']; include "dbconnect.php"; $query = "SELECT FROM members WHERE id='$id'"; $result = mysql_query($query); $row = mysql_fetch_array($result); ?>[/CODE] and it says mysql_fetch_array is not a valid argument. help please |
The End.