39,323 Topics

Member Avatar for
Member Avatar for JustmeVSI

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 …

Member Avatar for JustmeVSI
0
443
Member Avatar for Raf8

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 …

Member Avatar for Raf8
0
116
Member Avatar for lbargers

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 …

Member Avatar for diafol
0
136
Member Avatar for RoseMary3

i am looking for some help creating a php script that allows users to vote up (only up) a certain item.

Member Avatar for jon44
0
78
Member Avatar for plasteezy

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"; …

Member Avatar for pritaeas
0
180
Member Avatar for Kniggles

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 …

Member Avatar for ko ko
0
199
Member Avatar for andrewliu

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 */ …

Member Avatar for andrewliu
0
146
Member Avatar for dantheman50_98

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 …

0
120
Member Avatar for Kniggles

`[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 …

Member Avatar for mschroeder
0
205
Member Avatar for xq1

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? …

Member Avatar for xq1
0
154
Member Avatar for Brianbc

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( …

Member Avatar for theonly
0
2K
Member Avatar for eovogt

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 …

Member Avatar for eovogt
2
120
Member Avatar for ourloop

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 …

0
75
Member Avatar for canterorist

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.

Member Avatar for vaultdweller123
0
50
Member Avatar for mohansinhf

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 …

Member Avatar for pritaeas
0
82
Member Avatar for showman13

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 …

Member Avatar for showman13
0
112
Member Avatar for 360anish

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 …

Member Avatar for 360anish
0
280
Member Avatar for dunnjoshua

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?

0
63
Member Avatar for fuston05

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). …

Member Avatar for chrishea
1
253
Member Avatar for nduarte

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: …

Member Avatar for chrishea
0
119
Member Avatar for smartmedia

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 …

Member Avatar for smartmedia
0
327
Member Avatar for bristolspider

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 …

Member Avatar for Setvir
0
198
Member Avatar for Stefano Mtangoo

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 …

Member Avatar for Stefano Mtangoo
0
87
Member Avatar for freiheit

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']); } …

Member Avatar for hielo
0
176
Member Avatar for raf08

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 …

Member Avatar for ryan-t
0
115
Member Avatar for ZozOQ

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.

Member Avatar for ZozOQ
0
285
Member Avatar for ryy705

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 …

0
63
Member Avatar for gazzy1
Member Avatar for fuston05

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 …

Member Avatar for fuston05
0
81
Member Avatar for Tan Sarkar

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 = …

0
51

The End.