38,023 Topics
| |
When people add comments to my site there is always a slash before apostrophies. Is there a line of code that will prevent this from happening? | |
I've been configuring PHP with MySQL and ran into a few issues. I uncommented the line to include mysqli.dll and set extension_dir = "./ext". It still isn't working. Not sure if I'm missing anything. Got any clues?! | |
Hi, I got a web site with lots of french accents. I am not able to get the accents proper even after doing all the functions said in php.net. I tried even user documented ones... utf_decode also do not work:( How to solve this issue.Request pointers Thanks. | |
Hi Friends We have develoeped new community site, we have intagrated the mail option that site. when register the site we need to create the mail id mail server . we are using "Simple Control Pannel" how to create the mail id using php code "simple control pannel" Please acvice … | |
i keep getting parse errors on the last line of this how ever i cannot seem to find the mistake .. any help ? Parse error: parse error, unexpected T_STRING in /home/content/mydir/index.php on line 103 (i added the line numbers jsut for the post not actually in code) [code=php] 96 … | |
| if you are having problems with encoding pages/characters, try this. <?php $servername='localhost'; $dbusername='myusername'; $dbpassword='mypassword'; $dbname='mydatabase'; connecttodb($servername,$dbname,$dbusername,$dbpassword); function connecttodb($servername,$dbname,$dbuser,$dbpassword) { global $link; $link=mysql_connect ("$servername","$dbuser","$dbpassword"); if(!$link) { die("Could not connect to MySQL"); } mysql_select_db("$dbname",$link) or die ("could not open database"); } ?> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-9" /> <meta http-equiv="expires" content="now" /> … |
Hey guys! Right heres the problem, I have made this script that basically displays all the data from a table from MySQL; pricelist. However it only displays the data when i have to manually write in all the database passwords and names and stuff, however when i use the require_once() … | |
Hello everyone. I am trying to modify a script I have been working with but have no true knowledge of PHP. Currently the script creates an http post and upon successful sending it opens a new web page and posts a message that reads "Sending results: OK". I would like … | |
I have written lots of php dealing with html strings, but it's my first time trying to get a very simple page to function. It has a textarea, and I guess that all I need to do is get the text into the database on the server. I really have … | |
Hey guys, I'm looking at taking a PHP course in the spring. The prof and I get along well, and she said I could waive the college's prerequisites and sign up if I wanted to. The prerequisites (in the college catalog) are a couple of HTML courses. My question is … | |
I have a simple Contact form script. I want to change it so it shows the email address of the person sending the form, not mine. I also hope I am pasting this code correctly. Sometimes I get a blank form, but all fields are required. I would like to … | |
Hey, I'm using a while loop to display all the rows of a table in my database, and wondered if anyone knows how I can make it so the background color of each row alternates between two different colors. I'm using php to call the information, so I can stick … | |
I am using this html form page... [code] <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title>Item Entry - Opulentworx - Private</title> </head> <body> <form action="/itemENTRY.php" method="post" id="itemENTERdb"> <input type="text" id="itemNUM"/>Item #<br> <input type="text" id="quant"/>Quantity<br> <input type="text" id="date"/>Date<br> <input type="text" id="cost"/>Cost<br> <input type="text" id="ground"/>UPS Ground<br> <input type="text" id="3day"/>3 Day … | |
Is it possible to have two main pages i.e index page one for wap and the other html(php driven) or do i have to determine the type of user and rewrite my index page appropriately. My main site is unsuitable for mobile phones and would have to significantly different. Cheers … | |
Hi, I have a friend who is looking to start a website similar to [url]www.Ratemyprofessors.com[/url] and I was wondering if any ofyou could suggest a script that is similar. Thank you for your time. | |
Hello everyone! :) I'm doing a website that has lots of pages - created by the user (a wiki style) - and any page can have attachments. The file upload engine is working ok. I'm moving all the files uploaded to a specific directory. The problem is: As each page … | |
Is the package libgr-progs available for OS X I can find it at the RPM find site, but when I download it real player tries to open it...which isn't quite what I expected, i've tried to use Fink to install it but it doesn't seem to be in the fink … | |
hello i am sharmila i have small doubt about php and mysql.please anybody reply me. | |
I have this code to update the DB by subitting values in the checked columns The problem is that it skips some entries and does not always subit the values entered SQL Query $thisid=$_POST['id']; $nvalue = $_POST['newvalue']; $chkd = $_POST['checked']; foreach ($chkd as $key => $value) { $sql="update invoice_subcategory set … | |
Having a strange problem with some PHP code. This code: [code] $filename = "/u2/text/TOPAShiftlog".$dateString."_AShift.rtf"; [/code] writes the file TOPAShiftlog2007-10-26_AShift.rtf to the /u2/text dir. I want it to write 2007-10-26_AShift.rtf to the /u2/text/TOPAShiftlog dir so I tried this: [code] $filename = "/u2/text/TOPAShiftlog/".$dateString."_AShift.rtf"; [/code] This code ends up removing my "submit" button … | |
I'm working in a VB environment with MS-mdb. Can I use a PHP web format to create a security key that would be sent to the VB app users to allow access to the .mdb? Can the .mdb listen and respond to the php message? If so how? | |
Hi Friends, since i am new to this script, I need your help, well this is my problem, i need to compare userdate with my backend date. for that i have used a dynamic dropdown combo as an id and i need to fetch the date associated with that id … | |
My server supported as " GD support : enabled" (linux OS using) but this program not displayed the graph. displayed the message "The image “[URL="http://xxx.xxx.xxx.xxx/test3.php%E2%80%9D"]http://xxx.xxx.xxx.xxx/test3.php”[/URL] cannot be displayed, because it contains errors. <?php header("Content-type: image/png"); $im = @imagecreate(110, 20) or die("Cannot Initialize new GD image stream"); $background_color = imagecolorallocate($im, 0, … | |
Ok this may be a stupid questions. Is there a way to make a dynamic form? For example, if I wanted to create a form that took a users birthday, how do I make it so it would change the number of days in the month to correspond to the … | |
Hello all, i hope someone here can shed some light for me. I have to do a final year project and needed an idea fast so i decided to try something involving semantic web. now the problem is i am totally new to this concept, i am reading books and … | |
Hi I've been trying to get a email form which allows my users to send photos as an attachemt via a "upload" button. I've got it working i.e. the form is sending me the data plus the photos, but I'm still getting this error when "submit" is pressed. [B]Notice: Undefined … | |
Hello all master coders, I have been doing my site exclusivley in html. What is the big differences bewteen php and html? What are the advantages/disadvantages? What, if any would be the penalty from going from an html site to a php site? Would this hurt the PR I have … | |
The rewrite I'm using maps /products/string to products.php?product=string and the products.php is basically: [code] <header> <?php if(!isset($_REQUEST['products'])) {?> <a href="products/consumer-hardware>Consumer Hardware</a> <?php }?> <?php if (isset($_REQUEST['products']) && $_REQUEST['products'] == 'consumer-hardware') {?> <consumer-hardware details> <?php }?> <footer> [/code] Now the rewrite works, because I'm not getting a 404, but of course … | |
Hello experts, I'm having some difficults with the code that i have used from one of the PHP, MySQL books. As the error that appears is in bold on line 17, and the error that shows is listed below: "Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource … | |
I am very very new to all of this stuff. I have been given a username and password, and I try to run this command: mysql -p -u username < filename But everytime it prompts me for a password, and does not let me type anything in. Please let me … |
The End.