Search found 9 matches

by axcrow
Thu Aug 12, 2010 2:22 pm
Forum: PHP - Code
Topic: Adding if to this code
Replies: 1
Views: 115

Re: Adding if to this code

Hello,
this is what you should use

Code: Select all

$image1 = ($_GET["image_id_1"]!="") ? "image_id_1=" . $_GET["image_id_1"] . "&"  : '';
by axcrow
Tue Aug 10, 2010 3:23 pm
Forum: Javascript
Topic: onclick text in form fields
Replies: 1
Views: 493

Re: onclick text in form fields

Greetings =) the second problem was that you were missing the second '=' in the if statement. and the first - we catch an event onmousedown anywhere in the document - and call a function that does what we need. <script type="text/javascript"> document.onmousedown = function() { reset_value...
by axcrow
Tue Aug 10, 2010 12:06 pm
Forum: PHP - Code
Topic: Browser hanging with mysql query.
Replies: 10
Views: 483

Re: Browser hanging with mysql query.

The script works fine if run it from the local computer/server, but if i run the script for client machine the browser hangs. Hm, you mean that the client machine - actually executes the script which connects to a remote db server? If so - that is a different issue =) .. But if the script and the d...
by axcrow
Tue Aug 10, 2010 7:01 am
Forum: PHP - Code
Topic: Multi-dimentional array - how to?
Replies: 4
Views: 209

Re: Multi-dimentional array - how to?

echo sm_array[1]['col_1'];
should be
echo $sm_array[1]['col_1'];
by axcrow
Mon Aug 09, 2010 11:22 pm
Forum: PHP - Code
Topic: Multi-dimentional array - how to?
Replies: 4
Views: 209

Re: Multi-dimentional array - how to?

i dont quite understood you, but do you need something like this? for($row=0; $row<=10; $row++) { for($col=0; $col<=10; $col++) { $sm_array[$row]["col_".$col] = 'something'; } } this outputs Array ( [0] => Array ( [col_0] => something [col_1] => something [col_2] => something [col_3] => so...
by axcrow
Mon Aug 09, 2010 10:45 pm
Forum: General Discussion
Topic: Linux (Ubuntu) IDE
Replies: 4
Views: 691

Re: Linux (Ubuntu) IDE

I use eclipse PDT
by axcrow
Mon Aug 09, 2010 4:02 pm
Forum: PHP - Code
Topic: Browser hanging with mysql query.
Replies: 10
Views: 483

Re: Browser hanging with mysql query.

the browser hangs = becomes unresponsive? or just gives a blank page?
by axcrow
Mon Aug 09, 2010 3:50 pm
Forum: PHP - Theory and Design
Topic: Pretty Urls With Master Page?
Replies: 2
Views: 1744

Re: Pretty Urls With Master Page?

You could redirect everything to index.php with htaccess - mod_rewrite - without changing the url - hidden redirect. Then in index.php you parse the $_SERVER['REQUEST_URI']. for example you could explode the request_uri by '?' and then by '/' - or do it with regexp finally you include the 'page' you...
by axcrow
Mon Aug 09, 2010 2:36 pm
Forum: PHP - Code
Topic: path problem
Replies: 2
Views: 405

Re: path problem

set_include_path() might help