39,323 Topics

Member Avatar for
Member Avatar for maofree

Hi to all I use a cms and I want to modify an its module. I need to pass a variable to a xml file (this xml is necessary for a flash slideshow), like the value of a folder like '/example' If I create a system variable in php and …

Member Avatar for maofree
0
326
Member Avatar for newn01

Hi. I've been looking for a code, and found something, edited it a little bit and came up with nothing, so here's the original version of it: [CODE] <?php $dbLink = new mysqli('localhost', 'usr', 'pwd', 'dbName'); if(mysqli_connect_errno()) { die('Failed to connect to MySQL: ' . mysqli_connect_error()); } $sql = "SELECT …

Member Avatar for newn01
0
175
Member Avatar for EricIskhakov

Hey guys, sorry i know it doesn't belong on PHP but there is no general discussion. i am having trouble to understand this licenses. I am building a website for public use. with profit included. can i use a jQuery lib for my site? (it's licensed by MIT or GPL …

Member Avatar for EricIskhakov
0
140
Member Avatar for EricIskhakov

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 …

Member Avatar for EricIskhakov
0
113
Member Avatar for jrotunda85

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 …

Member Avatar for diafol
0
190
Member Avatar for malipia
Member Avatar for bangla

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 …

Member Avatar for bangla
0
113
Member Avatar for newbiecoder

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!”; …

Member Avatar for newbiecoder
0
173
Member Avatar for Sorcher

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 = …

Member Avatar for Sorcher
0
313
Member Avatar for Vene

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 …

Member Avatar for smantscheff
0
59
Member Avatar for malipia
Member Avatar for cristi08

[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 …

Member Avatar for zizuno
0
198
Member Avatar for jrotunda85

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 …

Member Avatar for pixelsoul
0
246
Member Avatar for jrotunda85

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 …

Member Avatar for jrotunda85
0
205
Member Avatar for Lioshenka

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 …

Member Avatar for Lioshenka
0
183
Member Avatar for Misklahr

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 …

Member Avatar for Misklahr
0
98
Member Avatar for Awah Mohamed

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" …

Member Avatar for Awah Mohamed
0
203
Member Avatar for bluetoot

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 …

0
60
Member Avatar for Sorcher

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.

Member Avatar for smantscheff
0
59
Member Avatar for andyhunter

<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> …

Member Avatar for smantscheff
0
107
Member Avatar for Sarao

[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" …

Member Avatar for Sarao
0
82
Member Avatar for simpleonline123

<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

Member Avatar for codeorder
0
114
Member Avatar for Joe34

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 …

Member Avatar for smantscheff
0
88
Member Avatar for kylethedarkn

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?

Member Avatar for smantscheff
0
86
Member Avatar for cristi08

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.

0
54
Member Avatar for devinodaniel

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 …

Member Avatar for devinodaniel
0
1K
Member Avatar for chandaboy

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] …

Member Avatar for HemantPHP
0
85
Member Avatar for cristi08

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>"; …

0
64
Member Avatar for cristi08

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 …

0
66
Member Avatar for weekendrockstar

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, …

Member Avatar for blocblue
0
88

The End.