Search found 13 matches

by Georgezx9
Sat Dec 10, 2016 1:19 am
Forum: PHP coding => Images
Topic: Image resize not working
Replies: 1
Views: 876

Image resize not working

The code below does not display an image it simply puts a load of hieroglyphic on the screen as if its the bytes of data, but not formatted as a picture. Initially it was a simple straight code with out it being a function and it works, but in the function it does not, any help greatly appreciated. ...
by Georgezx9
Tue Dec 06, 2016 1:36 pm
Forum: PHP coding => Images
Topic: Dynamically resize an image
Replies: 1
Views: 822

Dynamically resize an image

Trying to get a picture to appear on screen, resized to a width 128. Trying to get a picture to appear on screen, resized to a width 128. echo '<img src="image.php?img_url=<?=base_64_encode("'.$path.$match["photoname"].'"?>&width=128'> I get no errors, but no picture appears either This one works al...
by Georgezx9
Fri Jan 30, 2015 12:52 am
Forum: PHP coding => General
Topic: Cant understand Photoshop gallery code
Replies: 0
Views: 472

Cant understand Photoshop gallery code

Hi, I have used photoshop to create a photo gallery, but cant stop it creating the series of HTML files as Index, index1 etc. I need them to be something else. I have tried changing the code but get an error. What it does is it gives a preview page of 9 images, with the ability to get to the next or...
by Georgezx9
Sun Jan 25, 2015 2:17 pm
Forum: PHP coding => General
Topic: Checking for user logged in
Replies: 1
Views: 450

Checking for user logged in

Hi I am essentially joining two websites together, a login and a picture gallery, the logic is that the user cant see the gallery, unless they are logged in. In the log in pages, a session id gets created, all the other php pages work correctly, and jump out of the page if not logged in, however the...
by Georgezx9
Mon Aug 11, 2014 2:10 pm
Forum: PHP General
Topic: Expression web
Replies: 0
Views: 600

Expression web

Hi all, hope this is posted in the correct board. I am starting to get better at PHP programming, and have decided to cancel subscription to Dreamweaver CC. I started using Notepad ++, but really struggled to get it set up to use WAMP/WWW as the testing site directory, so have tried to use Expressio...
by Georgezx9
Sat Apr 26, 2014 9:13 am
Forum: PHP coding => General
Topic: magic quotes
Replies: 1
Views: 487

magic quotes

I have two different php files, that use the standard routine to sort out characters, one works one does not, one is used in reading data from an sql database, there other is in support of writing data, its this one that does not work. The standard routine is: function quote_smart($value, $handle) {...
by Georgezx9
Wed Apr 23, 2014 2:11 pm
Forum: PHP coding => General
Topic: Problems with sessions
Replies: 0
Views: 360

Problems with sessions

Hi I am trying to pass variables between pages, does the session logic only work between the next page called or all pages. I have a variable on page 1 (actually a column value from SQL query-$result['ID']): session_start(); $_SESSION['thisblogno'] = $result['ID']; Page 2 does not use the variable b...
by Georgezx9
Mon Apr 14, 2014 4:00 am
Forum: PHP coding => General
Topic: Please help - my head hurts
Replies: 2
Views: 616

Re: Please help - my head hurts

Thanks, will try, Bizarrely, I have done a lot of programming over the years!!!, Machine code and pascal, and can do a reasonable attempt at HTML, but some parts of php/sql are painful for me, but I will keep trying. I have aspirations of writing a larger web page, without using the standard web mak...
by Georgezx9
Sun Apr 13, 2014 2:11 pm
Forum: PHP coding => General
Topic: Please help - my head hurts
Replies: 2
Views: 616

Please help - my head hurts

I cant get my code to work, I get the error, what is it I am doing wrong? "Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\wamp\www\process-7.php on line 23" , various web responses suggest its my database access or query that wrong. I have tried the code in php adm...
by Georgezx9
Sat Apr 12, 2014 2:24 pm
Forum: PHP coding => General
Topic: SQL query help
Replies: 1
Views: 363

SQL query help

I have the following code which is giving the following error: ( ! ) Parse error: syntax error, unexpected ';' in C:\wamp\www\process-6.php on line 18 (the select from line) Its a simple code, Name comes from a posted form field, user-name is the field name in the table. Clearly simple but not simpl...
by Georgezx9
Mon Apr 07, 2014 2:26 pm
Forum: PHP coding => General
Topic: Undefined index help
Replies: 1
Views: 471

Undefined index help

Firstly I am learning so please bear with me. The code below gives the errors in lines 57&58, its because the two variables form1_username and form1_password presumably don't have values, how do I fix this. It has a few areas only there for me to see what is happening, so apologies. <!doctype html> ...
by Georgezx9
Tue Apr 01, 2014 12:44 pm
Forum: PHP coding => General
Topic: Basic PHP form stuff
Replies: 3
Views: 840

Re: Basic PHP form stuff

Thanks but I still get <?php echo $d->format('d/m/Y');?> in the date field box, not the date.

Thanks
by Georgezx9
Mon Mar 31, 2014 1:29 pm
Forum: PHP coding => General
Topic: Basic PHP form stuff
Replies: 3
Views: 840

Basic PHP form stuff

Hi all newbie starting off here and HELP! I have a form that I want someone to type text into, this will later be saved to an SQL DB. I also have a date field, that I want to come up as dd/mm/yyyy, pre filled out with todays date, that cannot be edited. The text area works, but the date is a mess, a...