39,316 Topics

Member Avatar for
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
119
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
279
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
258
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
Member Avatar for CanadianGSX

First off, system specs : MAC OSX, PHP 5 and MySQL 5.1.51 Trying something very simple and for the life of me it just won't work... HTML Form Code: Filename : AG_test_DB.html [CODE] <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="content-type"> <title>AG test</title> </head> <body> <form method="post" action="add.php"> <input name="fname" type="text"> <input …

Member Avatar for CanadianGSX
0
286
Member Avatar for gunderjj

I am having a problem of getting a variable passed from one page to another. On the first page there is a drop down menu populated by sql. [CODE] $result = mysql_query ("select Name from dba.wx_faq_backup where Name like '%dev%' group by Name") or die (mysql_error()); //$result = mysql_query ("select …

Member Avatar for gunderjj
0
170
Member Avatar for dee987
Member Avatar for jakizak
0
32
Member Avatar for jakizak

Hi guys, me again. Having an issue with a multiple select form object that is generated through PHP and retrieves and displays MYSQL values. it displays and retrieves correctly and PHP produces is correctly, however, the form submission to post the values to MYSQL do not, instead it posts the …

Member Avatar for jakizak
0
199
Member Avatar for Dragazarth

Im new to php so I decided to make site to test what i have learnt so far, nothing fancy just a test of php skills.. So I created a MySQL database (also new to), with a schema called items, a table called things, with 10 columns, idthings being the …

Member Avatar for diafol
0
832
Member Avatar for unixmonkey

I work for a government department that stores a fair amount of private data in a database.In an attempt to secure database access, we have created a database table that contains all of the database logins and passwords. We have also created a class called "db_connect.php" which contains the login …

0
65
Member Avatar for harshavardhan12

I have a form which is developed in php with captcha. Problem is when the captcha is wrong the form data which user entered is losing, which I don't want. I want to store the form data when the captcha is wrong. Thanks in advance.

Member Avatar for chrishea
0
41

The End.