39,402 Topics
![]() | |
I have read several tutorials and 'philosophical' views aon writting PHP codes by either implementing templates or making your own templates. So me says template engines are like learning new language, som e say are good. Good controversy! What do you suggest guys, I mean pros and cons of each … | |
Hello This isnt the right forum for this im sure however I cant find the correct one as its a vague question. Im sure someone in here knows the anser to it though. I've designed a countdown system in flash/php that rotates a wheel and stops on a certain object … | |
Using .htaccess i have a password protected folder online containing 7 files with one single user/pass combination. User is not allowed to see that 7 files are available. User enters 1 of 7 "Access Keys" in a simple HTML Form text input which is then processed (script?) User is then … | |
I'm trying to set dynamic titles on my pages with a switch statement, but can't get it to work. Tried ifelse using code gleaned from Google but it didn't work. I'm trying to get it so that all my pages' titles are able to be dynamically used from a value … | |
Hi! I need a button in php code, that when i click on that button it export's my SELECT to a text file or excell file.. i searched.. there's a lot of program's that make that.. but i don't want that.. i want to make on my webpage a simple … | |
How would I go about changing this to grab the sku without making it static as I have it below: [CODE=php]<?php if($this->getProduct()->getSku()=='SKU###'){ $titles=array('Color 1:','Home Color 2:'); $url = Mage::getBaseUrl(); $skinUrl = $this->getSkinUrl('images/catalog/product/placeholder/'); require_once 'app/code/local/Temgra/ColorCustomOptions/colorCustomOptions.php'; colorCustomOptions1($this->getProduct(), $titles, $url, $skinUrl); } ?>[/CODE] What this does is grabs the sku of a product … | |
It's possible to make more complex URL's using Zend Rest Route? I'm trying to make following route: /articles/filter/:query. Simple controller: [code] class ArticlesController extends Zend_Rest_Controller { public function init() { $this->getHelper('ViewRenderer')->setNoRender(true); } public function indexAction() {} public function getAction() {} public function putAction() {} public function postAction() {} public function … | |
I have a form that get processed by a php page and depending on what the user decides it will get summited to another php form. But the [code = php]<input type="text" name="fname" value="<?php 'echo $tesing';?>"[/code] part does not work inside php. if i try the code outside it works, … | |
Hi Everyone, i am really new at this and slowly getting started, to fast track my website i purchased a web template in flash with a php email script. I have tried searching the web for a solution but i am not up o scratch with any code that makes … | |
I am currently reading two books, one on PHP and one on Python. Not that I'M good at ether. I'M about half way through the book on PHP or less and almost done with the one on Python. Though I haven't actually read anything web related in this particular Python … | |
Hi, I am trying to create a search function on an html page. I have written the page and part of a php page. I trying to get help with the search as there are 3 criteria; So far I have made this search form; (textbox name=searchterm) [B]Brand[/B]: (dropdown name=type) … ![]() | |
hi frnds... i need to find the users visiting page in my website? basically i m doing project on Music player...i need to find user listening which movie songs ? give me some suggestions plz....how to do that? | |
hi to all. i have two radio buttons with one name. and also have one text area box. Depending on first radio button is chosen It will allow 2 entries(Enter key words Separate by comers) per line, and at the same second radio button chosen it will allow 4 entries(Enter … | |
Hi If anyone knows some opensource api or tutorials.. [url]http://buysellads.com/buy/detail/108[/url] Look on the right- it says "Public stats" how do you display that information for a domain - how do buysellads do that domain api? | |
Hello, all: I'm trying to sanitize/secure my query, and it all seems ok when I test it with most special-characters... but when I try to test the single quote (') like this... [url]www.mysite.com/page.php?category=[/url]' Then it gives me this error: "You have an error in your SQL syntax; check the manual … | |
Hi all, I am rather new to PHP, but have a fairly ok grasp of software design. My question arises from the fact that I'm getting ready to deploy some scripts etc. to my website which is hosted on a *nix type server. My home / work computer that I'm … | |
Here's the problem: I have a folder /tests/ which contains all my unit tests. I want the test runner to be able to go and include all of the unit test classes from that directory, and then run all the tests in those classes. So the first part of the … | |
How to handle UTF-8 characters in HTML, JavaScript, PHP and MySQL ... | |
Hello Guys I am working on a website I am not getting the forget password can u please help me in solving problem please Thanks in advance | |
Hi all, Please I'm a newbie in PHP and MySQL, I have results from a GROUP BY (grouped by col2) query in the format. col1 | col2 ----------- a1 | a a2 | a a3 | a a4 | a b1 | b b2 | b b3 | b I … | |
Ok so I created a small page using smarty, now what I need to do is create a link to the page(s). The set the page up so that it will display information for the individual user and not to everyone, also the pages are created dynamically. So I need … | |
How do you declare your select menu in the PHP? Does it have to be an array of variables? One single variable? Something else? Let's say this one: [CODE] <select name="search" title="Search Criteria"> <option value="id">ID Status</option> <option value="ip">IP Status</option> <option value="pd">PD Status</option> <option value="nva">NVA Status</option> </select> [/CODE] Thank you! | |
Hello guys, I'm creating my own website-it's coming along very well but I'm stuck. There is a login, so that you can login to your account. Each account has an access of 1-10, if your access is 0 you are not logged in. When you put your username and password … | |
I've been writing PHP for about two years now, nothing complex, mostly just HTML form processing scripts. My latest project for a customer has over 40 items in the form. It's a dynamic form using some JavaScript and PHP that displays certain parts of the form based on other options … | |
This is the echo code from my site: [CODE] <?php $url1 = "http://www.canadiandriver.com"; $url2 = "http://www.chevrolet.com.br"; $autoguide = "Autoweekly"; $autoguide1 = /"<b>"<a href=\"$url1\buyers-guide/2010/volkswagen/passat.php"\>New car of the day</a>"/</b>"; ?> [/CODE] Yet it produces a T_STRING error, and I can't work out how to fix it. The other variables work fine, $autoguide1 … | |
Hello, I'm a pretty basic php user, and I'm wondering how someone would go about implementing a message system into a website with different users. It doesn't have to be anything specific, I'm just wondering about the basic design of it. Thanks | |
I am currently building an online system, it has come to the point to think about securing peoples passwords. How ever, for admin reasons I was wondering if it was possible to decode the encoded password, I believe this is not possible with md5 but hoping there is another method? … | |
Hi all. I have two date input fields. Is there any way to restrict date input from only date picker (users are not allowed to input date through keyboard). The reason I want it this way is to prevent users from entering invalid dates. Any help provided is greatly appreciated. … | |
how to refresh page one time only? if i using <meta http-equiv=refresh content=\"0;URL=\".... it keep on refresh every according as what in the content was set. wat i want is.. it only refresh one time only before the page was loaded. can anybody help me? thanks :?: | |
i'm having problem with survey script and voting function. can anyone please help me out.. the script only accept the last question's answer and update the database = acount+1. script to dislay survey: [CODE] <?php echo "<form action='vote.php' method=post> <table width='300' border='0' cellspacing='0' cellpadding='0' align='center'>"; $query1 = "SELECT * FROM … | |
Im trying to use session variables to save the puzzle key, and than open a new file that prints it out, but it gives me Notice: Undefined index: puzzleName in C:\Apache2.2\htdocs\users\jmdrenning0\wordfind\wordfindkey2.php on line 13 i have no idea what it means, any help please. wordfind.php [CODE] function printPuzzle(){ //print puzzle … | |
is there any way that php can show a person's webcam and their voice? ![]() | |
I am writing a PHP registration form but when i view my page i cannot see the form, any ideas all my code is below. i have noticed that if i remove the [CODE]print '<h1> Please Register To Continue </h1>'; print '<style type="text/" media="screen> .error { color: red; } </style>';[/CODE] … | |
I am making a forum and i was wondering how trough PHP make a HTML page off that topic when the user creates it. ![]() | |
Hi All, I am working on a website in which paypal is working very well. But when paypal complete the transaction it sends some "Inavalid or Bad order" Like this type of mail . Means customer is getting such a mail I am showing here: [QUOTE]Subject: [Wed Nov 4 9:27:48 … | |
hi there, How to fix this ? i got below message when activating plugin from wp-admin Plugin could not be activated because it triggered a fatal error. Fatal error: Out of memory (allocated 15990784) (tried to allocate 77824 bytes) in …. plugins/wp-e-commerce/wpsc-admin/display-groups.page.php on line 187 I found below code at … | |
we have two radio buttons with same name. when we check radiobutton no.of imagefile boxes appear. for example i have two radio buttons. if i check 1 radio button appear 5 image upload fields. now selects another radio button selects then appear only 10 image upload field. anybody help. ![]() | |
Hi all, after thinking for sometimes, I thought it will be grat opportunity to learn if I will start from scratch and build my own register/login system. Here is the thread that I will be posting the progress and I hope you guys will help me. The code below is … | |
Hi every one, i m in a bit trouble as i have bought a new .co.cc domain name ,but not able to upload my files on that .can anyone tell me how to upload file on that and how to use use phpmyadmin.do i require ftp tool. | |
hi frnd... i want to remove/disable ADDRESS BAR from the new pop up window... now i m using this code....its working only for IE6..... [CODE]window.open(url ,'title', 'location=1,menubar=no,resizable=no,scrollbars=no,status=no ,toolbar=no,width=300,height=200')[/CODE] Also i want to remove expand button in browser...plz tell me how can i do it... Thanks in advance... | |
Hi, now i m working for musical website... here my problem is how can i create a playlist and how to pass the selected songs to my player.... i dont have any idea regarding this.. plz give me JAVASCRIPT, php code ... plz give me some suggestions...sorry for asking code..but … | |
hi friends, again a problem I have a mysql table name tbl_admin fields are below id(int), image1(text), image2 (text) , image3 (text) now i want to show these pics, i use randomly function to display them [code=php] $query=select * from tbl_admin where id=5; $result=mysql_query($query); $row=mysql_fetch_array($result) [/code] now for show i … | |
[code=php]//create and issue the first query $add_topic_sql = "INSERT INTO forum_topics (topic_title, topic_create_time, topic_owner) VALUES ('$_POST[topic_title]',now(),'$_POST[topic_owner]')"; $add_topic_res = mysql_query($conn, $add_topic_sql) or die(mysql_error($conn)); //get the id of the last query $topic_id = mysql_insert_id($mysql);[/code] | |
Ok so I wrote a little script that allows me to call information from my database. Basicly this. <table> <tr> <td id="seal"><?php include("sql.php"); echo "$websiteaddress"; ?></td></tr> </table> All this does is connects to the sql file echoing the users website address thus I type in mywebsite.com/index.php?name=aname and it returns their … | |
Hello Friends I am new to PHP can any one help me i am facing one problem whenever i am working on local host my delete command is working without problem but whenever i am uploading this file on internet through FTP the command not deleting any records Every one … | |
This script works with require_once and produces warnings for line 6 when I try to use $mysqli = new... (which I've commented out). Please help me with this script: [codebox]<?php require_once "connect_to_mysql.php"; //$mysqli = new mysqli("localhost","user","pw","db"); $result = mysql_query("SELECT * FROM example") or die(mysql_error()); echo "<table border='1'>"; echo "<tr> <th>Name</th> … | |
<?php session_start(); //Check User Session include ("includes/check_session.php"); include 'includes/config.php'; $current_module = 'MATERIALREQ'; //$related_modules = array('BIDDINGENTRY','PIRRAISING','POLIST','BIDDINGSELECTION','GRV'); include ('includes/check_acl.php'); //include 'includes/config.php'; include 'includes/sqlquery.php'; include 'includes/message.php'; $valid = ''; $current_user_id = $_SESSION['associate_id']; //if the session value is present, set whether the last transaction is stored or not if (isset($_SESSION['mrmsg']) && ($_SESSION['mrmsg']!='')) { $valid … | |
I have images I would like to serve that will need individual information posted on them. Just a word or two. The information will be pulled from our database. The text will depend on the url that is entered. We tried just a simple echo but when you view just … | |
I am generating a PHP error with this function but don't know why. Little help... [CODE] function Validate_Page_Nav($LastPage, $ErrorPage) { if($_SESSION['Staff_ID']) { $trimmed = str_replace($staffroot, '', $_SERVER['SCRIPT_NAME']); $resul = $db->query("SELECT * FROM Page_Access WHERE URI = '$trimmed'") or die("failed to get access data"); $page_access = $resul->fetch_assoc(); $URI_access = explode(",", $page_access['User_Level']); … |
The End.