39,326 Topics

Member Avatar for
Member Avatar for captain.don

i am working on php and using mySQL with it. I have a table named "images" which contains 2 columns named "user_id" and "name". 5 rows are filled.Example of table is below: User_id ---Name 1 waterfall 1 mountain 2 wind 2 sunset 2 snowfall I am using the script which …

Member Avatar for caitlyndania
0
73
Member Avatar for yamot47

Below is my code can you debug it?? when i try to search on my search box it only show the data equal to the input box but when i clicked the pagination all the data in the database show i only want to show the data that been search …

Member Avatar for yamot47
0
137
Member Avatar for tcollins412

lets say im making a dating site. and i want people to be able to insert their own pictures. how would i do that? i have a mysql database. and i want this to happen in php. and then how would i make it display that persons image when someone …

Member Avatar for lyrico
0
123
Member Avatar for printman55

I am redesigning a site and I want to have it compatible with the IPad. Could someone show me the code in either JavaScript or PHP so that when someone comes to my site on an IPad they will be automatically redirected to a site that is narrower, contains no …

Member Avatar for smantscheff
0
147
Member Avatar for eddiekudzayi

I am looking for a script that can crawl specified sites at retrieve data, something sophisticated enough to parse and ignore unwanted tags. If it can do more that would be great but that is the foundation. Does anyone know where I can get such a script.

Member Avatar for smantscheff
0
62
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
331
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
177
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
114
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
115
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
174
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
206
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
184
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
204
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
87
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

The End.