39,320 Topics
| |
Not sure this is the best place to post this: I'm an experienced C++ oop developer wanting to develop my own semi-complex website ( e.g. with very nice GUI and graphics in general). I've used Qt for C++ GUIs I'm a newbie to web development, and after researching languages, it … | |
ei could someone help me with my problem. I got error running my projects on localhost. I dont know what caused this, but this problem occured when i replace my wampserver2.0c to the latest version wampserver2.0i. before there is no error it works fine. but now when i logged in … | |
Hello all. I've got this upload script, working just fine. [CODE] <?php error_reporting(0); $change=""; $abc=""; define ("MAX_SIZE","400"); function getExtension($str) { $i = strrpos($str,"."); if (!$i) { return ""; } $l = strlen($str) - $i; $ext = substr($str,$i+1,$l); return $ext; } $errors=0; if($_SERVER["REQUEST_METHOD"] == "POST") { $image =$_FILES["file"]["name"]; $uploadedfile = $_FILES['file']['tmp_name']; … | |
| Hi, I am getting 3 warning messages below: Warning: mysql_free_result() expects parameter 1 to be resource, null given in J:\xampp\htdocs\propertypages\resultsForSale.php on line 660 Warning: mysql_free_result() expects parameter 1 to be resource, null given in J:\xampp\htdocs\propertypages\resultsForSale.php on line 662 Warning: mysql_free_result() expects parameter 1 to be resource, null given in J:\xampp\htdocs\propertypages\resultsForSale.php … |
hey guys i m trying to retrieve data frm Db.. Its a very simple query what cant understand whats going wrong with the code. It shows "[I]Parse error: parse error in C:\wamp\www\php\table.php on line 35[/I]" here is the code: <?php // creating table include "var1.php"; mysql_select_db('wiley'); $qry="SELECT movie_name, movie_leadactor, movie_director … | |
how to store a hash table in the disk ? it is a general ques ans pls.. | |
Hi, I am new to this forum, actually this is my first post ever on any forum. I joined because I would like to send a post to a facebook account via php script. Has anyone done this? | |
Hey i'm a newbie.... Just started using php.... Been a month now !!! I use notepad++, firebug and a wamp server for all my development work.... Can anyone suggest good tools that'll make my work easier... and also a good debugger ..... | |
Does anyone know of a php based forum that is easily customizable to work with an existing user base so that members don't have to register or sign in a second time when they access the forum? I heard that this is possible with phpbb3 but I haven't seen anything … | |
Hi there, I intend to create a dashboard on the web. You might already know about Google analytics : my application would resemble that. However that would not be easy unless I can find charting + grid controls. etc. Any suggestion ? I also wonder after discovering this application : … | |
I'd like to turn PHP off within a folder, with the exception of certain files (e.g. disabling PHP for all files but test1.php and test2.php, or test*.php). I believe PHP can be turned off for a folder by placing "php_flag engine off" within that folder's .htaccess, but how can I … | |
Ok here is my code for the authenticate page. When l log in it comes on blank. [CODE]<?php if(isset($_POST['log'])) { $username = $_POST['username']; $pass = $_POST['passd']; include("connectOrder.php"); $sql = "SELECT * FROM users WHERE user_name='$username' AND password = '$pass' AND access_level != 0"; mysql_query($sql); $num=mysql_num_rows($sql); if($num == 1) { session_start(); … | |
Ok l am coding a simple PHP & Mysq session based athentication. l have done numerous of these before with success. Sadly this one cant run,. Someone pliz send me the correct code. | |
could someone point out the error in the followin php/mysql code [code=php]$strSearchVal = $_GET['q']; //database connection.. //... $strSQL = "SELECT DISTINCT area FROM hospital where area like '%'+ $strSearchVal; "; $result = mysql_query($strSQL); while ($arrThisRow = mysql_fetch_array($result )) { echo '<li>' . $arrThisRow['area'] . '</li>';[/code] | |
Don't know why my coding appear this error: "Notice : Undefined index: PK in c:\easyphp1-8\www\associationdeleteprocess.php on line 24" But I still can delete my database. Who can help me to solve this problem? This is my "AssociationDeleteProcess.php" coding: [CODE]<html> <head> <title>Index</title> </head> <body background="E-Filing%20Management%20System%20Picture/Snow.gif"> <p align="center"> <img border="0" src="E-Filing%20Management%20System%20Picture/logo-RR-gif.gif" width="957" … | |
hi i keep getting this error on my php page Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/internal/public_html/includes/xpage_admin.php on line 871 Warning: mysql_free_result(): supplied argument is not a valid MySQL result resource in /home/internal/public_html/includes/xpage_admin.php on line 877 the code below works perfectly on my test … | |
how do i i figured out how to make one now i need to know how to delete the directory(and everythin thats inside it) WITH PHP | |
This is my Stored Procedure DELIMITER $$ [code=mysql] DROP PROCEDURE IF EXISTS `call`.`sp_login`$$ CREATE DEFINER=`root`@`localhost` PROCEDURE `sp_login`(userid varchar(50),pass varchar(50),out chk int(11),out user_alias varchar(50),out user_tariff varchar(50),out c_credit decimal(15,5),out r_reseller varchar(10),out r_level varchar(10),out c_tariff char(2)) BEGIN select id into chk from cc_reseller where useralias =userid and uipass=pass and level!=0 and activated!='0'; if(chk!="") … | |
it say theat he error is in line 16 i dont no wat error is :( plea help [CODE]<?php if($_POST['post']) { //gat data $title = $_POST['title']; $body = $_POST['body']; //chec fot existance if ($title&&$body) { mysql_connect("localhost","root","")or die(mysql_error()); mysql_select_db("dan")or die (mysql_error()); $date = date ("Y-m-d") //adaugarea inoutati $insert = mysql_query("INSERT INTO … | |
I have be struggling to turn the below while loop into a foreach loop with no result, so I am asking for help here on how to do this. [code] $query = "Select * from TIME_TABLE Where Extract(month from DATE_FIELD ) = DATE_FORMAT(NOW(), '%c') and Extract(day from DATE_FIELD ) = … | |
i had problem running my projects on localhost. why does i cant access some of the page? there will be an error that says apache has encountered some serious error and need to be closed. this problem started after i replaced wampserver2.0c to the latest wampserver2.0i. Is there a problem … | |
Hi, I want to create script like in facebook. When we log into facebook, go into any friend's profile Their gift button , show gifts with pagination. when click on image and ok button it save into database. Any sample demo script ? How to create script like this? Please … | |
Hi, I am using str_replace to scan through pages and replace, for example; [gallery] with the actual gallery page using an include command. For example; [gallery] Once this is located it's replaced by include('modules/gallery/index.php'); How can you do this (and for multiple ones, [gallery], [enquiry]? Thank's very much. Zack. | |
Hi All, I went Through the tutorial of zend framework. . I can able to validate the forms outside the index controller. But the same form which is called in index controller is not validating. I searched in web but none helped me. . I wanna know why the form … | |
I'm having a few problems with a function that I would like to call from within a while loop. Obviously I can't include the function itself within the loop but it seems to me that the function requires variables created by the loop so calling the function from within the … | |
I didn't write it, but I found it in zend's web. I would like some guys who are acquainted with Ajax to comment on it: [URL="http://devzone.zend.com/article/1581-Ajax-Chat-Tutorial"]here we Go[/URL] :) | |
Hi All, In FCK Editor, we can upload images. When we go to the "FCKEditor - Resource Browser" window after clicking on the "Browse Server" button, we can see a list of images uploaded earlier. Here, we can also create folders and store images. In my application, users use this … | |
Hello guys, I have a simple form with 2 input fields (name, age). On submit the values should be sent to the php file where I print them. The problem is that on submit the php file is not rendered - IE just shows me the php code, Mozilla doesn't … | |
Hello all! I came here through Google searching for PHP load balancing... and got to this thread: [url]http://www.daniweb.com/forums/thread171839.html[/url] I am trying to do something similar, but what I'm trying to do is a one time, one day, quick and cheap load balancing solution using PHP. The idea is to use … | |
This is my script, which is intended to show a different page depending on day of the week. [CODE]<html> <? error_reporting(E_ALL);?> <body> <? $i=$_GET['day']; switch ($i) { case 0: include("2.php"); break; case 1: include("3.php"); break; case 2: include("4.php"); break; case 7: include("5.php"); break; default: echo "page not found!!!!"; } ?> … |
The End.