39,316 Topics
| |
hello forum im trying to insert record in different table using single query (on the base of class, class name and tables name are same)and wants to insert record in 1 table at 1 time is it possibol to select the table name through class here is the code but … | |
[code=php]<?php $con = mysql_connect("localhost:3306","pm" ,""); if (!$con) { die('Could not connect: ' . mysql_error()); } // some code ?>[/code] on writing the above code it is showing the following error: Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'pm'@'localhost' (using password: NO) in C:\wamp\www\p2.php on line 83 Could not connect: Access … | |
Hi guys, I am in need of a simple friends list code. I don't know how to start it, but I have gotten an idea, maybe anyone of you can help? I have setup a database with login and password, I want to also add a Friends column. I will … | |
hi, i need some help on inserting checkbox values into the mysql database. what sort of data type should i use for mysql to store these? for example i need to insert a few hobbies as checkbox 1.basketball 2.football 3.hockey i need to be able to perform a search and … | |
Hello, I am currently designing a site that displays photography, and am exploring the different ways in which to do this. I am trying to develop, using PHP and MYSQL, a way of having image links held in a database and then the first image in sequence to be rendered … | |
hey all i got a question where i am not sure that it will be possible. i already have my table in my data base which has values in it ex: first_property. and i made a little script which helps me grab all the names in the form that i … | |
I'm getting this error: Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' and can't figure out what's wrong. Any help? [code=php]echo '<p><label for="comment"><strong>Questions / Comments :</strong></label> (<span class="cursor" onclick="document.getElementById('comment').rows += 5;" title="Increase The Textarea">increase</span> >> <span class="cursor" onclick="document.getElementById('comment').rows -= 5;" title="Decrease The Textarea">decrease</span>)<br />'."n";[/code] | |
Im getting this error message "Parse error: syntax error, unexpected $end" Can anyone point out this error. Thank you. [code=php]<?php function CopyrightCheck($crCheck) { $crCheck = stripslashes($crCheck); $Copyright_Notice = "Copyright © 2000-2009 YourWebsite.com (Your Script). All Rights Reserved"; if ($crCheck !== $Copyright_Notice) { return COPYRIGHT_NOT_VALID; } else { return COPYRIGHT_IS_VALID; } … | |
I am new for PHP language I dont know how to run PHP files on out machine so please anyone tell me how to do it thanks | |
I have implemented a log-in routine that I thought captured SESSION variable to use through out all my PHP pages of my site. Here is the snippet of code which sets the session variables: [CODE] if($result) { if(mysql_num_rows($result) == 1) { //Login Successful session_regenerate_id(); $member = mysql_fetch_assoc($result); $_SESSION['SESS_MEMBER_ID'] = $member['id']; … | |
Hi all, Been at this for a while now and finally gave in to seek help. Basically, I'm trying to setup a regular expression for a decimal. Where there's 1 to 7 integers in front of the decimal point, and 1 to 2 after the decimal point. This is what … | |
Does anyone know a way to guarantee that a copyright has not been removed from a script. An example would be this. I put a copyright notice on page one, when the page is loaded it checks with page 2 to see if the copyright is there or not. If … | |
I am trying to plot my way through coding a BCC Bulk HTML email. I can't get the code below to work and I want to also call another query to grab the emails for a BCC email. SPAM security would be helpful if it is easy enough to add … | |
i have to access an array within an array using php, and i have very little experience working with php. can anyone point me towards a good tutorial or show me an example of how to go about it? eg: [0] contians [a],[b],[c] many thanks | |
Hello to all, My problem is that i have installed apache 2.2.6 and also have php 5.2 version. also made all the changes in conf file of apache. I also did all the necessary things on PHP side (placing & changing files in windows folder) . My apache web server … | |
Hi All, Im currently working on 'localhost'. Whenever i run the following all i get is <br /><b>Notice</b>: Undefined variable: myrow in <b>C:\wamp\www\testbin\edit\edit.php</b> on line <b>59</b><br /> [code] <? //connect to mysql //change user and password to your mySQL name and password mysql_connect("localhost","----","----"); //select which database you want to edit … | |
Hi all, This following code doesnt update the database. I get the following error message Parse error: parse error in C:\wamp\www\testbin\edit.php on line 41 Please can you advise as to the error. I have worked on this for a few hours now but to no avail. Many thanks [code] <?php … | |
Hi all I'm not even sure if development environment is the right term but I'm looking to find out what the best or most popular development environment to use is? I've herd of CAKE and was told this was the way to go. Just looking for some more opinions. Thanks | |
Hello everyone, Does anyone knows any query expansion techniques that can be implemented using php other than hierarchical technique. i.e: facet , analysis, thesaurus. By implementing query expansion, the users are not only presented with the keyword they inserted, but some related words to the keyword. Thank you | |
can anyone tell me if this is even possible, i'm able to get the auto-responder to work by itself, but i cant get the forms to submit info and send to email with form info. is this even possible? | |
hi , i have a php page with java script embed in it , i have 3 forms in a single page ... namely form1, form2, form3 . form 1 and form2 have a text box , these text boxes get input from users. Now my task is to get … | |
Hii Guys Please Help I got following error when i use mysql ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES) | |
I need some help with setting up a session..... The image is what i am trying to design. [CODE]<?php session_start(); // store session data $_SESSION['views']=1; ?> <html> <body> <?php //retrieve session data echo "Pageviews=". $_SESSION['views']; ?> </body> </html> [/CODE] | |
Hello, I am using spaw editor.Till now i think it is the one of the best editor.But i m now facing 1 problem.Suppose we left editor as empty.then switch tab to html view.then we see a <br /> tag by default.So is there any way to remove this <br /> … | |
i have a problem. i have a folder named jadu, there are various images . i want to show them in the a page. what i did its here [code=php]<? $path = "images"; $dir_handle = @opendir($path) or die("Unable to open $path"); echo "Directory Listing of $path<br/>"; while($file = readdir($dir_handle)) { … | |
so completely new at this. long story short, recently started a new business, have several websites up and running so far, no problems. most of the sites are variations of one site i had built. did the changes myself in Dreamweaver cs4, everything worked fine. tried to do another yesterday … | |
Hi All, I am trying to display the content of a single row from MySql with the following code but the echo is displaying nothing at all. Please can you advise as to where i can find the error? I have a feeling its something to do with the loop, … | |
I have a form that I want to edit the values from the database. I am able to update all my values except for the radio boxes populated from my database. After my UPDATE command, the value being grabbed is the initial checked value from the database. [code=php]<?php $db_maritalstatus = … | |
well i have (not precisely) created a form which accepts manily 1.name 2.subject 3.Message well i have written the php code for that ,well the data sent by the user is supposed to come to my mail id since i am getting the message fail error i have , i … | |
Hello all, I have to write a program that calculate a bmi of person whose weight is 170 pounds (it increases by 1 pound for each month for 12 months) and 70 inches, after I have all the bmi for each weight from 170 - 182 pounds, under each weight … |
The End.