39,323 Topics

Member Avatar for
Member Avatar for pjh1985

Hi, I'm having a problem with what seems to be conflicting URL rewrite rules. Basically the first and second rule work individually but when i add both together the second rewrite rule no longer works. RewriteEngine On RewriteBase / RewriteCond $1 !\.(gif|jpe?g|png)$ [NC] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule …

Member Avatar for pritaeas
0
203
Member Avatar for showman13

This is sort of a long drawn out question, but I felt it needed some explanation as I don't really know which parts of the code would be helpful to evaluate... or if it is just the browser itself. I have an event registration script that I'm running into an …

Member Avatar for showman13
0
109
Member Avatar for visualmonk

Hello, This is about a PHP PDF utility called "FPDF." Can anyone tell me if it is possible to change the margins on the second page of a PDF using the library. I set the margins on the first page, but because the first page has a letterhead, it starts …

Member Avatar for rayidi
0
2K
Member Avatar for rayidi

I want to working with login system jQuery ajax and json. I'm facing no problem with success function. I dn't know how to through custom errors like "incorrect login". Here is my code, Please help me. <script> $(document).ready(function(){ $("#login").click(function(){ if($("#defaultEmail").val() == ""){ $("#defaultEmail").addClass("field-err"); $("#defaultEmail").focus(); }else if($("#defaultPassword").val() == ""){ $("#defaultEmail").removeClass("field-err"); $("#defaultPassword").addClass("field-err"); …

Member Avatar for rayidi
0
3K
Member Avatar for ajay.motah

hi all, i am actually working on a project. But the mysql_real_escape_string() is not working on my php5 codes. Can anyone suggest me an alternative to avoid sql injection, plz! Thank you!

Member Avatar for iamthwee
0
111
Member Avatar for PHIPH

Where can I find tutorials about creating a social website using PHP & MySQL ? I do not need a ready script, I just want to learn how to do it..

Member Avatar for pritaeas
0
62
Member Avatar for Alochai

I have just started using php includes on my website to help me propagate changes across an entire site. So far I have set up include for 3 parts of my site. The header, footer and the navigation, as these are quite likely to change on a regular basis. I …

Member Avatar for Alochai
0
332
Member Avatar for ratanji

hi i want to upload and post my pdf material in my site and its my personal institute material so i dnt want to give the download option for that file so how it is can anybody help me ???

Member Avatar for ratanji
0
154
Member Avatar for newbie26

hey..can someone help me?? i have a html/php file with a command button and when i clicked it, it will run the exe file of a vb6 application. how can i do this?can i have sample code?? thanks in advance.

Member Avatar for newbie26
0
460
Member Avatar for mionazraelmiranda

How can I avoid negative numbers from being inserted in my database table? i have a code that works but will not prompt until the value itself in the table is below 0. $nega = mysql_query ("SELECT * from `bgl` where product_code = '$product_code' and stock > 0"); $row = …

Member Avatar for mionazraelmiranda
0
231
Member Avatar for code739

Hi guys, Im just confuse...heres the situation Im having photo uploads in php.., before uploading temporary file will be created my question is where can you find the temporary file, @the web server(where your php app is runnin) or @the client PC(where the uploading session is done) thanks in advance.....

Member Avatar for code739
0
227
Member Avatar for darl.liew

Hi, I need help with this... can anyone help me?? Plssssss Im getting Parse error: syntax error, unexpected T_VARIABLE, expecting T_STRING in line 10 What's wrong with it... can't seemed to find the error. Im trying to make my blog display the video. <?php $file = $_GET['file']; $image = $_GET['image']; …

Member Avatar for darl.liew
0
5K
Member Avatar for edsweng

Is it possible to embed variable in longtext data field? **For instance:** the field name is "description" and it contains... The date is $date_var. **In PHP/MySQL Query:** $date_var = date('m/d/Y'); echo $row['description']; **The output should be:** The date is 10/14/2012. please advise.

Member Avatar for edsweng
0
106
Member Avatar for davBro

Hi can someone help me out, please. I have been using the same file upload script on three websites that I manage, with great success. But recently I have encountered some errors when accessing the file upload form on my locahost server on my own computer server. This has never …

Member Avatar for davBro
0
410
Member Avatar for andyy121

i have create a html page with log in,log out,register ect... i wont to create a admin page for this,for example if i wont to change images colors border color add image or something else can somebody suggest me what i have to do,give me some ideas.

Member Avatar for andyy121
0
127
Member Avatar for colorockies1975

Hello experts, I'm new to PHP/Javascript. I am working on an Online examination system for prospective candidates. This is so as to learn object-oriented programming for my improvement. Story So far: I have the mechanism in PHP/Javascript/Mysql to create an online test. This lets the user select the kind of …

Member Avatar for sukhoi1027
0
559
Member Avatar for Clanstrom

Hi guys. It's been a third day now, I am having problems with header. I have many included files which output echo before the header, so since I can't output them after the header, I used ob_start(); and ob_flush(); but still I am getting header problems. If you wanted to …

Member Avatar for diafol
0
149
Member Avatar for vishalonne

Hi Every Body I am facing problem in retreving the data from my mysql table I want to use prepared statement with mysqli for security reason. Here is my code Please give a guidance - <?php $host="localhost"; // Host name $username="**********"; // Mysql username $password="**********"; // Mysql password $db_name="**********"; // …

Member Avatar for adam.adamski.96155
0
220
Member Avatar for anna.piperides

Dear community, May I ask you for your help please. I have two pages: item page, where customer selects required size and basket page, where this size is displayed alongside other information. All the data is passed OK, but 'size' data is not. Here are the pieces of code that …

Member Avatar for anna.piperides
0
161
Member Avatar for squeak24

I am currently in the process of creating a open source dating script. I am nearly there. Just one thing that I can see that is an error now. When a user completes there profile, other users can see the answers, but the person who the profile belongs to can't. …

Member Avatar for squeak24
0
211
Member Avatar for vizz

I have 12 field form One field is file (How to validate for **.doc**, **.docx**, **.pdf**) How to send all information and file as email? I found complicated codes. Can anybody help with simple one?

Member Avatar for vizz
0
151
Member Avatar for marvolo1300

Hi. This code should be functional but I can't seem to figure out why this won't work. Thank you in advance. <?php function e($f){ echo ($f); printf("\r"); } e("setup"); $user->setup(); /* globale variablen setzen */ global $phpbb_root_path; global $phpEx; global $db; global $config; global $user; global $auth; global $cache; global …

Member Avatar for diafol
0
578
Member Avatar for dalilice

Hi, I'm rather new to php so...I use simplepie to parse rss feed but i want to filter them by keywords i made this code : $feed = new SimplePie(); $feed->set_feed_url(http://website.name/rss); $feed->init(); $feed->set_cache_duration (3600); $feed->set_timeout(30); $feed->handle_content_type(); $countItem = 0; foreach ($feed->get_items() as $item){ $checktitle = $item->get_permalink(); //Regex keyword filter $pattern …

Member Avatar for Squidge
0
382
Member Avatar for ehpratah

Hi need some assistance here im having an error connecting my database to the server online,the thing is it is working fine in localhost but when i uploaded it just wont work.. i already change the necessary string to match the server configuration online from config.php this is in the …

Member Avatar for ehpratah
0
199
Member Avatar for mmcdonald

Hey all. All I need is to collect every `id` from `servers` where `active ='1'` and then cycle the results in a loop right until the end for each individual id. (I've written this on daniweb, might be typo's or errors. I'm not interested in code errors it's the process …

Member Avatar for cereal
0
207
Member Avatar for laxy_m

Hi!! Please guide me. How can I send variables from a PHP script to another URL using POST without using forms and hidden variables? Thanks Laxy

Member Avatar for shafiphp
0
495
Member Avatar for apanimesh061

<?php include 'simple_html_dom.php'; function get_url_contents($url){ $crl = curl_init(); $timeout = 5; curl_setopt ($crl, CURLOPT_URL,$url); curl_setopt ($crl, CURLOPT_RETURNTRANSFER, 1); curl_setopt ($crl, CURLOPT_CONNECTTIMEOUT, $timeout); $ret = curl_exec($crl); curl_close($crl); return $ret; } $url = 'http://rural.nic.in'; $outhtml = get_url_contents($url); $html= str_get_html($outhtml); foreach($html->find('li')as $item) { echo $item."<br>"; } //print_r($outhtml); ?> I wish to print only …

Member Avatar for adam.adamski.96155
0
95
Member Avatar for yeeitsneo

i have a problem with editing and updating my data on my database. i cant pass or echo the data from the database into text boxes. heres the php script. // this script is for displaying the information oof the logged in member. and contains the link to edit the …

Member Avatar for mmcdonald
0
294
Member Avatar for hiyatran

How would I be able to do this? When I click on a button, it would send some text, say, "Check this out!!" to my [B]Facebook[/B] and [B]Twitter[/B] account. I checked everywhere on the web and and this forum but can't find anything on it. Can someone give me some …

Member Avatar for JorgeM
0
48
Member Avatar for kaz_devil

<?php include once('config.php'); $link=mysql_connect(DB_HOST,DB_USERNAME,DB_PASSWORD); if (!$link) { die('Could not connect: ' . mysql_error()); } mysql_select_db(DB_DATABASE); $query = "INSERT INTO".data_feedback."(First Name,Last Name,Email,Telephone,Comments) VALUES ('". $_POST['firstname']."','". $_POST['lastname']."','". $_POST['email']."',". $_POST['telephone']."','". $_POST['comments']."')" $data = mysql_query($query); if($data) { echo"Feedback is recieved"; } else{ echo"There is an error"; } mysql_close($link); ?> Ive got a syntax error …

Member Avatar for Szabi Zsoldos
0
84

The End.