39,323 Topics
| |
Hi guys. The thing is that I have some experience with other programing languishes like Java and C#. I recently got into php and java script. The questions is when wold you prefer to use java script functions over php. For example say the random function. I'm aware of the … | |
Hi ! I’m new to php and try to devellop a simple application that would allow the user to classify various dishes by using radio buttons. I'm a bit lost :( My code is as follows (I’ve already got help to achieve it, but can’t go further). The first part … | |
Hi, My sql database contains a video table which has a video 'adddate' field. I need to change the code [COLOR="Red"].$video['adddate'].[/COLOR] from the following format: 2010-11-02 to 11-2010 I've changed it in .tpl files doing the following: {assign var='vidMthYr' value=$videos[i].adddate} {$vidMthYr|date_format:"%m-%Y"} However that does not work in my .php code … | |
i am looking for some help creating a php script that allows users to vote up (only up) a certain item. | |
how do i use the phpmailer() class to send html emails with images embedded in it my code is shown below [CODE]<?php require("class.phpmailer.php"); $msg = $_POST['msg']; $subject = $_POST['subject']; $mail = new PHPMailer(); $mail->IsSMTP(); $mail->Host = "smtp.branddesignexpress.com"; $mail->SMTPAuth = false; $mail->Username = 'admin@example.com'; $mail->Password = '*****'; $mail->From="mailer@example.com"; $mail->FromName="My site's mailer"; … | |
anyone know how to make the colour text box w2 change to a random colour when button clicked please ? [CODE] </html> <FORM NAME = frmOne> StartA X: <INPUT TYPE = Text NAME = x SIZE = 5 value ="0"> Two B Y: <INPUT TYPE = Text NAME = y … | |
Hello, I have a login form and a user can register their email address. But I was wondering how do I only allow certain email domains able to register? Like if I only want @gmail.com or @yahoo.com only This is my code right now [CODE] /* Email error checking */ … | |
Hi There, Im been using the opencart system to build an ecommerce site and one thing has been causing a great deal of hassle. When one adds a product image to the site, if it has a height lower than that specified in the opencart admin, whitespace is added to … | |
`[CODE]<form action="ScoreCardAlpha.php" method="post"> A: <input type="text" name="$X" /> B: <input type="text" name="$Z" /> C: <input type="text" name="$W" /> // read input data on $W , $X and check to see if (it or they{1,2,3 and byond}) has http// if so save after // // check all data for hacks. <input … | |
Hi, I am new to PHP and am trying to construct a page that will select files from a directory either manually or based on a time period in which the file was created. First of all, does anyone know of where I can get code that will do that? … | |
My file below checks if the user is ! logged in, and redirects to login page, or does nothing if user is logged in. [CODE]<?php if(isset($_COOKIE['SID'])) { $sid= $_COOKIE['SID']; $uid = $_COOKIE['User']; $lastip = $_COOKIE['Cname']; $_POST['SID']=$sid; $check = mysql_query("SELECT * FROM users WHERE SID = '".$_POST['SID']."'")or die(mysql_error()); while($info = mysql_fetch_array( … | |
Hey Guys! Wondering if maybe someone can help me out! I'm trying to do something with API and i dont know why my code isnt working basically i want the function to grab the user's ID# and then find them in the database. Now the only way that I can … | |
Hi, This code is from an older thread. I'm want to use the code, but I'm having some difficulty with the MySQL table creation. Here's the code: [CODE]<? session_start(); require("connection.php"); if(isset($_POST['submit_btn_name']) && $_POST['submit_btn_name']!='') { $title = mysql_real_escape_string($_POST['title']); $date = mysql_real_escape_string($_POST['date']); $author = mysql_real_escape_string($_POST['author']); $type = mysql_real_escape_string($_POST['type']); $description = mysql_real_escape_string($_POST['description']); $vidName … | |
hi! how to know if the person is online? i used the database code but it is not good idea for me. do i need cookies code? can anyone help me. | |
I want to ask two little questions... Question 1. How to put the below data in mysql through phpMyAdmin. "2912x1994" (without brackets). When I am updating this data in varchar assigned field, it shows error. Question 2. How to get the as it is data from mysql. like if we … | |
Two Sessions Questions I am developing a members site, and trying to make it template and DB driven, so it can be transportable between domains. Each page that is called makes use of include statements to bring in the constant information that is found on every page Sample page call … | |
Hi, i have two input box input box 1 : name is first input box 2 : name is second suppose if i enter "fresh" should be transliterated using google and the output in french should be displayed in the second input box. does anyone have any idea how to … | |
I need to insert a PHP snipet from Next Gen Links so they can start the link building process for me. I am new to this Anyone have an answer for me? | |
I am self taught in php only. now im starting to learn javascript as well. I have noticed so far that I can dynamically creat my pages, forms, validation etc... with js just like i can with php. (at least that seems true so far from what i am learning). … | |
So I am trying to work on securing a database that I use by using $_POST instead of $_GET. Here is how I was origianally doing it: [CODE=php] while($data = mysql_fetch_array) { echo '<a href="targetpage.php?id=' . $data['id'] . '">View</a>'; } [/CODE] The page that it goes to has the code: … | |
hello everyone Richard here i have a script that im having some issues with and was hoping to find someone here who can help me figure out the problem ok the script in php i get a notice when tryng to create an admin passowrd "User not verified" im using … | |
hi all im a little new to php code i has searched a lot of site in hope of being able to work this one out and now im stuck. i have a page for a product on it and the php file for it is[CODE]<?php //****************************** //Custom Code for … | |
Now, heading might be a bit misleading. If that is the case forgive me as I cannot think of best heading! i have database of books, that is e-books. Each table have page number and contents (to simulate true book). The problem is, I have to search for a word … | |
Hello all :) I want when a user entres the requested data, the script to insert those data in the prope table depending on the choise the user does from the drop down menu. Below is the code. [CODE]$editFormAction = $_SERVER['PHP_SELF']; if (isset($_SERVER['QUERY_STRING'])) { $editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']); } … | |
im using a search form to serach my sql database to return on the requiered infromation but it seems to retive all the info, what i wnat the serach to do is if some1 types in say nokia and n97 for it to return just the results for nokia n97 … | |
Well i was wordering how can i do one file for whole site or with includes. Example i see some sites have index.php?page=register etc or index.php?page=portofolio How can i do that without if else because i have problems with it. | |
Hello, I am trying to secure a wordpress ecommerce page. I need [url]http://mysite.com/products-page/checkout/[/url] to be redirected to [url]https://mysite.com/products-page/checkout/[/url] So, I added the following line to my .htacces file and put the .htaccess file in the document root:[ICODE]RewriteRule ^products-page/checkout/$ [url]https://mysite.com/products-page/checkout/[/url] [R][/ICODE] It did not do anything. I can still go to … | |
Plz help how i can create an upload page in php. hepl plz | |
i am retrieving a $_GET variable date: $month= date(m, $date), is there a way to retrieve this and make it convert to its equivalent $month= date(F, $date)?? i need the variable info but i need to get the full textural representation of the month not just the number. And im … | |
I dynamically create text box with java script and post the value in next page by IE but when i use mozila or google chrome it does not work. The script is as follows function addRowToTable() { var tbl = document.getElementById("tblSample"); var lastRow = tbl.rows.length; document.inp_form.total.value= lastRow; var iteration = … |
The End.