39,323 Topics

Member Avatar for
Member Avatar for jamila allagui

hey everybody ; i want to hide some tabs in the menu for users according to their privileges ; my table : user (id, name , pwd , state , histotic , report) state , historic and report ill take values : yes or no . and according to that …

Member Avatar for Webville312
0
180
Member Avatar for andrew0136

Hi All, Need help with something, Im newish to PHP so have very limited knowledge. Basically I am making an admin panel for a friends beauty website. I have two different tables in my database, categories +----+----------+ |cID | cCat | +----+----------+ | 1 | Skin | | 2 | …

Member Avatar for annaharris
0
165
Member Avatar for davy_yg

Hello, I wonder how to create the page view. For example I would like to show only 5 rows or 10 rows of the columns. http://www.masterlink.co.id/product_manager.jpg product.php <?php include('../includes/koneksi.php'); //Hapus berita // undefined index: mode //echo $id; if (!empty($_REQUEST['id']) && !empty($_REQUEST['mode']) && $_REQUEST['mode'] == "delete") { $id = $_REQUEST['id']; $result …

Member Avatar for annaharris
0
201
Member Avatar for ferdinandmucos

How do I post the following through a form? $answers = $_POST['selected_answers$questionNr']; Every time I post the browser displays the following: I see the following error Notice: Undefined index: selected_answers{$questionNr} This is the code I am using to $_POST the form output: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> …

Member Avatar for ferdinandmucos
0
285
Member Avatar for phfilly

Hi all! I have a problem which I can't seem to fix. I would like to know is it possible to send a normal JS variable to a php page. I've tried the following and nothing seems to work. <input type="submit" value="Bookmark" onclick="bookmark();"> function bookmark() { var pageNum = 2; …

Member Avatar for phfilly
0
294
Member Avatar for geneh23

Hey everyone, Sorry if these files seem familar. I have an issue with a certain date that won't change along with the rest. For example: "Sun., Sep 16th, 2012 6: 26 PM" that's the way the code is supposed to read but there is one section that won't change and …

Member Avatar for geneh23
0
490
Member Avatar for crazymidget01

I appologise if this is a redundant question, but I have been trying to figure out this problem for hours! I am trying to get a contact form to send an email from my website. The "message failed" error keeps happening even though I do receive an email, except all …

Member Avatar for LastMitch
0
179
Member Avatar for HasNor

hi all..actually this is my first time to do script for sending email, i have simple script for running in localhost and it's work wint sending email to me..But in the window server it's doesn't work, because there are not setting yet. The problem here i don't know how to …

Member Avatar for LastMitch
0
148
Member Avatar for bLuEmEzzy

Hello, I'm planning to put a chatbox in my intranet, can you give me an idea if what should I do? Thank You God bless :)

Member Avatar for bLuEmEzzy
0
242
Member Avatar for riahc3

for ($i = 0; $i < count($_COOKIE); $i++) { echo ($_COOKIE[$i]); } Is there a reason this doenst work?

Member Avatar for diafol
0
152
Member Avatar for TimCadieux

I haven't had to do Php in about 5years and I'm having some trouble doing the simplest task. I use Javascript to send some parameters from a querystring to my page and so some may be 'undefined' I want to build a mySQL query based on these parameters, therefore need …

Member Avatar for TimCadieux
0
196
Member Avatar for abdulazeem
Member Avatar for xMatter

I am looking to modify my contact form (page template in WordPress) to display the SUCCESS message within the same space as the actual form. Sort of like an overlay of the 200px by 300x area, but without the form fields. Here is all the code: <?php if(isset($_POST['submitted'])) { if(trim($_POST['contactName']) …

Member Avatar for EvolutionFallen
0
200
Member Avatar for dbalas

Hi! I need help with sending html email with all the records from two tables. I tried joint tables but it doesnt work as it should... Here is what i have session_start(); if(!@$_SESSION["UserID"]) { header("Location: login.php"); return; } ?> <?php $con=mysqli_connect("..."); // Check connection if (mysqli_connect_errno()) { echo "Failed to …

Member Avatar for dbalas
0
195
Member Avatar for LaughingOtter

Hi! Long time no post, mostly because I've had to put the mobile coding aside for my real job. Plus some home brewing. And lots of pinball. I have run into a problem. I am developing an application where an Excel spreadsheet (or tab-delimited text file) can be read in …

Member Avatar for LaughingOtter
0
526
Member Avatar for nishi.ahmed2

how i can implement php code in my blogspot website name [text free](http://text-free.blogspot.com/). how is is it possible? i want add little programme in my blogspot site

Member Avatar for diafol
0
326
Member Avatar for ferdinandmucos

How do I Change the select option to check boxes in the following code: foreach($qas as $k=>$v) { echo "<input id='text' style='width:40%' type='text' value='".$v['question']."' name='questions[]' >"; echo "<select name='selected_answers[]'>"; foreach($v['answers'] as $answer){ echo "<option value='".$answer."'>".$answer."</option>"; } echo "</select>"; echo "<br/><br/>"; }

Member Avatar for ferdinandmucos
0
243
Member Avatar for davy_yg

Hi, How to revise the php code so that it could fits the subject for e-mail? Thanks. <?php require_once('recaptchalib.php'); $name = strip_tags(@$_POST['name']); $email = str_replace(" ", "", strip_tags(@$_POST['email'])); $phone = str_replace(" ", "", strip_tags(@$_POST['phone'])); $message = strip_tags(@$_POST['message']); if (@$_POST['submit']) { if ($name&&$email&&$phone&&$message) { if (is_numeric($phone)) { $privatekey = "6LfjvdcSAAAAAHNcKjYO5DhTNefxYZHYcfhtrvGC"; $resp …

Member Avatar for davy_yg
0
114
Member Avatar for ferdinandmucos

Having a text file: $string = '1) The most important feature of spiral model is: requirement analysis. risk management. quality management. configuration management 2) The worst type of coupling is: Data coupling. control coupling. stamp coupling. content coupling 3) One of the fault base testing techniques is: unit testing. beta …

Member Avatar for ferdinandmucos
0
948
Member Avatar for Carpetfizz

Hello! I'm trying to pass a variable from one .php file to another, through the use of a global variable. However, whenever I make a variable "global", the page does not load. Here is the snippet of code that is causing the problem. If more context is required, let me …

Member Avatar for LastMitch
0
253
Member Avatar for riahc3

Hello Im having problems setting a cookie in PHP (using the Magento platform). The page is at: http://example.com/step1 When I click on a link here, a iframe opens up. This iframe opens up and is located at: http://example.com/somewhereelse/index.html I check a checkbox or I dont. If I check it, a …

Member Avatar for LastMitch
0
238
Member Avatar for ivanichi

i have problem about while loop. this my code, error_reporting(E_ALL ^ (E_NOTICE | E_WARNING)); function multiexplode ($delimiters,$string) { $ready = str_replace($delimiters, $delimiters[0], $string); $launch = explode($delimiters[0], $ready); return $launch; } function my_replace($srch, $replace, $subject, $skip=1){ $subject = explode($srch, $subject.' ', $skip+1); $subject[$skip] = str_replace($srch, $replace, $subject[$skip]); while (($tmp = array_pop($subject)) …

Member Avatar for ivanichi
0
566
Member Avatar for dhani09

I'm trying to create something like a breadcrumb based on what is selected from a drop down list. For example if a user selects accessories from a list and then goes on to select from another drop down list scarfs. I want to be able to show: You selected accessories …

Member Avatar for diafol
0
199
Member Avatar for ferdinandmucos

The two arrays does not compare and compute by adding one for every similar and 0 if otherwise I don't know what is wrong with the codes, but to me is seems fine. What might be the problem? <html> <head> <title>Chosen answers</title> </head> <body> <pre> <?php //Posting of the chosen …

Member Avatar for diafol
0
166
Member Avatar for jethaya

here is the full page code sorry its bit long but i have no clue where i went wrong all i get when i run this is the page with its background and an empty text area basicly i am trying to get the info from a table in my …

Member Avatar for jethaya
0
336
Member Avatar for daniel36

I need a link in my project sothat if anybody click on that link ,he remain on same page and the link opened in new tab.for example i have a link <a href="http://www.google.com">google</a> on page mypage.php .when anybody click on google than he will remain on mypage.php and a new …

Member Avatar for daniel36
0
146
Member Avatar for davy_yg

Hi, When I try to save the form I wonder why location and description remains empty. I already fill the form with the necessary information. input_image.php <?php include('../includes/koneksi.php'); $id = isset($_POST['id']) ? $_POST['id'] : ''; $confirmation = isset($_POST['confirmation']) ? $_POST['confirmation'] : ''; $productname = isset($_POST['productname']) ? $_POST['productname'] : ''; $location …

Member Avatar for LastMitch
0
134
Member Avatar for Squidge

I have a very simple class for date display: class timing { public $today; public $year; function __construct() { date_default_timezone_set('GMT'); } function now() { return $this->today = date("D j M Y"); } function year() { return $this->year = date("Y"); } } I am pulling in using: $x = new timing(); …

Member Avatar for Squidge
0
115
Member Avatar for GlenRogers

Hi, I need to have a form with multiple image and description fields, say 15. So if 15 are filled in then it adds then it adds the images to 2 dirs(thumb and images) and saves the image pathname and the descriptions to the 2 mysql tables. I have this …

Member Avatar for diafol
0
208
Member Avatar for dbalas

I am developing an application for a client. What i need is, send updates with changed records to clients where the email that needs to be used is extracted from the database. What is weird is that i cant send it to all email addresses... Note that i dont have …

Member Avatar for dbalas
0
157

The End.