-
Began Watching Record navigation in PHP
<?php $host = "localhost"; $usr = "root"; $pwd = ""; $db= "DB"; conOpen($host,$usr,$pwd,$db); function conOpen($host,$usr,$pwd,$db){ $con=mysql_connect($host,$usr,$pwd) or die ("Connection Failed "); mysql_select_db($db,$con);} $rows_per_page=5; // database connection stuff here $result=mysql_query("Select * … -
Replied To a Post in Record navigation in PHP
`$_GET[screen]` should be `$_GET["screen"]` and will not have a value unless the URL of the page is appended with `?screen=value` where "value" is the value. -
Replied To a Post in print_r to storable values
You're basically converting the array to a variable. Instead of the output being: Array ( [0] => One [1] => Two [2] => Three [3] ) You're changing it so … -
Replied To a Post in print_r to storable values
This isn't a clean fix (someone may be able to provide a better one) but you could loop through the array, placing each entry of the array into an appended … -
Began Watching HELP: How to include an icon into a txt file or rtf file
How to include an icon into a txt file or rtf file -
Replied To a Post in HELP: How to include an icon into a txt file or rtf file
Could you expand on your query? This doesn't sound like it's PHP or even web development related. Text files are just plain text, no formatting. They cannot hold images. For … -
Began Watching print_r to storable values
Hi, I have started using file_get_contents and regex, and after struggling have got it working. The issue I have is that when I print_r($match[1]); I get the results I want, … -
Replied To a Post in print_r to storable values
Have you tried storing the results of print_r to a variable? $newvariable = print_r($result); I've not tried that myself but the theory here would be that the output is stored … -
Replied To a Post in PHP mail()
Captcha isn't going to stop the mail being marked as spam. That just reduces the chance that the form is going to be abused. -
Began Watching want to use checkbox if in my db the value is 1 the checkbox is click
<td>FooterMenu</td> <td><input type="checkbox" name="FooterMenu" value="1" <?php if($FooterMenu == 1): ?> checked="checked" <?php elseif($FooterMenu != 1):?> checked="unchecked" <?php endif;?>/> </td> -
Replied To a Post in want to use checkbox if in my db the value is 1 the checkbox is click
You shouldn't have a colon after the if queries and you aren't using braces. I'm also pretty certain that the value for a box to be unchecked is actually just … -
Began Watching PHP mail()
$headers .= 'From: <donotreply@maysite.com>' . "\r\n"; $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; $headers .= 'Return-Path:<donotreply@maysite.com>\r\n'; mail($to, $subject, $messageEmail, $headers); _____ what i need … -
Replied To a Post in PHP mail()
This isn't going to be your PHP code causing the filtering to spam. If your domain doesn't already have one, you want to set up an SPF record which states … -
Replied To a Post in Cron not sending emails to own domain
A lot of web hosts will have the e-mail and websites on seperate servers. Even if that is the case, the mail logs will still be useful in determining the … -
Began Watching Cron not sending emails to own domain
So I've got a php script that emails me a daily database backup via cron. The script will either output success or failure upon mail->send(), and it always succeeds. However, … -
Replied To a Post in Cron not sending emails to own domain
Is the e-mail for domain hosted on the same server which is sending you the e-mail? If it isn't, you'll probably find that you have a setting which lists that … -
Began Watching mail() injection from spammers
I had noticed a lot of returned mails with spam content arriving daily. i renewed the old mailing scripts (which was overdue) to include jquery clientside(irrelevant i know) and serverside … -
Replied To a Post in mail() injection from spammers
If an input form was compromised at some point, adding a captcha and taking other precautions may not eliminate the problem. You might find that a PHP scrupt has been … -
Began Watching login process doesn't recognise login details
im working on my login script and whilst testing it, it seems that the code doesnt recognise the details stored within a database im entering a valid username and password … -
Replied To a Post in login process doesn't recognise login details
You don't seem to be using strtoupper() or strtolower() when checking the username. That would mean that the username needs to be input exactly as it was during signup. E.g.: … -
Began Watching Jokes
A cat has 9 lives -- what has more than 9 lives? Answer: Frogs because they croak every night. (Duck Dynasty) -
Replied To a Post in Jokes
I want to tell a joke about UDP but I don't know if you'll get it. -
Began Watching INSERT in MySQL 5.1 and 5.6 and then SELECT...
I insert something simple like insert into table(pri1,pri2,value) values (1,1,1); insert into table(pri1,pri2,value) values (1,2,1); And in MySQL 5.6 they show up as: pri1 pri2 value 1 1 1 1 … -
Replied To a Post in INSERT in MySQL 5.1 and 5.6 and then SELECT...
It looks as though the data is just being placed at the beginning of the table in MySQL5.1 instead of the end. Unless specified, MySQL will add the inputted data … -
Replied To a Post in HTML 5 or XHTML - Which do you use and why?
I've always made sure to use the strict standards. My site currently validates as both XHTML 1.1 and HTML 5 so switching was easy to do as it was just … -
Created HTML 5 or XHTML - Which do you use and why?
I tend to use XHTML due to browser compatibility. In almost all cases where I've worked with XHTML, the content has displayed in every browser the same and the times … -
Began Watching HTML 5 or XHTML - Which do you use and why?
I tend to use XHTML due to browser compatibility. In almost all cases where I've worked with XHTML, the content has displayed in every browser the same and the times … -
Replied To a Post in Removing .php from URL (with nginx)
That `return` command gives me an error when I restart nginx to apply the changes: nginx: [emerg] invalid number of arguments in "return" directive in /etc/nginx/conf.d/default.conf:19 nginx: configuration file /etc/nginx/nginx.conf … -
Began Watching EA Has Officially Ruined Dungeon Keeper !
I loved the original Dungeon Keeper and Dungeon Keeper 2 back when Bullfrog made them. I spent untold amounts of time playing the games! EA has now ported Dungeon Keeper … -
Replied To a Post in EA Has Officially Ruined Dungeon Keeper !
> However, from what I hear about them these days they are pretty much evil incarnate. They've just taken the Dungeon Keeper motto of "It's good to be bad" to … -
Created Removing .php from URL (with nginx)
Hi, I'm not sure if I'm posting this in the correct place as this is related to nginx configuration and not specifically PHP scripts. If I am posting this in … -
Began Watching Removing .php from URL (with nginx)
Hi, I'm not sure if I'm posting this in the correct place as this is related to nginx configuration and not specifically PHP scripts. If I am posting this in … -
Gave Reputation to centenond in file_exists wont work
i did the slash and the array u told me , this is what worked in case some1 need it in the future if ($_SERVER['DOCUMENT_ROOT'].'/'.$dirfromroot && !empty($dirfromroot)) { echo "<img … -
Replied To a Post in Session
I don't know if your login code on that thread is complete but I cannot see a session being started in there. You will need to put the `session_start();` command … -
Replied To a Post in Session
The exit part needs to be in the if statement: if(!isset($_SESSION['username'])) { header("location:index.php"); exit; } Having it outside of the if will prevent all content below it being displayed. -
Began Watching Session
Hello, I have two copies of the same website: one in the localhost and one is online. My offline website generates error after I login to the admin page: Warning: … -
Replied To a Post in Session
The `header();` function also needs to be before any output to the browser, if I'm not mistaken. You basically just wamt to move the PHP in your code (lines 46-58 …
The End.