Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~2K People Reached
Favorite Tags
Member Avatar for grr

Here's my current code: /[\w\s]+/ I'm trying to make the following characters match: [CODE] Q W E R T Y U I O P A S D F G H J K L Z X C V B N M q w e r t y u i o p …

Member Avatar for YoussefUSF
0
196
Member Avatar for becraig

I need to find a way to parse an html file with php. the idea here is to read the file eg: [url]http://www.somesite.com/page.html[/url] Then look for a string eg: "This text is present " Then perform an action based on the whether or not that item is present. The if …

Member Avatar for JenniC
0
166
Member Avatar for grr

[CODE]function fafaconnect($db_host, $db_user, $db_pass, $db_name) { @mysql_connect($db_host, $db_user, $db_pass); @mysql_select_db($db_name); } if ($link = @mysql_connect("localhost", "admin", "pass")) { echo "pass-"; } else { echo "fail-"; } if ($select = @mysql_select_db("zushee")) { echo "pass-"; } else { echo "fail-"; } if ($newlink = fafaconnect("localhost", "admin", "pass", "zushee")) { echo "pass"; } …

Member Avatar for Stefano Mtangoo
0
126
Member Avatar for grr

For each individual row of an array, I would like it to sort by a function that I perform on each value. For example: Array { 1 => "great", 2 => "bad", 3 => "awesome", } and I have a function that would make great a 2, bad a 1, …

Member Avatar for grr
0
72
Member Avatar for AmericanGastro

I'm looking into developing a forum for medical purposes, however, although I have developed several websites in the past (mainly via Photoshop and Dreamweaver), I have never worked with forum software before. I am battling with whether or not to go with Invision Power's new Version 3 or VBulletin. I …

Member Avatar for AmericanGastro
0
221
Member Avatar for grr

Is it possible in any way to modify the wordpress permalink structures so that you can create a page using a script to find the page? Example: You want to make a page on [url]http://www.yoursite.com/1/2/3/4/post[/url] or whatever... You don't want to use wordpress's the_post function to display the data. Instead, …

Member Avatar for grr
0
86
Member Avatar for grr

[code=sql]SELECT DISTINCT COUNT(*) AS occurences, post_name, post_content FROM wp_posts WHERE ((post_name LIKE '%ihop%' OR post_content LIKE '%ihop%') OR(post_name LIKE '%pancak%' OR post_content LIKE '%pancak%')) ORDER BY occurences DESC[/code] I use wordpress and am writing a script. Here is the table: post_name ihop post_content pancake house Thanks, Ian

Member Avatar for grr
0
105
Member Avatar for grr

I want to make an app system like Facebook. I just need to know how to include remote files. Like, for example: [code=php] <?php require "top.php"; require "side-left.php"; //Start include (sanitize with ob_start();) require "http://blah.com/bla1/bla2.php"; //End include require "footer.php"; ?> [/code] I'd like to figure out how to get a …

Member Avatar for grr
0
135
Member Avatar for grr

Recently, a primary key in my database got messed up somehow. I ran a script to reorder the users, but now every user has the wrong private messages. [CODE] -- -- Table structure for table `fusion_messages` -- CREATE TABLE `fusion_messages` ( `message_id` mediumint(8) unsigned NOT NULL auto_increment, `message_to` mediumint(8) unsigned …

Member Avatar for dickersonka
0
80
Member Avatar for grr

I want to store a function in a MySQL Database. Like this: [code=php] <?php $query = "SELECT * FROM items WHERE item_id='$_GET['item_id']'"; $item = mysql_fetch_assoc(mysql_query($query)); $action = $item['action']; $action; ?> [/code] So in the database, $item['action'] is header('Location:blah.html'); But it could be ANY function, see. I just want to know …

Member Avatar for grr
0
142
Member Avatar for grr

[code=php] <?php $result = mysql_query("INSERT INTO ".UPREFIX."items` VALUES ( '', '".$item_name."', '".$item_descr."', '".$item_action."', '".$item_rarity."', '".$item_value."', '".$item_folder."', '".$item_image."', '".$item_cat_id."', '".$item_visibility."')"); ?> [/code] I didn't know if this would be php or MySQL. I'm getting returned the following error: You have an error in your SQL syntax; check the manual that corresponds …

Member Avatar for grr
0
91
Member Avatar for grr

Hello, I'm trying to echo $pet_list['name'], but it only gives me one value of the array. part of core.php (which is included in create_pet.php) [CODE=php]$pet_list = mysql_fetch_assoc(mysql_query("SELECT * FROM ".$db_prefix."uberpets_pet_species"));[/CODE] part of create_pet.php [code=php] if ($step == "1"){ opentable("Create a Pet"); echo "<center>Here you can create your first pet! Please …

Member Avatar for grr
0
113
Member Avatar for grr

I'm making a virtual pets script. Example of problem: User 1 creates a pet named "PET". User 2 creates a pet named "PET". Should be: User 1 creates a pet named "PET". User 2 creates a pet named "PET" but gets an error saying that the name is already taken. …

Member Avatar for grr
0
85