39,320 Topics
| |
Just a heads up this is a school project. I have been tasked with building a login system for the "mock" company that we have been using on my college course for assignments ect. I have built the regisration, login, logout, user management pages, however I cannot make the activation … | |
Whenever I run a script twice at the same time, it's as if the second instance simply outputs what the first did. The second instance also does not detect any files the first one made etc. First instance started at 14:37:59 outputs: Started at: 2012-04-12 14:37:59 OK Second instance started … | |
| I doubt this is the right place to post this question, but I didn't know where else I can put this. It does kinda involve PHP, but I've asked this question on Stack Overflow and didn't get much help. If this is the wrong place to put this, please do … |
Say I have a website with a form. The user would fill out a review about my company in my form. When the user presses submit, the data from the form on MY website then gets sent to an external review website like Google Places and gets submitted there. Is … | |
I am trying to incorporate a number of small pieces of php code into a Wordpress database (for banner ads). Unfortunately the template I am using is not designed to take php code but rather html or javascript. I wondered if there is a way to amend the template file … | |
Hi I want to have 2 select dropdown based on the value of 1st drop down without submit button. But I m not getting dynamically the selected value in 1st drop down eg: year , so that i can use it for next selection. can anyone plz help me Eg: … | |
**Bold Text Here** i cant perform edit option in my sql/php page.....while editing it return 0 and it is not updating my database....in the database the same is seen (as 0)...donno hw to correct this...will anyone help to continue my work..... Thanks in advance. | |
Please help what is missing here i cannot get the data of row that I check on the checkbox? <? include("connect.php"); include("home_order.php"); echo "<div><table border=0 cellspacing='15' align=center id=table1> <tr> <th>Title</th> <th>Price</th> </tr>"; $code = $row['Code']; $getcheck=$_GET['check']; if ($getcheck){ $result= mysql_query("SELECT * FROM books where Code='$code'"); while($row = mysql_fetch_array($result)) { echo … | |
I cannot update row datas.I cannot find what is wrong because my query in updating is 100% right for me.I hope so..But here is my codes so you can help me. this is home_admin.php <? include("connect.php"); include("addfunc.php"); echo"<link rel=stylesheet type=text/css href=design.css />"; echo"<center><img src=top.png></center>"; if(isset($_GET['add'])){ echo "<table align=center id=table> <tr … | |
Hi – I have an inline jQuery function that selects the table cell data onclick. The jQuery part works well. I have added code snippet of jquery. $(function(){ $("#myTable td").click(function() { $row = $this.closest('tr'); case "name": alert($row.find(".name").html()); break; etc Instead of displaying the name on the client –side alert message, … | |
Hi I have a problem, I have created a site that allows for a user to bid on property but cant get a code to work where it updates a current record in the database <form id="MakeBid" action="MakeBid.php" method="get"> <div>Bid Now <input type="text" name="pricesoldfor"/></div> <input type="submit" value="Place Bid" /> </form> … | |
**Hey, so i got syntax error when i'm trying to use this file** Parse error: syntax error, unexpected $end in /var/www/vhosts/airlinesofisrael.com/httpdocs/phpvms.full/lib/skins/lolim/layout.tpl on line 129 my code is below, can someone help please? :) <?php /** * * * * * * * * * * * * * */ ?><!DOCTYPE … | |
Hello: I was wondering if I can get some guidance on how to pull data from mysql and inserted in js array in the following manner var option_array = new Array(num_of_cats); option_array[0] = new Array(\"You need to select a category\"); // This is the first (blank) category. Don't mess with … | |
Please apologize my ignorance, I am very new to this. So I have some code and am doing AJAX refreshes of some text on the page which works fine. Now I want to refresh things which are more complicated than just a text string, such as a button which is … | |
Hi- I have a script that grabs a lot of information for a page that has a 'Research Mode.' Basically, it grabs a bunch of data, then uses JS to show or hide info based on user criteria. It used to work fine, but we've been adding more info -- … | |
Here $a and $ b are equal. But in line 07 its not printing 'this is equal'. What is the problem? Plz help me. Remember when form submit $a and $b is equal. but when refresh they r not equal. <?php session_start(); $a=$_SESSION['randomnum']; $b=$_POST['secure']; echo $a.'<br/>'.$b; if($a==$b){ echo "this is … | |
im using fpdf.php library have some extension the pdf_lp.php then i got this error on my codes... hope somebody can help me identify my error.. any help is very much appreciated. <?php date_default_timezone_set('Asia/Manila'); require_once('./pdf_lp.php'); include ('connect.php'); // $sql = mysql_query("SELECT * FROM mydb WHERE contractno = '$_SESSION[contractno]'") $sql = "SELECT … | |
I have this sample of API code, i'm trying to embed my form into it. This code is in php. Below is the sample API code ----------------------------------------------------------------------------------- <?php echo(get_sentiment_rank_text("We like sharing our service with you. We hope you enjoy it as well.")); function get_sentiment_rank_text($content) { //get the sentiment scoring info … | |
what's wrong in my codes? this is my insert.php: `<?php $host="localhost"; // Host name $username="root"; // Mysql username $password="rommelbarrio"; // Mysql password $db_name="system"; // Database name $tbl_name="grades"; // Table name // Connect to server and select database. mysql_connect("$host", "$username", "$password")or die("cannot connect"); mysql_select_db("$db_name")or die("cannot select DB"); // Get values from … | |
I have been given a database whose content I can't modify. Everything has been going fine until I was passing some variables in a URL through a link, and an apostrophe in one of the variables (i.e "Frank's Used Cars") is causing the variables behind it to not be passed. … | |
Hi, Im using session variables and when passing from one page to another with a target="_top" the session variables are erased. Is there anyway i can go around this problem ? Any idea will be greatly appreciated. Thank you | |
Hi – Sorry about the code tag that is not working for me in my previous post and I am having trouble even edit my own post. I am visiting this site after a while and having trouble sending my post. | |
| Hi all, I'm making a website that enables easy sharing of Public PGP keys using PHP and MySQL server side and JS client side making it all nice and dynamic. The site works fine on localhost, but I have just uploaded it to my host, TuxFamily, and it doesn't work. … |
I need a script that selects all from mysql, orders them DESC with highest money and prints out only where username=$_SESSION['username'], so it will show Your position is X/10 | |
Hi there, I'm trying to modify a form verification script. When you press the submit button it runs a javascript function that checks if the required fields are filled out. If not it sends up an alert and doesn't submit the form. What I'd like to do is have it … | |
I have an assignment due and i might be asking for too much help so im sorry for that. I have very little knowledge about php and html. i have never ever done this in my whole entire life. So any help would be greatly appreciated. Thanks I have to … | |
I have to find all the syntax errors in this php file, any help is appreciated <?php $WaitTime = addslashes($_POST['wait_time']); $Friendliness = addslashes($_POST['friendliness']); //missing ) and ; $Space = addslashes($_POST['space']); $Comfort = addslashes($_POST['comfort']); //missing $ $Cleanliness = addslashes($_POST['cleanliness']); $Noise = addslashes($_POST['noise']); if (empty($WaitTime) || empty($Friendliness) || empty($Space) || empty($Comfort) || … | |
Hi, I have created a form and since it is very long some of my users need a SAVE feature so that they can enter some details-> save it, and then fill the blank fields in the future. Most of my form fields are 'textarea' as the data entred by … | |
hey there :-) I am facing a small problem, can you recommend me something? my problem is like this: now when a user searches some keywords on my website i extract data of website which includes complete page details. at a time i am fetching 10 results! so now assume … | |
i am creating a hyperlink . i want to that page should open in pop window wat code should i use?? |
The End.