39,402 Topics

Member Avatar for
Member Avatar for davy_yg

[CODE] session_start(); // undefined index: login if (!isset($_SESSION['login'])){ echo "Anda tidak berhak mengakses halaman ini."; exit(); } //Fungsi baca data dari database [/CODE] Hi, Whenever I press eventmanager, the following error appears: "Anda tidak berhak mengakses halaman ini." What codes should I write so that I could pass the echo? …

Member Avatar for davy_yg
0
249
Member Avatar for DanniGirl

Hi! I've been reading this for hours and I can't find the error. Obviously I'm brand new at reading codes so can anyone help me? I think the error is in the following line (under logo config). Thank you so much! // logo config ----------------------------------------------------// [CODE]function simple_logo(){ $src = (get_option('Simple') …

Member Avatar for DanniGirl
0
76
Member Avatar for davesmith437

Hello, Despite much searching, I've hit a wall with trying to get a varying number of records inserted into a database. Here's what I'm trying to do..... I'm building an online sign on site for races at a sailing club. For the sign on page, I want to make it …

Member Avatar for davesmith437
0
239
Member Avatar for sibymary

fine_per day=1 from book_due date and returned_date as number of days in which fine is added to get the fine............ how this can b done in php.what is the formula for calculating the fine

Member Avatar for diafol
0
61
Member Avatar for sammry

I am using a sms site's api to provide free sms to my site's visitors, as this site has provided me http api and based on that i developed these 2 following pages. freesms.html [CODE]<html> <head><title>Send Free Sms</title> <script language="Javascript"> function validate() { var valid = true; if (document.formvalidate.FieldData1.value == …

Member Avatar for cereal
0
303
Member Avatar for mehargags

I'm using [URL="http://colorpowered.com/colorbox/"]colorBox[/URL] to show up a dynamically populated Image. I need to show one image as the Thumbnail & when this thumbnail is clicked a lightbox opens and a group of images slide inside it.. ColorBox uses rel tag to group the images that are displayed, I need to …

Member Avatar for KickingHorse
0
274
Member Avatar for alexstanhope

I have a set of 4 HTML list items and I'd like to shuffle the order they appear in once a week. I have found the following which could be used - but at the moment, it only returns one list item - how could I modify it to show …

Member Avatar for cereal
0
91
Member Avatar for KIM333

My doubts are: when the code of functions.php (wordpress) will be executed? can I declare there global variables to use them in other functions? I'm trying to understand the code of a function which initialize some parameters and start with this code: [CODE]if ( $_GET['page'] == basename(__FILE__) ) { ...}[/CODE] …

0
79
Member Avatar for ptermourra

Hello Everyone I have a simple form posting to mysql database. I set one of the fields to be Text Area. I have and HTML Link Code that needs to be in that field. When I upload he data to the db, my " gets hashed out a \ gets …

Member Avatar for didier_m
0
375
Member Avatar for kanchana Mala
Member Avatar for karthik_ppts
0
61
Member Avatar for HemantPHP

I have one server with zend application and for that application I want to create CMS (using drupal). So problem is how can I put both drupal & zend source. [url]www.domainname.com[/url] (which working into zend framework). Now I want to create CMS for this [url]www.domainname.com[/url] & zend application run which …

0
62
Member Avatar for chiiqui
Member Avatar for AleMonteiro
0
115
Member Avatar for Virangya

hi, i need to subtract one date form the other and take the difference in minutes or seconds.. i'm getting the first date from the data base in 'Y-m-d H:i:s' format and second date is the current date (same format). and i want to know the difference between them in …

Member Avatar for lyrico
1
14K
Member Avatar for himanjim

I wanna create subdomains dynamically than manually I've got this script but can't make it work...I've got my website hosted on a server..Can anybody tell me that is it [B]possible[/B] to achieve that... [CODE]<?php ############################################################### # cPanel Subdomains Creator 1.1 ############################################################### # Visit [url]http://www.zubrag.com/scripts/[/url] for updates ############################################################### # # Can …

Member Avatar for stewart2011
0
264
Member Avatar for jollywood

I am fairly new in this world and I still have a lot to learn. I am making a dynamic page where I have to load 7 images for the database and I'm not even getting if anyone can help me. thanks <?php require_once('../Connections/ligacao.php'); ?> <?php if (!function_exists("GetSQLValueString")) { function …

Member Avatar for vibhaJ
0
174
Member Avatar for TheHaxx0r1215

Alright, I have a members area, area.php, and I used mysql to find the userlevel and display content depending on the userlevel, 1 for user, 2 for admin. I made it, but it displays both the user and admin for 1, and 2. [CODE]<?php // Members Area // session_start(); $usernamee …

Member Avatar for kanchana Mala
0
251
Member Avatar for jacob21

Hi, I am uploading multiple file acc. to the limit enter in the textbox. Suppose in a text box if i enter 2,then two browse button can upload two different file having different format 1st file=only jpg 2nd file=only text file I completed all the validation part of both file.what …

Member Avatar for decade
0
78
Member Avatar for grozadani2007

Hello, I have a code that only add an image in my database and I want to add more, but only one form. Can anyone give me some ideas how to do this? thanks

Member Avatar for sl_bart
0
4K
Member Avatar for decade

I created a program using php that will attach a file if you click "attach" button. the problem is that i always receive this message when i try to attach a file even though I didn't create an error message that states this "attachment failed. this may be due to …

0
85
Member Avatar for davy_yg

I have the following codes: [CODE] <?php // a) function fnTripple($a) { $a = $a * $a; return 3; } echo fnTripple(4); // b) $a = 5; $b = 5; // c) $b = $b + $a; // d) $d = $d + $b; $e = $e + $b; // …

Member Avatar for karthik_ppts
0
167
Member Avatar for calebcook

Hi. I'm looking for a script (in either JavaScript, PHP or both) where you enter the amount of servings you want for a recipe, and it'll calculate the recipe. I can't find a script anywhere! Can anyone help me? To see an example, go to [URL="http://tastykitchen.com/recipes/breads/plain-bagels/"]http://tastykitchen.com/recipes/breads/plain-bagels/[/URL] Thanks!

Member Avatar for calebcook
0
1K
Member Avatar for calebcook

Hi. I'm trying to multiply fractions. How can I take '1 1/2' and multiply it to get 3? (is there some special format like '1-1/2' that I need to use to multiply it?) Thanks

Member Avatar for calebcook
0
317
Member Avatar for kiwikarma

Hello, I'm trying to display a table in PHP that uses multiple MySQL tables with some repeated field names. [U]Master table field names:[/U] Name, Student Major, Course Major, Course #, Credits, Course Name This is what I have so far...but the variables in the loop are not working and I'm …

Member Avatar for diafol
0
141
Member Avatar for kittu.kishore

I want to learn a server side scripting language like php. But I don't know where to get started... Even getting started I could not understand where I should run a php file... I am good at html, css, and javascript... Can anyone say me how to get started with …

Member Avatar for chrishea
0
133
Member Avatar for Dredgy

Hello. I'm not sure if anyone will be able to help me with this, because I've been unable to find a straight answer on the internet, and I thought it would be something that loads of people would want to do. Let me make it clear I DO NOT WANT …

Member Avatar for AleMonteiro
0
142
Member Avatar for DavidB

Hi, folks. As you may have gathered from a previous post, I know next to nothing about PHP, so I have a very basic question: How do I force an exit from PHP? I have gone through a few books and come across the "die" and "exit" commands; however, they …

Member Avatar for Thomas.Fischer
0
383
Member Avatar for wlayy999

Recalling the history of Web development, Web development language used more and more simple, rich. This CGI from the previous C-class, the development of ASP, PHP, ASP.NET, JAVA, we can more easily develop more complex applications, coupled with the development of the IDE, you say you can make a Web …

Member Avatar for peter_budo
0
73
Member Avatar for SmallCucumber

I am a newbie to php, i occasionally find a problem, I open the page "index.php" on a chrome browser, then I left for lunch, then I come back and click the link in page "index.php", it did head to "login.php", but laterly I find a record in my database. …

Member Avatar for SmallCucumber
0
90
Member Avatar for sayedkhalid

how can i pass value of textbox into code iginator controller after submit. i get Disallowed Key Characters message. i have array of controls. or if you could provide some tips on how to get the posted values in controllers . in view [CODE] <form method="post"> <input type="text" name="Insert['name']"/> <input …

Member Avatar for diafol
0
130
Member Avatar for vidjin

Hi, I want a Jquery based Ajax solution for Uploading, Cropping and Saving Images... I have been trying to find it for 3 4 days but I am only finding tutorials and solutions with postbacks when cropping images. Please help. thanks

Member Avatar for vidjin
0
146
Member Avatar for dimkasmir
Member Avatar for m00ky
0
146
Member Avatar for abelingaw

I just uploaded my php files on my webhost, and begi editing the links in my index.php. And when I tried viewing my site, i receive the following errors. [CODE] Warning: include() [function.include]: URL file-access is disabled in the server configuration in /home/a4478641/public_html/index.php on line 3 Warning: include(http://abelingaw.site90.com/phavi/common.php) [function.include]: failed …

Member Avatar for jogesh_p
0
170
Member Avatar for vanzpaticawen
Member Avatar for vibhaJ
0
56
Member Avatar for doctorphp

Hi everyone. I watched Alex's PayPal IPN series and I was testing it on the PayPal IPN Sandbox and it won't work. Here is my code. [b]verify.php[/b] [CODE]<br />To verify your account click the button below.<br /><br /> <form action="https://www.paypal.com/cgi-bin/webscr" method="post"> <input type="hidden" name="cmd" value="_xclick"> <input type="hidden" name="business" value="upgrade@megainstrumentals.co.uk"> <input …

Member Avatar for diafol
0
195
Member Avatar for httpgal

I have a bit of code I'm using to generate a report from my MySQL database - what I want to do is email it out to multiple recipients (whose email addresses are also stored in the database). The email addresses (up to 12 of them) are located in fields …

Member Avatar for calebcook
0
290
Member Avatar for dpmattox

This is my first of I figure many threads. Before this year between Photoshop and Dreamweaver, I made HTML websites. I upgraded to notepad++ and Gimp/Photoshop and continued making HTML websites with occasional PHP for forms and such. I have my own private development server and it's not a recycled …

Member Avatar for chiiqui
0
340
Member Avatar for mary_forum

hi guys, i just want to add selected products into cart without payment gateway process.i want the coding tnx

Member Avatar for Stefano Mtangoo
0
150
Member Avatar for ABUMIN

hi, i am trying to make my own 'truncate' function for strings, in which if the string is longer than desired length, i should truncate and add '...', but if the truncation occurs in the middle of a word, there should not be any word pieces, just whole words, so …

Member Avatar for Stefano Mtangoo
0
74
Member Avatar for lyrico

Hello Guys, Can anyone help me to get time difference in PHP? For example: [code] <?php $Start = "09:18 AM"; $End = "04:10 PM"; $diff = ???? [/code] Can anyone show the code for $diff? thanks in advance and more power.

Member Avatar for Stefano Mtangoo
0
113
Member Avatar for garymae14

hi dear ! i would like to ask on how to create list box in php .. can u give me a full sample code .. from the start til end? thanks so much and more power to to u

Member Avatar for epixeltechno
0
128
Member Avatar for manchurianCEO

As I am adding google +1 button and such things, i am getting new stuff to add to my opening html tag. It is a real hassle having to go back and add the new links or piece of code inside the opening html tag. Can I feed the open …

Member Avatar for epixeltechno
0
196
Member Avatar for momo219

Hi peeps I wonder if someone can tell me about having includes inside of includes. Basically I have a $code_block =. "some small content" but inside this small content, I need to refer to another include, something like this: "page.php" if (...){ $display_block = "text text"; }else{ include('../code_block.php'); $display_block = …

Member Avatar for vibhaJ
0
102
Member Avatar for mukororokudo

Hi .. i need some help here .. i'm a 3rd year student of computer science .. and i'm pretty new to these stuffs .. my problem is i have to validate the the checkbox and i have to make computations from it .. here's the code : [CODE]<h1><center>LOAN AMOUNT</center></h1> …

Member Avatar for epixeltechno
0
143
Member Avatar for wolfgangcs

I have a friend with a dinner and he wants to take his iphone and add up how many drinks are being had by each specific person at the bar and store them with date stamps while adding how many drinks they have had total in the life of their …

Member Avatar for diafol
0
119
Member Avatar for andreas.cyp

I want to build a web app that student be able to enter his/her student id and shows his/her assigned advisor. I think that I 've to build a table in SQL with two attributes 'studendID' and 'advisorName'

Member Avatar for smantscheff
0
77
Member Avatar for smackthat9876

Hi there, I have a question related to this topic, i dont know if I should make a new thread or how to make a new thread. I am making an adult website and I just need a disclaimer and 2 buttons one that verifies age or one that redirects …

Member Avatar for smackthat9876
0
1K
Member Avatar for TheHaxx0r1215

PHP is a Server-Side Language, which means It processes commands through the server, and delivers the results either in HTML, or doing a certain server-side command, such as Creating a MySQL Database. You don't need to know HTML to put Text on a page with PHP in SOME Cases. Here …

Member Avatar for diafol
0
71
Member Avatar for digital_plunder

i m working with sessions.. i have problem with sessions here is my coding " <?php session_register("admin_id"); if($_SESSION["admin_id"]=="") { header("location: login.php"); } ?> " i want to register a session but when i use session_register function i got error ""Deprecated: Function session_register() is deprecated in C:\xampp\htdocs\xampp\c\admin\session_check.php on line 2"" help …

Member Avatar for vidjin
0
104
Member Avatar for woopi

I have a form with checkboxes [CODE]<input type="checkbox" name="yo[1]" value=1 <input type="checkbox" name="yo[2]" value=1 <input type="checkbox" name="yo[3]" value=1[/CODE] I want to to insert values into db exactly like this create table tablename yo1 tinyint default 0 , yo2 tinyint default 0, yo3 tinyint default 0 insert into table set yo1=value, …

Member Avatar for diafol
0
229
Member Avatar for TheHaxx0r1215

I am getting a [B] frustrating[/B] error with my PHP Code. I am not using short tags, or anything else that causes this error. I checked the brackets, they are all in place. Can you help me? [CODE]<?php require_once('recaptchalib.php'); require_once('config.php'); $privatekey = CAPTCHA_PRIVATE_KEY; $resp = recaptcha_check_answer ($privatekey, $_SERVER["REMOTE_ADDR"], $_POST["recaptcha_challenge_field"], $_POST["recaptcha_response_field"]); …

Member Avatar for diafol
0
106

The End.