39,316 Topics

Member Avatar for
Member Avatar for sharal

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 …

Member Avatar for pritaeas
0
77
Member Avatar for prateekm

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

Member Avatar for prateekm
0
201
Member Avatar for Toxikr3

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 …

Member Avatar for Toxikr3
0
227
Member Avatar for papermusic

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 …

Member Avatar for mrcniceguy
0
138
Member Avatar for bhavnaJobcentre

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 …

Member Avatar for diafol
0
219
Member Avatar for itisnot_me

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 …

Member Avatar for itisnot_me
0
87
Member Avatar for stlboarder

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]

Member Avatar for diafol
0
75
Member Avatar for 83apple

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 &copy; 2000-2009 YourWebsite.com (Your Script). All Rights Reserved"; if ($crCheck !== $Copyright_Notice) { return COPYRIGHT_NOT_VALID; } else { return COPYRIGHT_IS_VALID; } …

Member Avatar for diafol
0
118
Member Avatar for anantwaykar

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

Member Avatar for diafol
0
121
Member Avatar for dwdata

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']; …

Member Avatar for diafol
0
1K
Member Avatar for Zurompeta

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 …

Member Avatar for Zurompeta
0
72
Member Avatar for 83apple

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 …

Member Avatar for kireol
0
87
Member Avatar for dwdata

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 …

Member Avatar for somedude3488
0
201
Member Avatar for EvilOrange

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

Member Avatar for ShawnCplus
0
631
Member Avatar for davebrwn1

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 …

Member Avatar for ShawnCplus
0
117
Member Avatar for whiteyoh

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 …

Member Avatar for Airshow
0
2K
Member Avatar for whiteyoh

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 …

Member Avatar for Josh Connerty
0
136
Member Avatar for Venom Rush

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

Member Avatar for ShawnCplus
0
140
Member Avatar for tulipputih

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

Member Avatar for tulipputih
0
121
Member Avatar for ealbenze

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?

Member Avatar for ealbenze
0
45
Member Avatar for goldy736

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 …

Member Avatar for Venom Rush
0
179
Member Avatar for coolest_987

Hii Guys Please Help I got following error when i use mysql ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)

Member Avatar for Josh Connerty
0
92
Member Avatar for stevenpetersen

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]

Member Avatar for Josh Connerty
0
234
Member Avatar for borntowin_786

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

Member Avatar for diafol
0
132
Member Avatar for sanjaypandit

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

Member Avatar for Airshow
0
149
Member Avatar for new at this

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 …

Member Avatar for tom curren
0
206
Member Avatar for whiteyoh

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

Member Avatar for jcacquiescent27
0
221
Member Avatar for tmv105

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

Member Avatar for jcacquiescent27
0
100
Member Avatar for rahul8590

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 …

Member Avatar for jcacquiescent27
0
107
Member Avatar for Jintu

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 …

Member Avatar for dalefish
0
125

The End.