Go Back   CodingForums.com > Search Forums

Before you post, read our: Rules & Posting Guidelines

Showing results 1 to 25 of 50
Search took 0.27 seconds.
Search: Posts Made By: epheterson
Forum: PHP 01-18-2013, 07:14 AM
Replies: 3
Views: 181
Posted By epheterson
Never in my life have I spent so much time on...

Never in my life have I spent so much time on such a tiny thing. I hope somebody finds this page someday, thanks.
Forum: Apache configuration 01-18-2013, 06:30 AM
Replies: 5
Views: 492
Posted By epheterson
I don't understand the question. CSS is...

I don't understand the question.

CSS is generally a completely separate entity from PHP. If you'd like to actively modify CSS code, you should look into javascript solutions, and you can even use...
Forum: PHP 01-18-2013, 06:27 AM
Replies: 3
Views: 181
Posted By epheterson
Question Should be simple... echo count of rows in MySQL table

<?php

$server="localhost";
$user="user";
$password="password";
$database="database";

$db = new mysqli($server,$user,$password,$database);
if ($db->connect_errno) {
printf("Connect failed:...
Forum: Computer Programming 10-28-2010, 02:39 PM
Replies: 0
Views: 2,348
Posted By epheterson
Batch file -> Compare strings

I know it's super lame of me to come to this prestigious forum for a batch file, but it's giving me hell.

I've read a ton of sites trying to do this properly, but continually get 'The syntax of...
Forum: PHP 04-07-2010, 04:40 AM
Replies: 2
Views: 2,092
Posted By epheterson
You, sir, are very talented. Thank you.

You, sir, are very talented. Thank you.
Forum: PHP 04-07-2010, 03:26 AM
Replies: 2
Views: 2,092
Posted By epheterson
'Page rendered in X seconds' at top of page?

Google does it, I want to also.

How can I display the page rendered time at the top of the page? The only way I can think of is to save my entire output as a string (instead of echoing it during...
Forum: Computer Programming 03-25-2010, 08:35 PM
Replies: 4
Views: 899
Posted By epheterson
eu4ria, I've considered many ways of doing it and...

eu4ria, I've considered many ways of doing it and still believe the current implementation is the best. Your solution wouldn't work (as I understand it) because the new and old backups have the same...
Forum: Computer Programming 03-25-2010, 06:02 PM
Replies: 4
Views: 899
Posted By epheterson
Ha Mike, thank you. I did google, but I suppose...

Ha Mike, thank you. I did google, but I suppose not the right keywords.

http://lmgtfy.com/?q=bat+file+%2B+variables

This is the winner:...
Forum: Computer Programming 03-25-2010, 04:05 PM
Replies: 4
Views: 899
Posted By epheterson
Simple .bat file question

I didn't see any other forum this would be appropriate in. So I have this script:

cls
@ECHO OFF
ECHO. ********************************
ECHO. ** SERVER BACKUP **
ECHO. ** ...
Forum: Java and JSP 03-01-2010, 05:23 PM
Replies: 3
Views: 2,781
Posted By epheterson
Oh I'm sorry I thought in order and level order...

Oh I'm sorry I thought in order and level order were well known. Inorder is a string of tree elements (assuming a tree of chars) such that if you squished the tree down flat, all left-right...
Forum: Java and JSP 02-26-2010, 09:18 PM
Replies: 3
Views: 2,781
Posted By epheterson
Build Tree from Level Order & In Order Strings

Hey, I'm having trouble realising how I should code this project. The hint is to use a FIFO queue. I've deduced that in this queue, I'll be inserting root elements, one at a time from Level Order,...
Forum: MySQL 12-12-2009, 03:13 AM
Replies: 14
Views: 1,151
Posted By epheterson
Thanks, seco, Pedant and tom. I believe...

Thanks, seco, Pedant and tom.

I believe INSERT..ON DUPLICATE KEY UPDATE is what I was looking for, just gotta sit down and implement now.

Also, Pedant, those are all the fields I have at the...
Forum: MySQL 12-12-2009, 02:13 AM
Replies: 14
Views: 1,151
Posted By epheterson
Pedant, this is exactly why I started this...

Pedant, this is exactly why I started this thread. I don't want to make two query calls, in an ideal world I'd have something like...

UPDATE_OR_INSERT where filename = $filename ....

I didn't...
Forum: MySQL 12-12-2009, 01:36 AM
Replies: 14
Views: 1,151
Posted By epheterson
I'm stumbling forward with this at the moment... ...

I'm stumbling forward with this at the moment...

$entry = mysql_query("SELECT * FROM $database WHERE filename='$filename'");

echo $entry;

if($entry)
{
echo 'Updating ' . $filename ....
Forum: MySQL 12-12-2009, 12:28 AM
Replies: 14
Views: 1,151
Posted By epheterson
Insert OR Update

Is there a common convention to either insert a new record if none exists, or update a record if it does exist based on the first column in a row?

I imagine this is a common task, should I just...
Forum: MySQL 12-11-2009, 11:42 PM
Replies: 7
Views: 960
Posted By epheterson
I think I've found a method that is simple enough...

I think I've found a method that is simple enough for me to not fret over.

http://drupal.org/node/31506


It's running a simple scheduled-task CRON on windows which grabs a PHP file, via wget...
Forum: MySQL 12-09-2009, 07:59 PM
Replies: 7
Views: 960
Posted By epheterson
Old Pedant, you're awesome, you've helped me out...

Old Pedant, you're awesome, you've helped me out elsewhere on the forums before.

There is no such thing as an unknown state, it is either missing, or has an age. If it's age is less than 5 days...
Forum: PHP 12-09-2009, 05:24 AM
Replies: 2
Views: 799
Posted By epheterson
One way: ...

One way:
http://www.pixel2life.com/publish/tutorials/729/reloading_a_page_using_php/

<?php
$page = $_SERVER['PHP_SELF'];
$sec = "10";
header("Refresh: $sec; url=$page");
echo "Watch the page...
Forum: PHP 12-09-2009, 05:14 AM
Replies: 5
Views: 5,117
Posted By epheterson
You'll likely have to make it. To start: ...

You'll likely have to make it.

To start:
http://www.phpclasses.org/browse/package/2874.html

Good luck
Forum: PHP 12-09-2009, 05:09 AM
Replies: 4
Views: 585
Posted By epheterson
I believe that simply means the passwords aren't...

I believe that simply means the passwords aren't equal.

Double check what you set the password to in MySQL and in the file.
Forum: MySQL 12-09-2009, 05:04 AM
Replies: 5
Views: 1,048
Posted By epheterson
I don't understand why you're introducing $_POST...

I don't understand why you're introducing $_POST into this deal. Is the addition done on a new page and it's submitted through a form via POST?

If this is the case, $_SESSION has nothing to do...
Forum: MySQL 12-09-2009, 05:00 AM
Replies: 7
Views: 960
Posted By epheterson
Implementation Ideas? Scan directory then return states

I have a functioning local PHP script where I work which checks the age of a list of files in a directory and returns their health (if they're older than 5 days, they're not healthy).

The problem...
Forum: Ajax and Design 12-06-2009, 07:18 PM
Replies: 2
Views: 1,938
Posted By epheterson
Great if a framework is unnecessary! I just...

Great if a framework is unnecessary! I just haven't used much of them before and thought it could make the job easier.

I believe this might almost do the trick:...
Forum: Ajax and Design 12-06-2009, 02:33 PM
Replies: 2
Views: 1,938
Posted By epheterson
AJAX Link Text -> Textbox then Insert into MySQL

I have this idea for a clever way to insert Titles into a database for a list of entries which would otherwise be only numbers.

That is for something unnamed, it says 'Nameless' where the title...
Forum: PHP 12-05-2009, 09:54 PM
Replies: 5
Views: 794
Posted By epheterson
I'm doing this, but I know it's not the right...

I'm doing this, but I know it's not the right way:

$toRemove = preg_replace( '/^(\d+)/', "", $houseName );
$houseName = str_replace($toRemove,"",$houseName);
Showing results 1 to 25 of 50

 
Forum Jump

All times are GMT +1. The time now is 11:18 AM.