39,316 Topics

Member Avatar for
Member Avatar for nits4u

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 …

Member Avatar for nits4u
0
149
Member Avatar for manoj2161
Member Avatar for Atli
0
90
Member Avatar for waveguy

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?

Member Avatar for waveguy
1
104
Member Avatar for Jayakrishnan_gk

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 .....

Member Avatar for Calver
0
79
Member Avatar for CFROG

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 …

Member Avatar for CFROG
0
336
Member Avatar for potatosoftware

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 : …

Member Avatar for pritaeas
0
100
Member Avatar for Kadence

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 …

Member Avatar for Kadence
0
111
Member Avatar for masocha

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(); …

Member Avatar for network18
0
233
Member Avatar for masocha

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.

Member Avatar for network18
-4
64
Member Avatar for jyotidagia

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]

Member Avatar for pritaeas
0
72
Member Avatar for kira4

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" …

Member Avatar for kira4
0
100
Member Avatar for Folaju

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 …

Member Avatar for Folaju
0
201
Member Avatar for SKANK!!!!!

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

Member Avatar for SKANK!!!!!
0
144
Member Avatar for sam023

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!="") …

Member Avatar for network18
0
275
Member Avatar for dan1992

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 …

Member Avatar for Froger93
0
81
Member Avatar for rouse

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 ) = …

Member Avatar for kekkaishi
0
116
Member Avatar for vaultdweller123

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 …

Member Avatar for vaultdweller123
0
71
Member Avatar for Aamit

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 …

Member Avatar for Froger93
0
114
Member Avatar for Zack_G

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.

Member Avatar for Froger93
0
180
Member Avatar for sugumarclick

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 …

Member Avatar for sugumarclick
0
439
Member Avatar for CFROG

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 …

Member Avatar for CFROG
0
93
Member Avatar for Stefano Mtangoo

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] :)

0
85
Member Avatar for paranjyoti

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 …

Member Avatar for Stefano Mtangoo
0
59
Member Avatar for DaraPsy

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 …

Member Avatar for Froger93
0
172
Member Avatar for icon512

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 …

Member Avatar for Froger93
0
760
Member Avatar for whitestream6

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!!!!"; } ?> …

Member Avatar for pritaeas
0
207
Member Avatar for karthik.c

hi guys ,im trying to send serialized php object to c++ server. i dont have clear idea if it is possible to deserialize the php object in c++ code.i dont know how to convert it into c++ object and get the value out of it. when im running the server …

Member Avatar for karthik.c
0
1K
Member Avatar for menetas

i have this apache-php server runing with some php and mysql apps.. I also have this application that uses java and one module is running through RMI, and its automatically started by the init.d using a shell script... then it's visible through a port (which is configured on the module …

Member Avatar for network18
0
88
Member Avatar for web3

I have little upload script and i wonder how to rename a file if the file with same name already exists.

Member Avatar for hemgoyal_1990
0
83
Member Avatar for drewob4

I am currently working on a php site that pulls in data from a MySql server, Unfortunately the code I'm using to run the query to get the data from the server is causing a nasty parse error on my site, and I am having extreme dificulty sorting it out. …

Member Avatar for hemgoyal_1990
0
70

The End.