39,323 Topics
| |
Hi every one I am new to php and trying to connect PHP and MySQL my code is as below [code=php] <html> <body> <?php $My_con= mysql_connect('localhost'); echo $My_con ?> </body> </html> [/code] but this error occurd [B]Warning: mysql_connect() [[COLOR="Red"]function.mysql-connect[/COLOR]]: Access denied for user 'ODBC'@'localhost' (using password: NO) in C:\Program Files\EasyPHP … | |
Hi All, I am new to PHP and MYSQL. I installed Apache2.2, MySQL Server 7.0 and PHP 5.2.10. I created database and table in MYSQL - its working fine. PHPINFO() - its working fine. When i tried to connect to my MYSQL using PHP with the following code, i am … | |
I am getting this message and I have checked my code and it seems to be all OK but I ther another reason that this message is showing up, that I maigt not know. PLESE HELP.... Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in file.php on … | |
I'd like to redirect the user to another page, i.e. after a login check. I'm used to doing this via header location directive, it's all ok, but, if I'd like to print a message and redirect the user in 2/3 seconds, like on this forum when you login? Is it … | |
Hi, i have working forms on my website that i would like to have an auto-respose email sent after someone submits an order, i was hoping there is a way i can edit the code instead of remaking all the forms, im using a LevelTen Formmail php script, can anyone … | |
HI all, I have make two form. one in which i will fill value then is will go in next page after submitting with $_Post['value'] . But i need this value in my javascript code in next page . So how i can fetch this value in my javascript code. … | |
This issue I am running into occurred once we changed our site over to a dedicated server. We have had continual problems with our contact page, first with the captcha and now we have an error message saying: SQL error: Table 'paysonllc_db1.email' doesn't exist. Under Manage Sites I can connect … | |
hi all, i have a php generated image that i want users to download as png, but as it is generated on the fly, the default save as option is <php_name>.php so i just want to ask if there is any way to change this default file name to a … | |
I'm currently developing a web page that accesses a CGI string to query an application and return results to a page: [url]http://empress-media.net/jimflynnrentals/gear_test.html[/url] The CGI string is: [url]http://servername/cgi-bin/nph-omniscgi?OmnisLibrary=tbsWeb&OmnisServer=5912&OmnisClass=rtPublicSearch&MethodName=search&SessionID=PUBLIC&bXML=1&bXMLData=0&SQLClassName=qCategoryLookup&SearchCriteriaString=STYPE_CATEGORY%2CNOT%20%25LIKE%25%2Cggg[/url] It currently works to return the list of categories. It uses Javascript methods to return the results to a DIV on the page … | |
I a newbie on php .I having a problem of sending the mail using this code.with this code sometimes i can send mail and some time not can any genius help me on checking this [CODE]<?php $to=stripslashes($_POST['to']); if($to == '1'){ $to='mail@.gmail.com'; @mail($to, $subject, $body, $headers); }else { $to='mail@gmail.com'; @mail($to, $subject, … | |
Hi Is it possible to insert nl2br to these two? [icode]<?php print $laes_artikel ["artikel"]; ?>[/icode] and [icode]<?php print substr($row["beskrivelse"], 0, 250); ?>[/icode] .. If so, can someone tell me how? Thanks for now. | |
Hi to All, Please tell me briefly that in PHP, what type of errors occured to the developer. Thanks in Advance | |
Hi, How I can show summary of thread like Daniweb. I have attached picture so please guide me. its really cool without opening the thread we can read whats inside . idf interesting we can go inside. Thanks Ayesha Developer | |
I need to obtain current date formatted this way in PHP: Sun, 26 May 2005 19:32:54 GMT Is there a specific function or I've got to create it myself? | |
Hi I want to add some pictures in the header of my site can anybody help me how to do that in php Thanks in advance | |
Ok so I created an instance of the mysqli class: [code=php]$siteconn = new mysqli($dbhost, $dbuser, $dbpass, $dbname);[/code] But when I try to run a query using this I get the error that's in the title... code as follows: [code=php]$result = $siteconn->query("SELECT * FROM categories ORDER BY id LIMIT $limit");[/code] Any … | |
Hey Guys, I want to make a web development project based on php and mySQL. I have roughly around 3-4 weeks to make it. Please suggest some ideas. Thanks. | |
am doing my class project but am stuck i want to oepn the administrator category in valid_user table is Administrator and if Normal user to open welcomepage here is the code it only open admnwelcom.html even when the catagory is Normal_user.here is the Php code [code=php]<?php // This code will … | |
Hey Guys, I have login page in my web site. I have used SESSION to store the username and the user password. What i want is that after succesfully logging in he should not be able to go back to the previous page. What's happening rite nw is that when … | |
hey i m using orangehrm -2.4.2(an open source ERP software for HR Management) i want to add [COLOR="Red"][B]payroll[/B][/COLOR] feature in the main tab(module) with admin, PIM, leave, time, benefits etc. & also how to made d provision of payroll for [COLOR="Green"][B]next 3-5 years[/B][/COLOR]. any help would b much appreciated. | |
I have a php file that have picture it can display on my pc when i upoload to the apache server that bundle inside but when i try to log on at other pc it can only display the text not image why ? | |
On my Drupal site I have a block which I've set up with a couple of links at the top. I want to change the content of the block depending on which link is clicked. I'm pretty sure you can do this as I've seen sites with this functionality, but … | |
Hi all, I am not sure where to start with this one really. I have built the template for my site but, having a few issues in trying to impliment certain things that have to happen. This site needs to have 3 types of user. I am using a generalization … | |
Hello everybody, how do I rank mysql search results by column weighting? thanks for your input. | |
Hi there. I'm having a small issue with including various files into some of my main files. This issue started when I decided to organize my directory structure. My old structure: [code]/{root} [application] [css] [FF] [images] [install] [js] [validation] So in this structure, FF (Firefox) is where the main application … | |
Hey guys.. I have been trying to debug this mysql statement for the past 2 hours.. here is the statement: [CODE] $sql1 = "SELECT * FROM cpmip WHERE adid='$a' and ip='$ip'"; $res1 = mysql_query($sql1) or die(mysql_error()); [/CODE] I just can't figure out why this won't work.. it throws the following … | |
Is there a way to delay a function so that it doesn't run for a day or two later? I'm somewhat familiar with sleep(), but I really don't think that's what I ought to use. What I need is a text file to be processed over the weekend/holidays when there … | |
hey all, I have a form that allows the user to input the information you can see it here- [url]http://www.christiancouriernewspaper.com/blogbase/form.html[/url] what I need it to do now is when the user clicks SUBMIT for all the information they just filled out be sent to me via e-mail any ideas/help? thanks | |
Hey all, I was wondering if anyone has used the Contact form called gbcf-v3 I'm having problems getting it to go "live" the test form is working great here is my simple simple contact page code [CODE]<form method="POST" action="send.php"> Fields marked (*) are required <p>Email From:* <br> <input type="text" name="EmailFrom"> … | |
hii all, i developed a shopping cart which has many features like grid view,list view and floating cart which is also dragable.now my problem is its taking to much time to load becoz of conditions and images now,i want to generate html pages of my php pages,i dont want url … |
The End.