Posts
 
Reputation
Joined
Last Seen
Ranked #2K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
100% Quality Score
Upvotes Received
3
Posts with Upvotes
3
Upvoting Members
2
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
1 Commented Post
0 Endorsements
~4K People Reached
Favorite Tags
Member Avatar for GhostDragon

Hello, I'm new into PHP. Just migrated from Java recently. I'm trying to make a conversion machine that conver number to romans number. Here is the code I wrote : !DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Latins to Romans Conversion</title> </head> <body> <h2>Latin to Romans …

Member Avatar for bobgodwin
0
464
Member Avatar for Martin_42

Hi all I'm trying to put together a room hire site, to be used by the lettings clerks, for our local Quaker meeting house and I've hit a couple of problems. I have an HTML form that, using data from a MySQL database and some JSON and JavaScript, when a …

Member Avatar for Martin_42
0
259
Member Avatar for bobgodwin

I need to check the extention of user uploaded files when running a gulp-sass task. I have a file exists function that seems to work, but can't get thereturn value into the task. Here's my gulp file: var fileexists = require('file-exists'); var gulp = require('gulp'); var sassVars = require('gulp-sass-vars'); var …

0
274
Member Avatar for bobgodwin

I need to sort items from multiple columns. I use this to get the id from the columns and format the data: $.fn.serial = function() { var array = []; var $elem = $(this); $elem.each(function(i) { var id = this.id; $(move_selector, this).each(function(e) { array.push( 'id[]=' + this.id ); }); }); …

Member Avatar for bobgodwin
0
427
Member Avatar for bobgodwin

I need to find the largest height & width values in a directory. I've tried to use: if ($handle = opendir('path/to/image')) { while (false !== ($file = readdir($handle))) { if (preg_match('/(jpg|gif|png)/', $file )) { $images[] = $file; list($width, $height) = getimagesize('path/to/image/'.$file); $max_w = max(array($width)); $max_h = max(array($height)); } } closedir($handle); …

Member Avatar for veedeoo
0
383
Member Avatar for bobgodwin

I've been looking for the answer to this problem for a while. I'm using nyroModal in gallery to show php pages. but the popup doesn't resize the first time it loads. I use this link: <a href="galtest.php" class="nyroModal cursor" rel="gal"><img src="img/gallery/thumbs/OldMiami.jpg" class="Tips1" title="In the Backyard Of The Old Miami (Detroit, …

Member Avatar for JavaScprit
0
434
Member Avatar for [csharp]

I try to create dropdown list with informations from title column in sql table, but never succeeds. My connection and query is good. Can somebody to help me with this? mysql_connect(***); mysql_select_db(***); $query = mysql_query("SELECT title FROM test"); Thanks!

Member Avatar for bobgodwin
0
231
Member Avatar for bobgodwin

I'd like to get a list of folders that don't contain certain files. I'm using this to list directories & files: [code=php]$path = "media"; $dir_handle = @opendir($path) or die("Unable to open $path"); function list_dir($dir_handle,$path) { while (false !== ($file = readdir($dir_handle))) { $exclude = array(".","..","_player_thumbs","Thumbs.db"); $dir =$path.'/'.$file; if(is_dir($dir) && !in_array($file, …

Member Avatar for bobgodwin
0
239
Member Avatar for bobgodwin

I'm building a web page that gets information from a mySQL database. It's setup like this: [CODE]<?php if ($act == "") { //// Get the index page $myQuery = "SELECT * FROM $menu WHERE control='index' "; $result = $dbh->prepare($myQuery); $result->execute(); while($row = $result->fetch()){ $page = $row['title']; $myQuery = "SELECT * …

Member Avatar for hielo
0
143
Member Avatar for bobgodwin

I'm using this code to check if a record exists or not: [CODE] $filename = $_FILES["file"]["name"]; /// FROM FORM $ext = substr($filename, strpos($filename,'.'), strlen($filename)-1); $bull = substr($filename, 0, strpos($filename, '.')); $myQuery = "SELECT * FROM $media WHERE label='$bull' "; $result = $dbh->prepare($myQuery); $result->execute(); $cont = $result->rowCount(); if ($cont == 1) …

Member Avatar for bobgodwin
0
150
Member Avatar for dschuett

Hey everyone, I am trying to write a script that goes through a certain directory and all its sub directories and have it return ONLY a list of FILES (not directories). I have this working good so far for a single directory: [CODE] <?php session_start(); ?> <html> <head><title>page</title> </head> <body> …

Member Avatar for diafol
0
120
Member Avatar for bobgodwin

I'm have a script that outputs files and folders w/ folders as a header and the files listed below. I'd like to sort them alphabetically, but can't seem to figure it out. I think I need to get them into an array. Or use scandir. Here's the code: [CODE]function getDirectory( …

Member Avatar for bobgodwin
0
545
Member Avatar for bobgodwin

I have some code that I'd like to add numbers to. I'm using [iCODE]$count=o;[/iCODE] with[iCODE]++$count[/iCODE] to generate numbers. They start at "1". How do I get them to start at "0"?

Member Avatar for EvolutionFallen
0
105
Member Avatar for bobgodwin

Is there a way to get a distinct value from a table and echo it as a id for a div tag and still have the rest of the values echo too? Say I have a table with these values: category item With 3 categories each having 3 items I'd …

Member Avatar for bobgodwin
0
130
Member Avatar for jhbalaji

Hello, I need your help DP Friends I need to create a script which can accept the contents post to it via email and able to store that in a DB Permanently and able to display that in a php page The individual email sent to it must display as …

Member Avatar for jhbalaji
0
243
Member Avatar for bobgodwin

I need to get a file name from a jpg without the extension to use as id in a span tag. Here's the code I'm using: [CODE] <?php $result = mysql_query("SELECT * FROM $data_sales_earrings ORDER BY id ASC"); while($row = mysql_fetch_array($result)) echo " <span id=\"need file name from jpg front\"><img …

Member Avatar for bobgodwin
0
221