39,323 Topics
| |
hi ,,, i have create php page code for show booking online and for free seat is come green color if paid red color and... blah blah is working fine but can you fix it to be better and fast browseing page this PHP file and MySql [ATTACH]17504[/ATTACH] [ATTACH]17505[/ATTACH] waiting … | |
I'm building a portal system for my company and need someway of grabbing the windows username of the person logged on accessing the portal. Setup... Apache & PHP on Windows. This is VITAL so any help is MUCH appreciated. I've tried echo $_SERVER['REMOTE_ADDR']; - returns IP, not username echo $_SERVER['AUTH_USER']; … | |
Hi, I have this script [CODE]<?php require_once("includes/connection.php")?> <?php require_once("includes/functions.php")?> <?php if (intval($_GET['subj']) == 0){ redirect_to("content.php"); } $submit = $_POST['submit']; if (isset($submit)){ //for validation $errors = array(); $required_fields = array('menu_name', 'position', 'visible'); foreach($required_fields as $fieldname){ if (!isset($_POST[$fieldname]) || (empty($_POST[$fieldname]) && !is_numeric($_POST[$fieldname]))){ $errors[] = $fieldname; } } $fields_with_lengths = array('menu_name' => 30); … | |
| I want to do a check for game servers if they are online or not. I tried using this method but it gives me false-positive: [CODE]if(! $sock = @fsockopen("udp://".$ip, $port, $errno, $errstr, 5)) { //offline } else { //online fclose($sock); } [/CODE] I tried to enter random IP addresses and … |
--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 'Resource id #10' at line 1--- [code] <html> <body> <form action="login.php" method="post"> <div> <table width="100%"> <tr> <td><img src="Logofinalcopy.gif"></td> </tr> <tr> <td bgcolor="aqua"><h2>Login</h2></td> </tr></table> <table align="right" … | |
Hi, I have made a log in script that checks the database for username and password. I have everything working for the users (they must be logged in to access member.php). Now I have admin.php redirecting to a different page, but how do i keep users OUT of that page? … | |
[B]What is wrong with the "update" row :-O.... it is showing some syntax error !! plz sombody rply soon !!!!!! [/B] [CODE]$sql="SELECT * FROM contact"; $result=mysql_query($sql);?> <table align="center" width="700" border="0"><tr><td><?php echo "<form name='form1' method=post action=''>"; echo "<table border='0' cellspacing='0' cellpadding='2' width='600' align='center'>"; echo"<tr bgcolor='#ffffff'>"; echo"<td> </td>"; echo"<td align='center' bgcolor='#FFFFFF'><strong>emailid</strong></td>"; echo"<td align='center' … | |
here in my page "eg3.php" ..."NEW" and "Delete" button are working fine ... but when i click "edit" button ... the "update.php" page opens but with empty textboxes as if i have to insert NEW data ... that is the problem... the text boxes should display data of checked row … | |
Photo Gallery Code. This code is show all the images from the images folder with filename ending with "_thumb" When i run this code its working but i a getting an error as "[COLOR="Red"]Notice: Undefined variable: count in C:\wamp\www\photogallery\AutoGeneratingGallery\index.php on line 58[/COLOR]" I am using Wamp server 2.0 Please some … | |
Hi All, I have javaPowUploader for multiple file upload. I am able to upload file upto 4GB after php setting. But how can i upload file greater than 4GB? | |
Hi there, i've the strings, who containts this: "asgaasg, gasgasg, saxx" or "asgaasg, saxxss". And I need always to get only the part of the strings for the last comma, so in th first example it is: "saxx" and in the second "saxxss". I tried to get that with using … | |
Hi, I need som assistance placeing an HTML table within a PHP script. I thought I could just echo it, but I am getting a parse error. Here is the PHP code: (the parse error comes on line 339 <?php /* declare some relevant variables */ $DBhost = "localhost"; $DBuser … | |
I have this code: [CODE] function parse_aggregators_xml($aggregators_xml) { $simple_xml = new MySimpleXML(); return $simple_xml->xml_load_string($aggregators_xml, 'array'); } $xml = file_get_contents(XML_TEMPLATE); if (empty($xml)) return false; $data = parse_aggregators_xml($aggregators_xml); $data = json_decode(json_encode($data)); echo "<pre>";print_r($data );echo "</pre>"; [/CODE] the output of the xml is like this: [CODE] stdClass Object ( [aggregator] => Array ( … | |
hi... i used the following links to download apache n php compiler/interpretor....but find no exe file or setup in downloaded folder... plz anybody give me the exact link by clicking whixh i could download the folder with exe files of both.... [url]http://www.php.net/downloads.php[/url] [url]http://httpd.apache.org/download.cgi[/url] | |
Hi I have a session variable I wish to display in the title of a web page. This works well with IE. However, when I switch to Firefox it only works on my personal server. And not when I go online using Firefox. Can anyone tell me why? [CODE]<?php echo(ucwords($_SESSION[fullname])); … | |
hi.... can anybody give me link for php compiler exe file???? and mysql...whateva needed to build a web application.... i'll be thankfull.... | |
I was following this tut. on how to install Apache, PHP, Mysql, and PHPmyadmin. I need a bit of help! I get a [B]"Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\mysql_test.php on line 15"[/B] everytime I test the mysql thing. What ive … | |
Hi Everyone, I want to develop a tool in which I will input the following details 1.Total Area of your house roof. 1.Direction of the Roof of your house 2.Average Monthly Power Bill 3.Style of the Roof (wood shake, foam, rolled, spanish tile etc) 4.How steep is the Roof slope … | |
Hi, We run three Online Shopping Carts. All the Shopping Carts are run on Zen Cart. For all the three Shopping Carts, we use only one PAYPAL Account. PayPal Pro is configured in all the three. There is no problem with two Shopping Carts. We face problem with One Shopping … | |
| Hi All I am trying to add a no under 18's feature to my register page. I have got a simple function which uses the year of birth but I am not sure what to do for the day and month. Here is the code. If someone could help me … |
Hi, I have this error: Notice: Undefined index: menu_name in C:\wamp\www\widget_corp\create_subject.php on line 16 this is the code: [CODE]<?php require_once("includes/connection.php")?> <?php require_once("includes/functions.php")?> <?php //for validation $required_fields = array('menu_name', 'position', 'visible'); $errors = array(); foreach($required_fields as $fieldname){ if (!isset($_POST[$fieldname]) || empty($_POST[$fieldname])){ $errors[] = $fieldname; } $fields_with_lengths = array('menu_name' => 30); foreach($fields_with_lengths … | |
I need to query data from a table accourding to user level to genarate a menu list for different user levels, the code worked well with (session->username) but when I changed to (session->user_level) it does not want to work. Any help will be appreciated. Here is my code: [CODE=php] <?php … | |
Alright, so I have been working on building a photographer a website. She requested that she would like a page that would allow users to log in and view their proofs and only allow THEM access to their own pictures. I have successfully created a log in page using sessions … | |
Is there a way you can detect if an incoming referrer is from a url using https? I know you can detect http but it doesn't seem to show anything for https. | |
hello.... i was completed login website. but client said some times user account over riding. showing another user login information. so how it solve. i was checked all of my code but there is no chance to show another user information. is there any chanse to over come this problem … | |
Hi friends I am working on a project where I need to show results based upon user queries.I have created the pages,but results are not showing.as I am new to php I can't figure where the problem is. Here is the code [code=php]<html> <head><title>Showing Results</title></head> <body bgcolor="#666666"> <?php include_once "connection.php"; … | |
I am trying to show two hidden <div> (lines 54 & 55) depending on the value of a session variable. I know the "if" statement is working because the alert tests I have do show when the code is run. The "Viewing all whose payment has NOT been confirmed." should … | |
Hi! Sorry for my bad english! How to make one php file that will make a picture with some text, numbers...? How to make it if user doesn't have font that is used in this picture? How to make it with different, that one letter be largest that the second … | |
can anybody help me for making a login page .... only after successful login (with userid and password provided to user) he will be allowed for further pages. here i want to display email ids' information used by a company....the user can delete or update the emailids or can make … |
The End.