39,323 Topics
| |
Short guide to include RSS on your website Including RSS feeds in to your own pages is pretty simple with PHP and some open source libraries. The follwing lines show how to create HTML from RSS feeds using the popular PHP tools magpierss (fetches and parses the RSS feed) and … | |
I am trying to display all data from my MYSQL database but it results in a blank page: <? mysql_connect($host,$username,$password); @mysql_select_db($database) or die( "Unable to select database"); $query="SELECT * FROM events"; $result=mysql_query($query); $num=mysql_numrows($result); mysql_close(); echo "<b><center>Database Output</center></b><br><br>"; $i=0; while ($i < $num) { $title=mysql_result($result,$i,"title"); $title =mysql_result($result,$i,"title"; $description =mysql_result($result,$i,"description"; $organization =mysql_result($result,$i,"organization"; … | |
could anyone please help me and show me how to validate a form with the php_self function and the error message appears to the side of where the error came from. Thanks. You could also give me useful links. | |
I have a program which requires a database. So I made a file that could generate the sql to create it (I copied the sql from PHPmyadmin as reference). When I execute the sql I get the error: [code]You have an error in your SQL syntax; check the manual that … | |
Hi All, Someone just told me that if you name your pages .php, it hinders your rankings. Is that true? Thanks Michelle | |
Hi I got this script of a tutorial site and I placed it on my site but it seems to work fine apart from it doesn't send the email can anyone help me please. the contact us page [code] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> … | |
Hi all i have recently been using fireworks MX and have created a working menu. it is uploaded on my server and currently have it in a html page as this was the code fireworks gave me. How can i put this html / javascript menu into a php block? … | |
could someone recommand me which software that i can use to unblock filter internet. I have website that i want to show it in other country but other country have blocked my website from peoeple see it. is there is any software that i can unblock filter internet! AM | |
Currently, my company is running our website and intranet in CF. We're looking to move our website to PHP, but the intranet must remain in CF for the foreseeable future. Is it possible to run both CF and PHP on the same server? If so what considerations do I need … | |
can anybody tell me how i can upload a file without user interaction.the file full path is known and can be hardcoded. | |
How can i make this script work? It is meant to send an email to a person with a confirmation code, but it is not working. whats wrong with it? [code] <?php function send_mail($fromname,$frommail,$to,$subject,$body,$priority) { $fullmail = "\"$fromname\"<$frommail>"; $headers = "From: $fullmail\n"; $headers .= "X-Sender: $fullmail\n"; $headers .= "X-Mailer: PHP\n"; … | |
Dear All; I have table in vehicle.php file that contains vehicle information(plate number, vehicle model, reg. and exp. dates). I pprovided each record with href(more) if he want to know more about this specific vehicle in vehicle-info.php file. in vehicle-info.php I get the plateN and I pass it to the … | |
Hi everyone. i'm having the following problem with the PHP code that i'm writing: [B]Notice[/B]: Undefined index: email in [B]c:\program files\easyphp1-8\www\gestao_perfil.php[/B] on line [B]15[/B] [B]Notice[/B]: Undefined index: password in [B]c:\program files\easyphp1-8\www\gestao_perfil.php[/B] on line [B]22 Here is the code: [/B][code=PHP] <?php parse_str ($_SERVER['QUERY_STRING']); //Tenta estabelecer uma ligação ao servidor MySQL @mysql_connect("localhost","root","") … | |
How would you execute MySql commands found in a text file? It's really beginning to bug me! | |
Dear all; I write this php file and when I want to view it does not make sense. It also can't retrieve the necessasry info from my database:( . Please can any one guide me. Note: I attached my DMV database. Thanks alot //=========== <html> <head> <title>Displaying Your Vehicles</title> </head> … | |
Hi I have recently attempted to make a forum with phpBB using a free php and mysql web hosting site. This is the link: [URL="http://www.zendurl.com/directory/dgcforum"] www.zendurl.com/directory/dgcforum[/URL] As you can see, error messages appear. I am new to all this and was wondering if anyone had any solutions to get the … | |
hey guys anyone knows a way to direct the browser to the page he came from like the Back button php plz | |
I am new to PHP. I am trying to connect mysql with PHP with mysql_connect but i m getting "A link to the server could not be established" I have used ODBC 3.51 driver for odbc and made connections with odbc with odbc_connect but i don't know how to connect … | |
I have been getting tons of email spam from my own domain name. It is coming from a contact form that uses sendmail.php. My guess is someone is trying to use it to spam other people, but it keeps going directly into my inbox. I can't block sender. I can't … | |
<h3>In php how do you create accounts and let the user send messages to each other which cannot be viewed by other people .</code></h3> <h2>The only thing i have come close to is by creating accounts by giving each one them an unique email id and let them send and … | |
If I have a string like this: [code] blah test asdf [/code] What kind of regex would I use to change all single newlines (like between 'blah' and 'test') to <.br> and all multiple newlines (like between 'test' and 'asdf') to a maximum of two <.br>'s? I've tried these already: … | |
I got this error from my php code... [B]Parse error[/B]: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in [B]C:\Program Files\xampp\htdocs\projko\sign_in_sub.php[/B] on line [B]11 here is my code: [code=php]<?php ini_set('display_errors', 1); function sign_in(){ $con = mysql_connect("localhost", "root", "dodong"); if(!$con){ die('Could not connect: ' . mysql_error()); } mysql_select_db("dbko", $con); … | |
Hi Is there any free web hosting sites that suport php and mysql? (and work with them be easy) | |
I am looking for a PHP news system. I guess it will be more like any other news paper site online. I am looking for an open source or paid version. Does anyone know such thing? | |
how would I upload files with php if someone can steer me into the right direction that would be great. | |
Hi, I am not getting why my modifications for mod_rewrite is not getting working... Apache 2.0 Windows OS i uncommented the loadmodules line for rewrite but i do not find in my httpd.conf a single line with clearmodulelist nor addmodule. I do not know how to enable mod_rewriting in the … | |
i having been programming for 10+ years now, so I always try to adhere to good programming practices (variable naming, spacing, etc). Yet, almost every snippet of code for JS or PHP that you can pull up goes against those practices. even when writing JS or PHP, where var type … | |
Hello I have changed the process code abit so it receives the data from the form and ensures the data in array format. This has eliminated my previous error. The problem I am experiencing is the looping is not displaying the all contents of the arrays. Do you have any … | |
I am trying to delete a member of staff from a table using php using a drop down menu of staff id's he is my code <!-- deletestaffmember.php --> <html><body> <?php putenv("TNS_ADMIN=/u1/oracle/Products/shu10g/network/admin"); $conn = OCILogon("wkagonye","maniki", "shu10g"); $query = "select StaffNo from tblstaff"; $stmt = ociparse($conn, $query); ociexecute($stmt); ?> <form action="deletestaffmember.php" … |
The End.