39,320 Topics

Member Avatar for
Member Avatar for 064bct512

I am completely new in php for your information.I have a windows xp. I tried installing wamp, after its installation only one of the two services was running. I tried reinstallation and restarted the computer but still it didn't work. Actually apache server was not running. I clicked on start/remove …

Member Avatar for ShawnCplus
0
85
Member Avatar for UncleJoe

I'm all hosed up...most of this is pretty new to me, so please forgive my terminology. I'm using scriptaculous for the DnD stuff. Using AJAX I'm returning a variable from the server. The variable can be verified using alert(variable), but when I pass the variable as an argument it isn't …

Member Avatar for UncleJoe
0
207
Member Avatar for dwdata

I have this code: [CODE] $query = "SELECT * FROM Ev_Songs where id_Event='$id_Event' Order by Pos"; $results = mysql_query($query) or die("Error performing query2"); [/CODE] will return a result like this: Song_Title = "Song A", Pos = "2" Song_Title = "Song B", Pos = "4" Song_Title = "Song C", Pos = …

0
48
Member Avatar for sam023

Hello friends.. Help me out..!! this is my Procedure..which working fine in mysql...!! [code] DELIMITER $$ DROP PROCEDURE IF EXISTS `myp`.`insert_1`$$ CREATE PROCEDURE `myp`.`insert_1`(gname varchar(30),userid int,classtype int ) BEGIN if exists (SELECT * FROM 0_groups where groupName=gname AND USER_ID IN(userid,'0')) then SELECT 1 as error; else insert into 0_groups(groupName,classType,user_id)values(gname,classtype,userid) ; …

Member Avatar for blocblue
0
1K
Member Avatar for CFROG

For the life of me I can't get the current date to insert into my table. I would like a "submitted date" to be stored upon the creation of the record. I've tried countless different ways to achieve this and every time I get no results in the table, just …

Member Avatar for CFROG
0
149
Member Avatar for 83apple

Ok I posted before and you were guys were great, but when I added the fix it cause more errors, can you guys check this and let me know what is wrong with it please. Page 1 [ICODE]<?php require("./copyrightChecker.php"); $crCheck = "Your_Copyright_Goes_Here"; if ( CopyrightChecker($crCheck) == COPYRIGHT_IS_VALID ) { } …

Member Avatar for jcacquiescent27
0
123
Member Avatar for mbabaali

[code]<?php //The code is for selecting all patients records in the database where a particular month and year //This selects the database and connects to the database require_once('Connections/Database.php'); mysql_select_db($database_Database, $Database); if (!$_POST['monapt']| !$_POST['yearapt']) { die('You did not complete all of the required fields,<a href="monthlyrecords.html">Back to previous page </a>'); } $a=$_POST['monapt']; …

Member Avatar for mbabaali
0
96
Member Avatar for Venom Rush

Hi everyone I have a menu that I'm creating dynamically with links that have query strings on the end of them. Basically I want the menu item, that's related to the page the user is on, to be in a different colour to the rest of the menu items. An …

Member Avatar for Venom Rush
0
2K
Member Avatar for Toxikr3

Hi guys, I was trying to implement a friends script but I encountered this error Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'by) VALUES ('Toxikr3' , 'moderator')' at line 1 I …

Member Avatar for Toxikr3
0
141
Member Avatar for itsrahulk

Hi, I am trying to do url rewriting on linux server through .htaccess file in my root directory. the content of my .htaccess are [code]RewriteEngine on RewriteRule ^test.cleanurl(\/.*)*$ /test.cleanurl.php RewriteRule ^news(\/.*)*$ /news.php[/code] this is the news.php file [code=php]<?php require("class.cleanurl.php"); $clean = new CleanURL; $clean->parseURL(); $clean->setRelative('relativeslash'); //relativeslash is variable name $clean->setParts('id','page'); …

Member Avatar for Utte
0
150
Member Avatar for dwdata

I am getting some strange behavior with a PHP page I am coding: I have some code that displays a MENU (with the letters of the alphabet): [CODE] <FORM NAME="getletter" ACTION="Service_Dates_detail.php?id_Event=<?php echo $id_Event; ?>" METHOD="POST"> <table width="389" border="0" cellspacing="2" cellpadding="2"> <tr> <td width="49" class="style14">Filter:</td> <td width="315"><span class="style14">Select Song</span> <input type="hidden" …

Member Avatar for Menster
0
139
Member Avatar for sunilsinha

Hi All, I need to encrypt a PHP file and run that encrypted file through wamp server. Is there way that wamp can read/recognize encrypted files automatically without decrypting it. Any help in this regards will be greatly appreciated. Thanks.

Member Avatar for pritaeas
0
57
Member Avatar for Lolalola

Hi, When I am using one session all right. But now I have 4 sessions and if they click the Log Out error is thrown: Warning: session_destroy() [function.session-destroy]: Session object destruction failed in D:\wamp\www\index2.php on line 25 25 line is: session_destroy(); My code: [code] if(isset($_GET['Logout'])) { $query = 'UPDATE user …

Member Avatar for Lolalola
0
113
Member Avatar for rickya100

Hi everyone, The goal is to be able to extract a specific element (and all children of it) from a XML string and then to echo this to the page inside a hidden form element so that it can be posted to another page. I have tried to get the …

Member Avatar for rickya100
0
157
Member Avatar for K?!

Hi all I'm am using Netbeans 6.5 on ubuntu for programming PHP. When I create an instance of a class and type "->" after the variables name, I don't get to see any methods. Even when I press CTRL-Space, it only says "No suggestions"... Code templates do work (like typing …

Member Avatar for K?!
0
160
Member Avatar for MArun25039

Hello, I'm having an issue with a MySQL/PHP site I'm working on. I'm new to both. I've seen several posts that were similar or same but was unable to derive a solution based on my code. I have a form that will submit HTML code to a database. I know …

Member Avatar for guru12
-1
5K
Member Avatar for marjan_m

Hi, please check the following code; [CODE=html] <? session_start(); ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Admin Panel</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <link href="<?=$_SERVER['DOCUMENT_ROOT']?>/admin/stylesheet/adminstyle.css" type="text/css" rel="stylesheet"> <? echo $_SERVER['DOCUMENT_ROOT']."/admin/stylesheet/adminstyle.css"; ?> <script> function chk(name) { if(name == 'pro') { document.getElementById("content").src = "view_provinces.php"; } if(name == 'loc') { document.getElementById("content").src …

Member Avatar for dipak_passion
0
138
Member Avatar for punithapary

hi, I am creating code for registration form with description field and then i am trying to display all vales using table fields i gave td width as 50 wen i am displaying description if its having huge content its not taking limit its gets expanded but i want like …

Member Avatar for ryuslash
0
210
Member Avatar for vishalkhialani

Hi, Please see below code which I need to understand. I tried to find information on the php site and the manual and the php book I have but could not find it. Wht does this mean " => " [code=php] function emailusers_menu() { $item('admin/emailusers/compose/%')= array( 'title' => 'Compose a …

Member Avatar for vishalkhialani
0
128
Member Avatar for redbrad0

At some point around 8:30 this morning I am just noticing that the imagerotate function is no longer working on our server. This is a dedicated server so I have full control over it. Looking at PHPINFO I show that the GD Library is installed and enabled. Anyone have any …

0
44
Member Avatar for CFROG

I'm new to PHP and I'm some trouble writing to multiple tables from the same form. When I run the following script it will not write the data to XINFO but it will write to ATTRIB1. If I take ATTRIB1 out of the script it will work properly and once …

Member Avatar for CFROG
0
256
Member Avatar for dimplemodi

Hello! All, "Error in my_thread_global_end(): 1 threads didn't exit " I got this error when i m trying to access my site........ i m web developer so i hvan't any access to change in core part of PHP and MYSQL........ :sad: what should i do?????? :?: Please anybody help me …

Member Avatar for dimplemodi
0
95
Member Avatar for bimaljr

Hi I have installed Joomla and a plugin called sh404SEF. The plugin is to make sef url. My site was not using .htaccess file so my url was : [QUOTE][url]http://www.loyalindia.com/index.php?/Some-Section/newssection?itemid=125&mid=125[/url][/QUOTE] Now I have enabled .htaccess supprt and now my urls are like this : [QUOTE][url]http://www.loyalindia.com/Some-Section/newssection?itemid=125&mid=125[/url] [/QUOTE] As you see the …

Member Avatar for b89smith
0
127
Member Avatar for mani11
Member Avatar for darkagn
0
33
Member Avatar for dwdata

I have a table called "Ev_Songs" which has these columns: id (Primary) id_Event (int) id_Song (int) Pos (int) This table hold selected songs for a song set for an event. So if I have an Event thats id=3 there might be 5 songs selected as the set for that event: …

0
62
Member Avatar for cronika

As the title says, here is the code : [code=php]<?php $lvl=1; $xp=0; if ($xp <50) { echo $lvl ; }; if ($xp >51) { echo $lvl+1; } return $lvl; if ($xp >101) { echo $lvl+1; }; ?> <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post"> Xp : <input name="xp" type="text" /> <input …

Member Avatar for mrcniceguy
0
87
Member Avatar for nrbsneil

Hi guys, This may seem a little simple, but I'm new to html/php programming so here goes I have a listbox with six items on my page. I would like to call a different php file depending on what option was selected psudo code would be if selection = 1 …

Member Avatar for nrbsneil
0
171
Member Avatar for crohole

I have a script to crawl all link but in homepage..That can crawl internal n external link.. But that's just the matter. I want to crawl all internal link in all pages please tell me how to do it.. Here is all that I've got : [CODE] <?php if (isset($_POST['url'])) …

Member Avatar for blocblue
0
79
Member Avatar for NoID

Hello Guys, I would like to know if its possible or not, where i can have a text box which when i enter the ID and press submit it gets the email matching that ID. and sends an email, please note that i know how to send email, i just …

Member Avatar for sikka_varun
0
123
Member Avatar for Jintu

[code] <html> <head> <title>Grade Calculator</title> </head> <?php ?> <body> <?php $grade = $_POST["Quiz1"] * 0.05 + $_POST["Mid-Term"] * 0.30 + $_POST["Quiz2"] * 0.05 + $_POST["AL1"] * 0.05 + $_POST["AL2"] * 0.05 + $_POST["Participation"] * 0.10 + $_POST["Final"] * 0.40 ; ?> <?php echo "Grade Report: <br />"; echo "<br />"; …

Member Avatar for Jintu
0
3K

The End.