Search found 375 matches

by mecha_godzilla
Sun Apr 03, 2016 2:58 pm
Forum: Linux
Topic: diff over FTP
Replies: 5
Views: 24710

Re: diff over FTP

Thank you both for your suggestions. I haven't used rsync before so that's something I need to look at. I use Fossil for version control rather than Git but that's just because I found Fossil easier to get on with - I do have Git installed though. So, I guess I need to do some reading up and report ...
by mecha_godzilla
Sat Apr 02, 2016 12:25 pm
Forum: Linux
Topic: diff over FTP
Replies: 5
Views: 24710

Re: diff over FTP

Thanks - I'll look into that. I think rdiff might be closer to what I want because what I need to be able to do is see whether or not any changes have been made to the files on the remote server before I overwrite them, so that I can sync my local copy of the files before I overwrite the copies on t...
by mecha_godzilla
Sat Apr 02, 2016 10:04 am
Forum: Linux
Topic: diff over FTP
Replies: 5
Views: 24710

diff over FTP

Hi, Does anyone know how I can diff files on my local machine and a remote server accessible only via FTP? The problem I have is that my client doesn't have any kind of CVS and I have to do all my development on my local machine before uploading it to their test server, then if everything works OK I...
by mecha_godzilla
Fri Aug 02, 2013 4:05 pm
Forum: PHP - Code
Topic: two values from one select list
Replies: 13
Views: 3399

Re: two values from one select list

Hi again, You will need two queries: 1. The first query will be used to populate the selection menu and will retrieve the details of all of the products in the database. 2. The second query will be used to retrieve the details of one product in the database. This query is only run after the form has...
by mecha_godzilla
Thu Aug 01, 2013 2:53 pm
Forum: PHP - Code
Topic: Help me with PHP coding
Replies: 4
Views: 900

Re: Help me with PHP coding

Hi, Just to add to what requinix is saying, I think you will need to run a database query to count the number of transactions that user has made each time they make a new transaction and then update their record in the database. In theory, it would be easier to just calculate the number of transacti...
by mecha_godzilla
Thu Aug 01, 2013 2:36 pm
Forum: PHP - Code
Topic: two values from one select list
Replies: 13
Views: 3399

Re: two values from one select list

Hi again, I don't quite understand how your tables all interact, so it would probably be better if I explain what I was trying to demonstrate with the example code I posted: 1. In order to populate your selection menu you just need to retrieve two values - the stock IDs and names of every product in...
by mecha_godzilla
Wed Jul 31, 2013 7:58 pm
Forum: General Discussion
Topic: How to make E-commerce website by using MVC in PHP?
Replies: 4
Views: 5286

Re: How to make E-commerce website by using MVC in PHP?

Agreed. E-commerce sites are by their very nature complex. A good place to find case studies on MVC applications would be by looking at how other frameworks manage this - Yii, Kohana, Zend and Symfony have lots of reference material on their sites and the source code is freely available. The likelih...
by mecha_godzilla
Wed Jul 31, 2013 3:51 pm
Forum: PHP - Code
Topic: two values from one select list
Replies: 13
Views: 3399

Re: two values from one select list

Hi, I think what requinix was suggesting is that you populate the selection menu using either the StockID or ProductID value, and then run a query after the form has been submitted to retrieve the other values. So, when you generate your menu you could use the value of StockID as the submitted value...
by mecha_godzilla
Tue Jul 30, 2013 3:52 pm
Forum: Databases
Topic: MySQL - getting dates from a table earlier than today
Replies: 4
Views: 4842

Re: MySQL - getting dates from a table earlier than today

Hi, Is the value in the EventID column meant to be unique? I don't quite understand what the issue is - based on what you're saying, the first query already does what you want. If the problem is that the EventID column is not unique, and your query is returning more than one result for the same Even...
by mecha_godzilla
Tue Jul 30, 2013 3:43 pm
Forum: HTML, CSS and other UI Design Technologies
Topic: Tool Messages not working in IE
Replies: 1
Views: 3097

Re: Tool Messages not working in IE

Hi, What happens in IE if you remove the !important declaration? Perhaps the .toolMsg class is automatically inheriting the "display:block" property in IE browsers and overriding the "display:none" property. Alternatively, take a look at the example on the following site: http://...
by mecha_godzilla
Sun Jul 28, 2013 8:33 am
Forum: Javascript
Topic: Only apply style settings to certain stylesheets with jQuery
Replies: 0
Views: 2847

Only apply style settings to certain stylesheets with jQuery

I use the following code to display a pop-up window in one of my pages: <div id="pop_up_window_container"> <div id="msgbox"> <a class="logo"><img src="images/logo.png" width="163" height="49" title="Logo" /></a> <a class="clo...
by mecha_godzilla
Sun Jul 21, 2013 3:31 pm
Forum: PHP - Code
Topic: loop though text file
Replies: 4
Views: 1237

Re: loop though text file

Hi, Here is an example similar to what Celauran has just suggested: $filename_contents = file_get_contents('my_text_file.txt'); $lines = explode("\n", $filename_contents); $number_of_lines = count($lines); for ($i = 0; $i < $number_of_lines; $i++) { $lines[$i] = chop($lines[$i]); echo $lin...
by mecha_godzilla
Thu Jul 18, 2013 3:30 pm
Forum: PHP - Code
Topic: Round Robin specific Tennis scheduler
Replies: 1
Views: 1405

Re: Round Robin specific Tennis scheduler

Hi, One way to do this would be to store values for each player in an array and then use something like PHP's array_rand() function to select a random player from that array. If you then remove that player's entry in the array then your script won't pick that player again when your script needs to s...
by mecha_godzilla
Wed Jul 17, 2013 7:44 pm
Forum: PHP - Code
Topic: Help With SiteMap Pretty Please? :)
Replies: 12
Views: 3365

Re: Help With SiteMap Pretty Please? :)

For the benefit of anyone else that might have this problem: The site map generated by SimplePress theme is populated using the wp_list_authors() function which can be found at /wp-includes/author-template.php and is therefore part of the WordPress codebase. This issue with using this function is th...
by mecha_godzilla
Wed Jul 17, 2013 3:24 pm
Forum: PHP - Code
Topic: Help With SiteMap Pretty Please? :)
Replies: 12
Views: 3365

Re: Help With SiteMap Pretty Please? :)

Bre - I've just PMed you about this.

M_G