Search found 49 matches

by Jason_C
Wed Oct 13, 2021 4:52 am
Forum: mySQL & php coding
Topic: putting add info from DB table in to array
Replies: 0
Views: 319

putting add info from DB table in to array

CREATE TABLE `info` ( `id` int(11) NOT NULL, `section` text NOT NULL, `content` text NOT NULL ) ENGINE=MyISAM DEFAULT CHARSET=latin1; The table below is what I have setup but having issues accessing the content based on the section needed. I have tried... $result['sectionname']['content'] but nothi...
by Jason_C
Sat Jul 03, 2021 1:22 am
Forum: JavaScript
Topic: javascript email format validation
Replies: 1
Views: 753

javascript email format validation

I just can not seem to find a javascript code that checks if the format is correct. I know that someone could enter an bogus email address but thats ok. I am just after checking if the format of the email entered looks correct before the form is submitted. Please can I have some suggestions of what ...
by Jason_C
Mon Aug 01, 2016 12:58 am
Forum: HTML Basics
Topic: video tag - allows different video feeds. what about different posters
Replies: 0
Views: 4645

video tag - allows different video feeds. what about different posters

I have just been informed that on certain tablets (browsers) the 'poster' in the video tag does not show and we get a white blank area instead of the GIF image stated in the poster element. Just like we can suggest different video feeds to use and the device will use the first one that it can use, c...
by Jason_C
Thu Apr 28, 2016 1:03 am
Forum: mySQL & php coding
Topic: combine all tables in to one table - all having same fields.
Replies: 1
Views: 1990

combine all tables in to one table - all having same fields.

I am trying to join a number of tables in to one large table. Each table has the same field names and number of fields.

Is there a simple query that can do this without naming each field in the select and insert part of the query ?
by Jason_C
Tue Apr 12, 2016 1:24 pm
Forum: JavaScript
Topic: check if server response is redirect
Replies: 4
Views: 10201

Re: check if server response is redirect

For example, I wish to get the server response of say...

http://www.google.com

or http://www.yahoo.com

and find out if I get redirected... and if so what is the new site i am taken to.
by Jason_C
Tue Apr 12, 2016 10:59 am
Forum: JavaScript
Topic: check if server response is redirect
Replies: 4
Views: 10201

Re: check if server response is redirect


I am after the server response of someone else website, not mine.
by Jason_C
Tue Apr 12, 2016 3:07 am
Forum: JavaScript
Topic: check if server response is redirect
Replies: 4
Views: 10201

check if server response is redirect

I have a form where someone enters a URL, I wish to find out if a website that is entered is the main website and not a site that the entered URL is redirected to. say someone enters http://www.mysite.com but this site is the old URL and I have a new site where the old site is redirect to being... h...
by Jason_C
Sat Apr 09, 2016 3:04 am
Forum: mySQL & php coding
Topic: How to get all rows and order based on specific content of a field not alpha-numeric.
Replies: 0
Views: 2654

How to get all rows and order based on specific content of a field not alpha-numeric.

I have renamed my subject and changed the content to explain what I am trying to do. get all rows where `iswebsitelive` != 'ok' or `iswebsitelive` != 'not okish' (these will be at the top of our returned results) next get all rows where `iswebsitelive` = 'ok' or `iswebsitelive` = okish' (these I wis...
by Jason_C
Mon Aug 31, 2015 11:35 pm
Forum: PHP General
Topic: How do I convert Exif (jpg) file format to basic jpg format - server side.
Replies: 0
Views: 1504

How do I convert Exif (jpg) file format to basic jpg format - server side.

I just had someone tried to upload a photo taken from then digital camera... Exif is the signature, but has the file ext .jpg

How would I have this file format converted to a jpg when being uploaded via my upload page on my site ?
by Jason_C
Fri Aug 28, 2015 6:12 am
Forum: PHP coding => Images
Topic: Converting GIF and PNG to JPG format causes background to be black, not white/transpa
Replies: 0
Views: 1903

Converting GIF and PNG to JPG format causes background to be black, not white/transpa

GIF and PNG files uploaded keep having a black background and not white or transparent. Below is the code I used to convert them, is there something else I need to add or make sure is installed on the server to get this to work ? GD 2.3.11 is enabled on the server. if(substr($tempFileName, -4) == &q...
by Jason_C
Wed Jul 22, 2015 1:20 am
Forum: JavaScript
Topic: looking for responsive jquery image gallery script
Replies: 1
Views: 2473

looking for responsive jquery image gallery script

I have been searching for a few months now and still not able to find what I am after. I have the following code running on my site but now this is causing problems for some mobiles... Highslide JS - JavaScript thumbnail viewer I am looking for a image gallery where a load of images show on the page...
by Jason_C
Sat Jul 18, 2015 1:42 am
Forum: CSS
Topic: float left prevent centering of multiple left float within a div
Replies: 1
Views: 4572

float left prevent centering of multiple left float within a div

I have a div box with multiple left floated div boxes and I am trying to get these left floated divs to be centered within the outer div. So it has equal gap on the left and right side of the group of left floats. Its for a responsive page so depending on the size of the browser or the device viewin...
by Jason_C
Sun May 10, 2015 6:40 am
Forum: JavaScript
Topic: responsive news ticker 100% width
Replies: 0
Views: 2368

responsive news ticker 100% width

I have tohe following news ticker that is static in width on my live site, but wish to reuse it on the new responsive design but have it 100% width. I tried to change the tWidth to 100% but the ticker did not show at all, if I make the tWidth 1260px then the ticker shows, but when viewed on another ...
by Jason_C
Sun May 10, 2015 5:01 am
Forum: CSS
Topic: how to get equal height for both left and right div column
Replies: 2
Views: 4816

how to get equal height for both left and right div column

I have been trying all sorts to get the columns to be the same height, but still nothing is working... Is there something that I am missing that is so obvious to get this to work ? I know I have placed the css in the html and it is best in its own stylesheet, but this is just so I could test the cod...
by Jason_C
Wed Apr 22, 2015 6:06 am
Forum: PHP coding => General
Topic: mod rewrite that takes in to account [ and ] within the URL
Replies: 0
Views: 1245

mod rewrite that takes in to account [ and ] within the URL

I have been trying to rewrite URL's that have the [ and ] in them, so far it works to the point that I get all the characters inserted in the new URL but want to remove the /index.php from the end now. say the URL is... www.site.com/_some letters numbers and spaces & special [characters] in it/i...
by Jason_C
Mon Apr 06, 2015 2:36 am
Forum: mySQL & php coding
Topic: unordered list instead of select
Replies: 4
Views: 3444

Re: unordered list instead of select

Yes I found this page a while ago, but the code gives too many features or more than what is needed.

I am after just a basic one that works just like the normal select dropdown, no search or additional features.
by Jason_C
Wed Apr 01, 2015 9:17 am
Forum: mySQL & php coding
Topic: unordered list instead of select
Replies: 4
Views: 3444

Re: unordered list instead of select

Libraries like Choosen or Select2 ?

Sorry what are these and wher do I get them ?
by Jason_C
Wed Mar 25, 2015 6:23 am
Forum: mySQL & php coding
Topic: unordered list instead of select
Replies: 4
Views: 3444

unordered list instead of select

I know that I am unable to change the hover background of the select box, so hear that I can use an unordered list, but with so many choices I am lost. I am after a basic unordered list that would do just the basics, so I can change the hover background colour to a different colour than blue. <selec...
by Jason_C
Sun Nov 09, 2014 6:45 am
Forum: PHP General
Topic: Where to get a database for ZIP-Codes that has the Grid_N and Grid_E references
Replies: 0
Views: 1575

Where to get a database for ZIP-Codes that has the Grid_N and Grid_E references

I have been searching for a few weeks now and decided to get a little help on this on. I am after a database like that which I found for the UK postcode, but one for the USA but it needs to have the North and East references. Has anyone come across a site that offers a basic zipcode, state, Grid_N a...
by Jason_C
Mon Oct 27, 2014 11:49 pm
Forum: JavaScript
Topic: convert str to %20 and the like in JS, then PHP convert back
Replies: 1
Views: 2775

convert str to %20 and the like in JS, then PHP convert back

I have strings's that are causing problems when being sent to a PHP script via JavaScript. (not all of it is getting sent) i.e. This is someone's line of text & it's rather long. I wish to convert the whole string to some other format say like the spaces to %20 and and the & to & I think...
by Jason_C
Fri Jul 11, 2014 2:38 am
Forum: PHP coding => General
Topic: form/submit, how to check if array ISSET()
Replies: 1
Views: 1710

form/submit, how to check if array ISSET()

I have a form that has multiple check boxes and if the visitor does not select any of them the form is reloaded for them to make a manitory selection of at least one. here is a snippet of the code... (yes i know i have inline css, these will be changed to classes once it is finished) <div style=&quo...
by Jason_C
Sat Mar 22, 2014 11:04 am
Forum: mySQL & php coding
Topic: how to search only letters and numbers in tables
Replies: 0
Views: 1723

how to search only letters and numbers in tables

I wish to know how google does their search, say there is a road called St. John's Road in my database and I type in my ajax-auto-sugestion field... St John How can I get the auto-selection to show the road that is LIKE the content but do not use the . or the ' in the database If I was to start to t...
by Jason_C
Fri Mar 21, 2014 7:34 am
Forum: PHP Scripts
Topic: unable to to return part of date string using 'mdHi'
Replies: 0
Views: 1922

unable to to return part of date string using 'mdHi'

I am trying to return only the numbers of a date string like so... $futureDate = date("mdHi", strtotime(date("Y-m-d H:i:s") + '+ 10 minute')); But it is not returning the right date and time, it seems to be adding days as well and randomly. I have set the server datetime to Londo...
by Jason_C
Sun Dec 15, 2013 7:20 am
Forum: PHP coding => General
Topic: require help with CronJob
Replies: 0
Views: 1175

require help with CronJob

Hi all, I am sorry but I do not know which forum page to add this to, if possible please move to the correct one for me, or let me know which one I should post to. I have a cron job that gets all the databases under an account and zips them all up and then emails them all to my email address. But re...
by Jason_C
Fri Jan 04, 2013 2:34 pm
Forum: mySQL & php coding
Topic: how best to count comments on items.
Replies: 2
Views: 2505

Re: how best to count comments on items.

NOT SOLVED, but opted to using a completely different method. Using PHP and multiple runs on the databases. seems to work and not so heavy on the server, so all good so far.