39,402 Topics

Member Avatar for
Member Avatar for jithusdani

Hi Folks, I have a login page and stored username and password in mysql as 'admin' and 'admin' respectivley. My problem is like if I am entering a username and paasword like ADMIN and ADMIN its get logged in I want restrict that.So please anybody have look at this..

Member Avatar for Atli
0
173
Member Avatar for hyderabadi

I am getting the following error when I tried to connect to the database. Can any one help to resolve this problem. Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'abc'@'rxsxllxr12.zzzzz.net' (using password: YES) in /home/abcd/public_html/Invoicesystem/includes/class.DBcore.php on line 62 Error in Query Execution.Error : Unable to Connect the Server216.120.228.13 MySQL Error: …

Member Avatar for cwarn23
0
135
Member Avatar for SKANK!!!!!

please help meWarning: mkdir() [function.mkdir]: File exists in..xxxxx/register.php. yeah yeah what is wrong here is my code: btw im at xxxxx/register.php [CODE]$documentroot = $_SERVER['DOCUMENT_ROOT']; if(mkdir($documentroot ."/". $username , 0777)) { $profile = $documentroot ."/". $username ."/index.php" ; $filegettingcopy = $documentroot ."/xxxxx/index.php" ; if (copy($filegettingcopy, $profile)) {echo "<br> You can access …

Member Avatar for SKANK!!!!!
0
3K
Member Avatar for shastry

I want to encrypt php code so that others should not modify. If i run that encrypted php file in the browser its functionality should work. I have used few softwares, with those i could encrypt php code but failed to run in the browser as php encrypted code is …

Member Avatar for edwinhermann
-1
156
Member Avatar for iThaos

Hello, Is there a way to create functions dynamically in PHP as such: [code=php] <?php $my_arr_conf = array( 'my_var' => 'This is my variable', 'your_var' => 'This is your variable' ); // Some code here where I can create the function // Maybe somehow with create_function(); ? // I was …

Member Avatar for iThaos
0
1K
Member Avatar for itsrahulk

Hi folks !! I got a project for developing the clone of the website [url]www.worldnews.com[/url] please help me in to getting start this as i have to develope it from scratch there is no help document available from the client side.from where should i need fetch the data or i …

Member Avatar for digital-ether
-1
94
Member Avatar for studioceasar

Hi All, I've been struggling with a number of different snippets of code to get the following script to force download. Everything I try won't connect. Unfortunately, because I'm such a novice, I can't find where the problem lies. Could anyone help me 'plug in" the right code to make …

Member Avatar for digital-ether
-1
142
Member Avatar for CFROG

I'm trying to make a list of friends that are NOT in address book. This returns all friends : [code] // Check for friends $frnd="SELECT * FROM friends WHERE my_id='$_SESSION[user_id]'"; $fres = mysql_query($frnd); $fnum = mysql_num_rows($fres); while($fr=mysql_fetch_array($fres)){ $friend = $fr['friend_name']; $friend_id = $fr['friend_id']; } [/code] This returns all friends that …

Member Avatar for CFROG
0
126
Member Avatar for mark2326l

This is my first project using JavaScript. I have a PHP page that loads text fields "if" called for. I thought JavaScript would be a great way to get the total of all Text Fields without Submit. The code below is an example of my problem. [CODE]<SCRIPT language = JavaScript> …

Member Avatar for mark2326l
-1
79
Member Avatar for unlimited2442

Hi, I'm new here, looking for some assistance... I am starting a new xbox clan, and I'm buillding the website for it. Normally I build my own websites and code them, but I wanted to go a bit more advanced than I usually do, and learn a little bit more. …

Member Avatar for Atli
0
86
Member Avatar for Xamas

I had a code, which was working OK. [CODE="PHP"]echo "<form name='pm_form' method='post' action='?inbox'>\n"; echo "<input type='submit' name='save_msg' value='Save' class='button' />\n"; echo "</form>\n"; [/CODE] Poor quality button, I changes to a well looking image: [CODE="PHP"]echo "<form name='pm_form' method='post' action='?inbox'>\n"; echo "<input type='image' src='button_save.png' value='Save' name='save_msg'/>"; echo "</form>\n";[/CODE] But the problem is, …

Member Avatar for Atli
-1
138
Member Avatar for emhmk1

Good Evening everyone. I work for a marquee firm and i am creating a php mysql components list for the assistance for loading equipment. SO far, the user can input a marquee size (eg: 6mx3m) in a form and we search the database and output the items required for said …

Member Avatar for diafol
1
145
Member Avatar for loudstil

hello to all, I wrote a foreach() loop and inside I added a variable which also increase but not as with the array that run in the foreach(), but somehow the for each also increases my variable: [CODE] $n = 0; while($row = mysql_fetch_row($GetItems)){ echo "$n<tr>"; foreach($row as $cell){ if(strstr($cell,"Images")){ …

Member Avatar for loudstil
-1
86
Member Avatar for gaz

hi i am following this etutorial and the code is not working and dont get why. There are two bits of code: [CODE] > <body> <? $sonnet76 = <<<HERE Sonnet # 76, William Shakespeare Why is my verse so barren of new bride, And keep invention in a noted weed, …

Member Avatar for gaz
-1
93
Member Avatar for just_me

hi guys. I got problem here. I built the system of weighted average method calculation based on php. Now, I'm the last part which sum of the value in html table. Basically, this is my coding:- [CODE] <?php session_start(); $con = mysql_connect("localhost","root",""); if (!$con) { die('Could not connect: ' . …

Member Avatar for CFROG
-1
488
Member Avatar for Stefano Mtangoo

Hi all, When you add integer ID primary key auto increment, it automatically makes ID for you. But I was pondering on what happens after deleting a record. Does the server automatically adjust all IDs for you or it remains un assigned? For example, I have inserted as follows +------------+-------------+ …

Member Avatar for Stefano Mtangoo
-1
144
Member Avatar for guruvarman

hi, I've coded like this for login Database. Its well working in my local host in offline.But not working Online in Plesk PHPMYADMIN MYSQL Database with same database name, username, password as below. and host name as mentioned in PHP server.. (provided db name, username & password are correct) [CODE]<?php …

Member Avatar for =OTS=G-Man
-1
80
Member Avatar for CFROG

This seemed like a good idea to me but it's not working out the way that I want ... I'm probably over-complicating it 8-) I'm trying to allow users to search for other users in their area and part of the search criteria gives you 8 different options to choose …

Member Avatar for fwdean
-1
181
Member Avatar for nadnakinam

hi, i'm using php 5.3. version for my site development. If i use this function "session_is_registred()", i' getting message something like warning(not actual warning message) as following "Function session_is_registered() is deprecated in c:/.../.php" how can i erodicate this message? help to accomplish it... Thnx...

Member Avatar for fwdean
-1
90
Member Avatar for ENetArch

All, Does anyone know if there is a package available to allow PHP programmers to store their PHP Objects / Instances into mySQL, and still allow them to be searchable? ie .. not serialized? Looking forward to your responses, E,

Member Avatar for somedude3488
-1
97
Member Avatar for valonesal

I would like to make it so that no matter what the client enters it will match words in the database. Example: they type [url]http://awebsite.com[/url] but only awebsite.com exists it still matches it and any combination such as they search awebsite.com and [url]http://awebsite.com[/url] is in the database it matches. Here …

Member Avatar for fwdean
-1
135
Member Avatar for tarunkhatri

Hello, I have a php page with a form(grid) which is submitting values to the database. [CODE]<form action="<?php echo $_SERVER['PHP_SELF']?>" method="POST"> [/CODE] As soon as i press submit, data is updated in the database but I still see previous values in the form(grid), and manually need to refresh it for …

Member Avatar for tarunkhatri
-1
112
Member Avatar for IfNot

Hi, I've got a problem that is freaking me out. (it's really wierd 'cause IE & FF are both behaving the way I expected but Chrome wont. I have a problem trying to get equal row heights in a table where the last 2 columns are rowspans (4). I've got …

Member Avatar for IfNot
-1
70
Member Avatar for valonesal

We are wondering how we would add parameters to the following script so that each section can be called separately. [CODE]<?php // This is the content we want to display $data = <<<EOT <div class="topbar"> My Text goes here </div> EOT; // Output JavaScript code to write the data printf('document.write(unescape("%s"));', …

Member Avatar for almostbob
-1
254
Member Avatar for digtokiller

Hello im looking for some kinda code, you are paying for something on this page, then when you are done you come to another page. thats not the problem, it come now. this page you come to, it should only be able to open if you come from the paying …

Member Avatar for digtokiller
0
139
Member Avatar for MDanz

how do i do a hyperlink to last page? this is a page url.. e.g. [url]http://www.ufaffd.com/topic.php?id=44?topic=&page=2[/url] how do i do a hyperlink to last page not specific page..

Member Avatar for smvec
0
60
Member Avatar for Ghodmode

Is there a way to act directly on an array value returned from a function without assigning it to another variable first? For example, if I just want the third value in a CSV record, I might like to do it like this: [code]$value = preg_split('/,/', "one,two,three,four")[2];[/code] But that doesn't …

Member Avatar for somedude3488
0
156
Member Avatar for AbsoluteCPP

[URL="http://www.daniweb.com/forums/misc-explaincode.html?TB_iframe=true&height=400&width=680"]Code View[/URL] In the linked page u can see that source code is properly formated, how to do that?? I am making my web, i want to know that how can i show the c++ source code on my web with proper format. Q: How to show a formated source …

Member Avatar for codejoust
0
136
Member Avatar for LaurenceJ61

Hi, I'm trying to confirm a Delete action that will remove data from a database. The code is pure php, no jscript etc as I want everything to be server side. My php file shows a form with the current data found for a venue with 1 or more 'rooms' …

Member Avatar for codejoust
0
141
Member Avatar for peck3277

Hi guys, So today I am trying to do something that is probably quite simple. But my head is all over the place and I can barely think straight! Something which is not good for a newb! I'm trying to display some text files on the web. These text files …

Member Avatar for wilch
0
130
Member Avatar for nadnakinam

hai, i have a database file in mysql file extension, anyone help me how to upload the database to server. Thanks

Member Avatar for CFROG
0
44
Member Avatar for ssmeshack

Hai there, I have doing php code for form data to be send to email. But it is showing... [QUOTE]Your message could not be sent at this time. Please try again. [/QUOTE] Here is my code for html form... [CODE] <body> <div id="emailform"> <form action="email-thankyou.php" method="post" name="contactForm" onsubmit="return validateForm(this);"> <p><strong>Name:</strong> …

Member Avatar for Kruptein
0
104
Member Avatar for LogicWeb

I'm trying to use an if conditional inside the skin file for my ipbpro arcade mode. The problem is when I edit and reupload, I get a blank page due to the code I'm using but I'm not sure where I'm messing up. In a regular vb template it looks …

Member Avatar for liamfriel
0
139
Member Avatar for SKANK!!!!!

help. i finally put together a script to upload only .png IMAGE files that are under a certain filesize. BUT. is there any way i can only upload the image if its dimensions are exactly 55x55? heres what i have so far: (i want it always be named avi.png so …

Member Avatar for SKANK!!!!!
0
151
Member Avatar for sanjaypandit

i want to search from the following table attached in zip file, my query is select * from tbl_property where acco_id='1' and count_id='1' and holi_id='1' order by add_date desc but there is a problem, i have various value in holi_id , i want to search , means want to match …

Member Avatar for sanjaypandit
0
78
Member Avatar for ayesha789

I need result which shows all the dates which expire after or within 90 days form now on(current date) but this query also shows results which already expire like it shows 27 sep 2009 which is before current date. I need only those which are expiring from today and with …

Member Avatar for ayesha789
0
96
Member Avatar for Allison2009

Hi, MagneticOne Store Manager for Zen Cart says that they have the option to upload the data feed to update the color, size and quantity in the shopping cart. I tried to update it, I was not sure how to use it. Anyone in this forum has used the "MagneticOne …

0
59
Member Avatar for mrcniceguy

If any one have a script which can grab the yahoo,hotmail and gmail address book,i will appreciate to have it or Any suggestion on how to make me succeed in this. I wantto enable member in my site to import their address book directly from the site. Thankx.

Member Avatar for mrcniceguy
0
343
Member Avatar for ayesha789

Hi, I have inserted time in Database using CURRENT_TIME() and Data type is Time. Now I want to show the Time in AM and PM format. Please guide me. Thanks in advance....

Member Avatar for mick_sp
0
4K
Member Avatar for Mapper99

Hi there, I am trying to delete XML nodes using PHP. Here is a sample of my xml file. [code] <users> <user> <fullname>PC1</fullname> <flooor>4</floor </user> <user> <fullname>PC2</fullname> <flooor>3</floor </user> </users> [/code] Here is my code so far: [CODE] <?php $users = new DOMDocument(); $users->load("officedata.xml"); $suser = simplexml_load_file("officedata.xml"); $count = 0; …

Member Avatar for Mapper99
0
240
Member Avatar for ayesha789

Hi, I am developing a Lease Management System, and I need to upload multiple files in a folder. and I want to name the folder where I want to upload in DB. Here is a code for upload a single file. first file is sendfile.php [CODE=php]<!-- The data encoding type, …

Member Avatar for ayesha789
0
351
Member Avatar for JayGeePee

I've been getting spammed by a Robot alot here lately... When a member signs up there required to fill in all of the blanks(username, name, email, etc.). I want to make it where certain characters cant be used in this area(such as < / " etc.) I also want to …

Member Avatar for Stefano Mtangoo
0
134
Member Avatar for Stefano Mtangoo

Hi All, I'm trying to make simple CMS and can populate my HTML (generated by TinyMCE editor) to my database. I can retrieve them as well. Now I want to add image support to My editor. What are the tricks necessary? Thanks a lot :)

Member Avatar for Stefano Mtangoo
0
83
Member Avatar for mark2326l

As the title says I want to have a text field appear using the if statement. My simplest attempt.... [CODE] <?php if($row_Recordset1['NoPages_A'] { echo<input type="text" name="firstM" id="firstM" />;} ?> [/CODE]

Member Avatar for mark2326l
0
127
Member Avatar for sereleg

Hello guys am new with PHP. Would some one help me with the code below am getting: ERROR: Parse error: parse error in C:\webdev\Apache\Apache2\htdocs\oscommerce-2.2rc2a\catalog\product_reviews_video.php on line 2 CODE: [code=php]<?php define('NAvb script:popupWindow(\\'' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info['products_id']) . '\\')">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes($product_info['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . …

Member Avatar for edwinhermann
0
54
Member Avatar for andym67

Hi all, Pretty new to PHP and I am trying to get a handle on securing a form fields data. For example, I have a simple form where user enters information into a field called mydata. The field must be able to contain multiple words and basic punctuation. What I …

Member Avatar for ShawnCplus
0
168
Member Avatar for _webdesign_

Hello , I have a question i use php meldoy , and i have alread a user list in myql how can i fix the usere lis????

0
43
Member Avatar for rajeesh_rsn

Hai, I am developing a web application for a video store. They need to publish their tailors through their web site. I have to develop a PHP application to upload video file. I did it and working fine with PHP and Flash. But it works only in the case of …

Member Avatar for diafol
0
92
Member Avatar for Roebuc

can someone tell me what is wrong with the following: [CODE]function connect($db_host,$db_database,$db_user,$db_pass){ global $db_connection; try { $db_connection = mysql_connect($DB_HOST,$db_user,$db_pass, true); if(!$db_connection) { throw new Exception('MYQSL Connection Database Error: ' . mysql_error()); } else { $connection = true; } catch (Exception $e) { echo $e->GetMessage(); } }[/CODE] I receive: Parse error: …

Member Avatar for Roebuc
0
2K
Member Avatar for nadnakinam

hi 2 all, i'm very new to this php world... if any1 can solve my prblm, help me...! an image was successfully uploaded in desiered DIRECTORY in server... i wish to resize the images which uploaded image... i couldnt found php code to do RESIZE... Thnx in advance...

Member Avatar for andym67
0
78

The End.