39,402 Topics

Member Avatar for
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
140
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
125
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
150
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
65
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
339
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
178
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
142
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
115
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
193
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
142
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
176
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
316
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
61
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
200
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
247
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
208
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
187
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
103
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
216
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
62
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
61
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
110
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
85
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
117
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
90
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
88
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
56
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
88
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
66
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
69
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
90
Member Avatar for ellenski

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 …

Member Avatar for zizuno
0
164
Member Avatar for stebentje

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 …

Member Avatar for HemantPHP
0
104
Member Avatar for tcollins412

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

Member Avatar for lyrico
0
120
Member Avatar for SuPrAiCeR69

How can I perform the following with this API? Form is setup in PHP for registered user to enter domain name On submit.. Check if domain is available > - If NO > output to XML > run the loop again in 5 minutes - If YES > output to …

Member Avatar for HemantPHP
0
200
Member Avatar for yamot47

will somebody show me a sample how to add cart using dynamic button?? im having trouble retrieving value using dynamic button using the code below [CODE] # echo("<TR id='$i' bgcolor='B0C4DE'>"); # $sr_num=$row['b_sr_num']; # echo ("<td><input name=data id=data type=text id=data readonly=readonly value=$sr_num></td>"); # echo ('<td>'.$row['b_name'].'</td>'); # echo ('<td>'.$row['b_author'].'</td>'); # echo ('<td>'.$row['b_avail'].'</td>'); …

Member Avatar for HemantPHP
0
66
Member Avatar for yamot47

[CODE]while ($row = mysql_fetch_assoc($query)){ echo("<tr id='$a' bgcolor='B0C4DE'>"); $sr_num=$row['b_sr_num']; echo ('<td>'.$row['b_sr_num'].'</td>'); echo ('<td>'.$row['b_name'].'</td>'); echo ('<td>'.$row['b_author'].'</td>'); echo ('<td>'.$row['b_avail'].'</td>'); if($row['b_avail']>0) { if (!$_SESSION["valid_user"]) { // User not logged in, redirect to login page echo("<td>Available</td>"); }else echo("<td><INPUT TYPE=button id=show name=show[] value=add onClick=buttonPress('$sr_num','$a')></td>"); [/CODE] can you give me the code of or sample to use …

Member Avatar for yamot47
0
72
Member Avatar for fuston05

I am working on a app at the moment, as practice mostly. But I have like 25 $vars that accumulate over the course of like 2 pages of forms gathering information. On the final page i use all these $vars to put together an estimate. My question is: Is there …

Member Avatar for fuston05
0
126
Member Avatar for itisnot_me

ok i think that i am missing something here but i not sure what. i have a function with a class that is supposed to take all the data make a query and then put into an array the data i would like to collect later function [CODE] function getDataLoop($strDbType, …

Member Avatar for itisnot_me
0
212
Member Avatar for studioceasar

Hi All, I'm working on a website page that is displaying data from a SQL database. I have a series of echo statements display the data within a table: [CODE] echo "<table border '1' bordercolor='#333333' cellpadding='3' cellspacing='0' width='100%'> <tr> <th><span class='heading'>ID</span></th> <th><span class='heading'>Date Submitted</span></th><th><span class='heading'>Location</span></th><th><span class='heading'>Type</span></th><th><span class='heading'>Request</span></th> <th><span class='heading'>Start Date</span></th><th><span …

Member Avatar for weekendrockstar
0
93
Member Avatar for jaydeebee84

Hi, right I'll try put this across quickly but basically at the moment I have AJAX posting to a separate PHP page and then getting the response which is echoed on that page which is then used on the original page to display. This works fine and is all good, …

Member Avatar for jaydeebee84
0
145
Member Avatar for keyroche

Hello all! I am making a web application that allows someone to create a website through the various steps of the app. The system is based on templates, that a user picks and then chooses the content to go into it. I have all the info stored in a session …

Member Avatar for sDJh
0
621
Member Avatar for paullanesra

hi i am having a problem with a php script. i have 3 files index.php, home.html.php, form.html.php. home.html.php is working fine, if has a form that is submitting fine but when it submits i get a problem. maybe someone can help me out please i would be grateful as i …

Member Avatar for EricIskhakov
0
143
Member Avatar for Ellsinore

I'm transcribing information from .jpg files. I have my form set up, but as it is now, I have to have the photos open in another window to read them, and use a <select> form field to list all the file names using this code: [code] $files = array(); $dh …

Member Avatar for Ellsinore
0
120
Member Avatar for joban.ali

I want to use sessions to identify if a user is signed in. If user is signed in they should be directed to their own profile. If the user is not signed in then the user should be taken to the login page. on my header I have options when …

Member Avatar for joban.ali
0
120
Member Avatar for GaBack

I'm stack in a php code that i want to find the total but i don't know what i did wrong and the total comes alway on "0". My code like a order list. You check on what thing you need and how many do you want. You order it. …

Member Avatar for GaBack
0
119
Member Avatar for tcollins412

i am making a website in php all on one page. here is my script [CODE]<a href='?goto=register'>register</a> <?php if ($_GET['goto']=='register'){ ?> <form name='register' method='POST' action='?goto=reg'> <table style='margin-left: auto; margin-right: auto; color: white; font-weight: bold;'> <tr><td style='text-align:center;'>First Name: <input type='text' name='first'></td></tr> <tr><td style='text-align:center;'>Last Name: <input type='text' name='last'></td></tr> <tr><td style='text-align:center;'>Email: <input type='text' …

Member Avatar for pzuurveen
0
122

The End.