262 Posted Topics
| |
Re: Try: RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}\.html RewriteRule ^(.*)$ $1.html RewriteCond %{REQUEST_FILENAME}\.php RewriteRule ^(.*)$ $1.php | |
Re: There are loads of MOD_REWRITE tutorials about: http://www.addedbytes.com/for-beginners/url-rewriting-for-beginners/ It can be a pain, but read through some | |
Strange question i am afraid, i have a friend who is after information on a database called "Profile". Does anyone have any links to this, as I have been unable to find anything | |
Re: I use the same DB table for both admin and users. They are identified by an additional column, for example: :access: 0 = GOD, 1 = admin, 2 = user So when you query the DB you need to validate the user, and also check against the access level that … | |
Re: I suspect you are not validating and cleansing your form input, and this has left it open to SQLInjection | |
Re: This is defined in your other post | |
Re: > $script_url=$_SERVER['PHP_SELF']; //Change this if you want to use this as an include file. >$files_path="./album/"; // Where does the album start? Anything under the directory the script will read. With Trailing slash >$full_server="http://localhost:8080/phAlbum/album"; //Enter the full server path to where the albums start. //With Trailing Slash I would say it … | |
![]() | Re: Hi LastMitch, Think it is bad practice to have the DB call in the class file. From `db.php` remove 15 & 16. Call this from with in `function.php` <?php include("db.php"); function PM() { $db = new foo_mysqli('xx','xxx','xxxx','xxxxx'); $sql = "SELECT * FROM posts"; $result = $db->query($sql) or die("It's not connecting"); … |
Hi all. Does anyone have a good autoloader script for namespace classes ? Namespace is identical to the file structure. | |
Hi all. I recently set up dual boot Os (7, and Ubuntu 12.10). The namespace call was/is working on the Windows 7 env (same version of XAMPP). I know Linux is case sensitive so i have amended the file/folder calls. Although the file exists, i am getting: `Message: Class classLib\dataBase\database_Connection … | |
Re: can you show a few lines before this line if(isset($_POST['emri'])){ $emri=$_POST['emri']; } | |
Re: http://return-true.com/2010/04/using-php-mysqli-with-a-mysql-database-part-1/ will take you through some basics | |
Re: looking over a google search states HTACCESS cannot be used to alter global text in the manner you are trying to do | |
Re: As pritaeas has said: > remove the comma before FROM... $query = "SELECT id, customer_name, address, postcode, telephone, mobile, mobiletwo, email, nservice FROM Customers WHERE DATEDIFF (CURDATE(), nservice) > 0"; | |
Re: You are ending your message line and not actually including the returns: $MESSAGE_BODY = "Name is contacting you from Mas Des Filles Contact Page" .""; "------------------------------------------------------------\r\n" . $MESSAGE_BODY = "Name: ".nl2br($_POST["contact_name"]).""; "------------------------------------------------------------\r\n" . $MESSAGE_BODY .= "Email: ".nl2br($_POST["contact_email"]).""; "------------------------------------------------------------\r\n" . $MESSAGE_BODY .= "Contact: ".nl2br($_POST["contact_tel"]).""; "------------------------------------------------------------\r\n" . $MESSAGE_BODY .= "Message: ".nl2br($_POST["contact_query"]).""; "------------------------------------------------------------\n" … | |
Hi all, I am putting together a CRUD. I have read through tutorials, and references. Just wanted to see if i was on the right track: <?php // root -> /classLib/CRUD/CRUD spl_autoload_extensions(".php"); spl_autoload_register(); use classLib\database\database_Connection as DB; class CRUD { private $id; #__construct to be extended public function __construct($id=null){ $this->id … ![]() | |
Re: > The faq-records.php file (form shortened for ease of reading - this all works fine on page load): <?php $faqs = $objFAQ->get_admin_faqs(); foreach ($faqs as $faq) { ?> Looks like you are calling a class function, but have not included nor declared. I am still very new to OOP. You … ![]() | |
Re: Drupal documentation is very well presented. Have u looked through it? And as LastMitch said +1 Their forum is probably the best place to ask, | |
Evening all. I am using nivoSlider, and have come across an issue with ow i'd like it to work. Here is a sample of the slider: http://gavdev.roundthebend.info/index2.html This is what i would like it to do: http://www.directenergypurchasing.com/ This is the HTML: <link rel="stylesheet" href="nivo-slider/nivo-slider.css" type="text/css" media="screen" /> <script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script> <script … | |
Re: @Deepak, Once you have confirmed re write is enabled, you also need to set your base: `RewriteBase /` = these makes "/" the return for where all rewrites will start from. Looking at what you have posted this is a key item that is missing. Also for the rule itself: … | |
Re: @LastMitch, Think line 7 is wrong way round echo "<img src='IMAGE/ITEMS/$image_folder_name/{$img['file']}' /><br>\n"; | |
Re: Why use js to do math. PHP can easily do that for you. Just add a function into your loop | |
Re: Shouldn't line 99 => ` $email_exp = '/^[A-Za-z0-9._%-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4}$/';` be wrapped in double quotes not single? `$email_exp = "/^[A-Za-z0-9._%-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4}$/";` ![]() | |
![]() | ![]() |
Re: more information is needed. EasyPHP from what i remember uses "127.0.0.1" not "localhost" ![]() | |
Re: Change your function function display(){ return $this->teamName; } | |
| |
Re: you need to echo inside your while loop | |
Re: Why so many threads? http://www.daniweb.com/web-development/php/threads/439976/contact-mailing ![]() | |
Re: Macromedia has no email ability. Your test server (XAMP etc) will have this function. You will need to configure it | |
Re: > i try my best but fail,,, What is the issue? Are you getting an error? | |
Re: Can you show your form? Also have tried `var_dump($_POST);` to see if the varible is being populated? | |
Re: in your .htaccess you need to have `RewriteBase` In mine i have this set as `RewriteBase /` So you will then rewrte your includes to: <?php include('/styles/header.php'); include ('/styles/leftblock.php'); include ('/styles/mrnuleft.php'); ?> Try this: **http://www.generateit.net/mod-rewrite/** | |
Evening All, I am looking to start a class that dynamically creates a sitemap.xml on command and if possible auto uploads to google. The only thing is all the scripts i have come across by searching google tend to be using static pages. My links are dynamic and are also … | |
Re: **http://localhost/install/index.php** Are you sure you didnt create a sub folder for the install? http://localhost/[some folder]/install/index.php | |
Re: looks like the PEAR install is all over the place. I would suggest following http://pear.php.net/manual/en/installation.getting.php This makes updating your pear easier, especially as it looks like the config is screwed | |
Re: >so any answer or any ideas from you I would suggest you use "GOOGLE" below is a link which is searched by looking for "PHP and MYSQL", this will go over basic db connection, unless you are using PDO, then google DB connection using PDO, or even use the search … | |
Re: Yes <?php $age = "really really really old :)"; ?> <h1>You are <?php echo $age; ?></h1> **NOTE** The cuse of age in this post is no idictaion of being agest | |
Re: @dalilice Have you looked over the rather extensive FAQ, Knowledge Base, API documentation that is available at the creators website? http://simplepie.org/ | |
Re: >conect this page to another page, Can you provide more details on how you would expect this to be done? `a href`, automatic redirect? | |
Re: I am guessing you have a database connection and table selection somewhere in one of the includes? | |
Re: Would it not make more sense to get a single upload functioning first, then you can modify the coding for multi upload | |
Re: Typically functions will either be in a seperate file, or at the bottom of the php file: <?php yourname("Shamp"); function yourname($name){ echo "Your Name is " .$name ; } ?> This works fine. Because you are calling a function with the assigned data. PHP then continues to look through the … | |
Re: Try changing Line 14 to : if(isset($_POST['logemail'] && $_POST['p'])) { Where is the `login()` function and $mysqli variable coming from? ![]() | |
Re: Have you tried getting the image dimension using PHP, then passing the information into JQuery? JQuery shouldn't be firing before the php (Client/Server) ![]() | |
Re: "\n" -> new line "\t" -> tab "\r" -> carriage return Dude >but i wont a better explain pritaes is well respected, and has taken time to help you. You clearly have not checked google, nor the search function on this web site. All of what you are "wanting a … | |
Re: your db connection doesnt contain a password |
The End.