Started in 1980 with BASIC on a Sinclair ZX80. Various flavours of BASIC later, went to Uni and did a final year project using a dynamically assigned 48 processor array (Transputers - who remembers them?) to calculate fractals, stint in support, LAMP stack coder from 2004, never looked back.

Kids nowadays eh? They've got it easy! GUI? I'd have killed for a GUI! We had to code on clay tablets

18h
answered upgrade mysql 5.0.x to 5.x on appserv windows
19h
answered new to oop in PHP a plea for clarifying concepts
21h
comment how to show not available rooms in my table
Stop using the mysql_ functions. Change to mysqli_ or PDO type. The mysql_ functions are deprecated in PHP 5 and removed completely in PHP 7
21h
answered Preventing overwrites from concurrent forms in PHP
21h
comment login using curl in indeed
That screenshot tells me nothing. That's like saying "My car is broken" and expecting me to know exactly what you mean and what I need to do to fix it without doing any diagnostics. You need to add debug code to your application and log all the interactions between scripts. Log data before and after function calls. Check error logs on the server. Once you've done this, people may be able to help you. Until then, you're going to have to fix this on your own
21h
comment upgrade mysql 5.0.x to 5.x on appserv windows
Do a backup, upgrade the software, restore if data loss. This needs to be done out of hours and practised LOTS OF TIMES on a test machine so that you know what you're doing
21h
comment login using curl in indeed
What errors are you seeing? What does the web server log say? What does the login procedure do?
21h
comment slow down website performance
Performance will depend on how many records that query is updating. If there's millions of records in the table then it will take time (where's no WHERE clause to select a subset) and there's nothing you can do about it. What actually kicks the query off? If it's a scheduled task then change the time it runs to late night/very early morning
21h
comment How Can I Convert CURL command to PHP?
You may have to mess around with the CURLOPT_SSLKEY and CURLOPT_SSLCERT options - not sure if I got them round the right way. Either way, they need to be absolute values as your PHP may not have the same environment as you (different $HOME etc)
22h
answered How Can I Convert CURL command to PHP?
22h
awarded Supporter
1d
comment How to print the result of a Phalcon query result?
To find out what type it is, use echo gettype(lireParCritere("xxx")); or $r=lireParCritere("xyz"); echo print_r($r,true).PHP_EOL;. The first will tell you the type, the second will tell you the data that it contains. From there, write your code accordingly
1d
comment How to print the result of a Phalcon query result?
What have you tried so far? What does the function return? What format do you want it in?
1d
comment how to add an auto Increment to a table which has composite key means two primary keys
What is the schema definition for the table? Are both ProertyID and ImageID integers or strings? If the latter, you can't do what you want to do. Am I correct in assuming that the values for these two fields come from separate, related tables? If so, just add a single field which is auto-increment and add separate indexes for PropertyID and ImageID and not a composite
2d
comment PHP/MySQL prevent user from accessing other users uploaded file
If this worked then can you accept it as the answer - it marks the question as complete
Jul
24
comment Image reading in PHP displays code rather than image
OK. Rather than all of your shown code, you should just be using the <img src="<?php echo $name; ?>" /> structure. The data that is being displayed is the header information from a JPEG file. Have you opened the JPEG file in another program (GIMP?) to check that it is valid? Have you tried a variety of browsers? Have you tried hard coding the image name in the <img.../> tag to check that it works correctly?
Jul
24
comment Image reading in PHP displays code rather than image
When you say "displays code", what do you actually mean? Do you mean that echo $name is displayed in the image's place or something else?
Jul
23
comment Image reading in PHP displays code rather than image
Why not just use <img src="<?php echo $name; ?>" /> ?
Jul
23
answered PHP/MySQL prevent user from accessing other users uploaded file
Jul
23
comment PHP/MySQL prevent user from accessing other users uploaded file
Quick observation - you're storing user's passwords in plain text and doing a straight comparison. In the interest of security, you should be storing a hash of the user's password and then comparing that to the value supplied by the user which has been hashed in the same way. Also, stop using mysql_ functions - they have been deprecated and removed completely in PHP 7. Use PDO or mysqli_ and use prepared statements - you'll thank me in the long run
1 2 3 4 5