39,316 Topics

Member Avatar for
Member Avatar for Casperjames

Here's what I want: [CODE]$practice_name = preg_replace("/\([^\)]+\)/","",$practice_name); echo($practice_name); [/CODE] But that does not work when I reference the variable then. This however does work. [CODE]echo(preg_replace("/\([^\)]+\)/","",$practice_name));[/CODE] But I do not want to update my code every time I reference $practice_name, I only want to update where the variable gets assigned.

Member Avatar for Casperjames
0
118
Member Avatar for DaveyMoyes

Hi everyone :) I am working on a small error message, but i can not seem to get it to work correctly. Basically, what I am trying to do, is check the account balance field from a mysql database against a variable of $smsnum smsnum is automatically populated based on …

Member Avatar for diafol
0
164
Member Avatar for ronysios

[CODE]<? ob_start(); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Guitar Wars - Add Your High Score</title> <link rel="stylesheet" type="text/css" href="style.css" /> </head> <body> <h2>Guitar Wars - Add Your High Score</h2> <?php require_once('appvars.php'); require_once('connectvars.php'); if (isset($_POST['submit'])) { // Grab …

Member Avatar for ronysios
0
120
Member Avatar for harveylester

Hi, When I enter submit search terms into the search bar on my site ([url]http://www.projectdisobey.com/disobeyclothing/[/url]), and then put the resulting page through a validation test at [url]http://validator.w3.org/check[/url], I get the following validation errors: [url]http://i1118.photobucket.com/albums/k616/HarveyLester/Validation-Errors.jpg[/url] I know that all these errors are resulting from an unencoded ampersand. My question is, which …

0
58
Member Avatar for IWDesigns

hi everyone... i have a page running html and javascript... basically its a faq page, viewers click on a question heading and then the related questions appear below (done using the js hide command) i had the problem where everytime i clicked a heading the page went back to the …

Member Avatar for IWDesigns
0
97
Member Avatar for irffan

HI,I am web development beginner and i have to make an online database project in just 8 to 9 weeks,please recommend me that which tool i should use to make my project that is fast ,reliable and efficient... Following are the tools under my consideration Joomla Dream weaver xamp wamp …

Member Avatar for cwarn23
0
116
Member Avatar for hindu times

Hi there, I've been given the task of adding a Google recaptcha to a form on this website I'm working on. I'm not really familiar with the code that I've been given to edit, so I was wondering if anyone can help me. Basically, the "contact" page looks like this …

0
129
Member Avatar for Kennych

Not sure why I'm getting this but I get an space when there is an incorrect login to my webpage. [url]www.redargon.com/temp.php[/url] My two classes [url]http://pastebin.com/841ZzhcP[/url] <---login page aka temp.php [url]http://pastebin.com/jUhw1Vqp[/url] <---class login (contains all methods) Any help here would be great.

0
61
Member Avatar for kgizo

Hello I just read a document using PHP and I need to skip the first 58 lines of that document and then start sending the data that follows from those lines to my database. How do I go about skipping the first 58 lines of the document. I really need …

Member Avatar for kgizo
0
180
Member Avatar for Tariq12010

Hi Sir, My name is tariq , i am intrnee developer in my company . i have project EPS which i will make using joomla cms mvc so i need help more because i am intrnee please must be help me any one thank you very for this kind of …

Member Avatar for Tariq12010
0
97
Member Avatar for turt2live

What this script does is take in an image and export a thumbnailed version. Function Arguments: $file : Desired image to create a thumbnail of $destination : End location for the thumbnail $zoom : Setting type, explained later (default: false) $t_width : Thumbnail width (default: 150) $t_height : Thumbnail height …

Member Avatar for turt2live
0
539
Member Avatar for Joemeister

Hi fellow programmers! What I want to do is this... * I have a list of registered users * next to each user is a link "Add as friend" * user_1 clicks the link to add user_2 * user_2 now needs to confirm or deny the request WILL THIS TABLE …

Member Avatar for diafol
0
120
Member Avatar for suncica2222

I want to adjust this class that is written for phpBB2 into phpBB3 forums. Here is curl_phpbb.class.php complete code: [url]http://www.phpkode.com/projects/item/curl-phpbb-functions/[/url] I am working at this function: function new_topic($forum_id, $message, $topic_title) As I can see, GET and POST params are different for phpBB3 and that is [B]my main problem: to send …

Member Avatar for diafol
0
1K
Member Avatar for Jones_nash

Hello there my friends, I was looking to the best PHP code generator in the market, i already take a look into some frameworks but before i buy it i wanted to take a look here to know if you guys have any sugestion. Any of you already have/use/bought any …

Member Avatar for Ezzaral
1
189
Member Avatar for Virangya

Hi, I want to control devices using php. But don't have a clear idea how i'm going to do that. I googled and got to know about DIO functions. Eve by using them i don't have a clear idea how to do it practicably. If want to control my web …

Member Avatar for chrishea
0
206
Member Avatar for turt2live

Hello, I've been trying to create a script that will take defined pages of a PDF and display them to a webpage using PHP. I've looked through the PHP Manual and only came up with ways to create a PDF, but no read options. --Detailed Scenario-- My school wanted me …

Member Avatar for turt2live
0
298
Member Avatar for aaloo

i have this code in a page called process.php to create a page dynamically. [CODE]$_SESSION['z']=$post; $string = '<?php $p='.$_SESSION['z'].'; ?> '; $fp = fopen("$post.php", "w"); fwrite($fp, $string); fclose($fp); [/CODE] if $post=big then it creates a page big.php with this code [CODE] <?php $p=big; ?> [/CODE] but i want to write …

Member Avatar for aaloo
0
142
Member Avatar for skinbug

Hi, I am posting in PHP forum as I believe it is a PHP problem. I have seen examples of inserting multiple rows and it seems there are generally 2 options...to use multiple insert commands or to 'concatonate' the query. I have tried these options but with no success. So …

Member Avatar for Stefano Mtangoo
0
2K
Member Avatar for ajbest

Can anyone tell me if the following query can be done? [CODE]mysql_query("SELECT a, b, (a+b) AS c FROM table WHERE c=1");[/CODE] When I try this I get an unknown column error for c. In order to get the query to work I have had to do this [CODE]mysql_query("SELECT a, b, …

Member Avatar for pzuurveen
0
180
Member Avatar for luweegee

hi guys! how do I put div tags at the beginning of the $ _SESSION until </ a> [CODE] echo $_SESSION['username'].' | <a href="logout.php">Logout</a>'; [/CODE]

Member Avatar for luweegee
0
71
Member Avatar for DarkMonarch

I guys! I need a couple of good book titles that can cover the work i need to do. I work in a call center and i need to do some modifications to the GUI, clients, operators and admin. Our platform works on asterix 1.6 with freepbx on top. we …

Member Avatar for Stefano Mtangoo
0
107
Member Avatar for mrhankey

hi, i am looking at a way of integrating an email system where users can check their own email from within the system and email from it. basicaly within the cms they should have the ability to login to their pop3 email if possible. only problem is that the cms …

Member Avatar for mrhankey
0
73
Member Avatar for digital_plunder

when i try to access this login page..an empty page open...please help with this coding [CODE] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Latest</title> </head> <body> <?php include("db.php"); if (isset($_POST["submit"])) { $username=$_POST["username"]; $password=$_POST["password"]; $query="select * from latest where username='$username' && password='$password'"; …

Member Avatar for digital_plunder
0
149
Member Avatar for JukesK

Firstly, Sorry for the long post :) Im currently creating a training database for use within the business (not done many getting used to coding) I used MySQLMaestro to construct the datagrid and have modified it to suit most my needs. however i have one issue that i cant resolve. …

Member Avatar for JukesK
0
271
Member Avatar for Jfunch

Hi i need to create a form in a .html file myteamform.html, then take the data entered into the form and process it in a .php file "roster.php" which takes the data and adds it another.html page team_roster.html. I have my form done, my problem is how do you add …

Member Avatar for decade
0
435
Member Avatar for veledrom

Hi, I pull the data from database and print it on screen. How can I print all the characters correctly? Page should support all languages worldwide. English(this is fine anyway), Turkish, Chinese, Greek, French, Tai etc. I added some header lines, meta tags like UTF-8 etc. but no joy. Thanks …

Member Avatar for cwarn23
0
85
Member Avatar for meisjen

Hey guys, I was hoping to get a little insight on this issue. I recently signed up for Yahoo Boss v2, I'm not really experienced with PHP. I honestly would have used google's api but they are charging too much for the amount of searches I'll need for this project. …

Member Avatar for meisjen
0
353
Member Avatar for lps

Good day, I am currently starting to use wordpress for better CMS and I wish to learn more about the framework. Any advises on what website I should refer to? I have download several framework to dig into but in the end I am still confused. Any reply is appreciated. …

Member Avatar for lps
0
233
Member Avatar for dr.4030

hi i created this page for displaying my products that it works with select query from data base but after all try i could show the 3 of them in pages but all i want is displaying 6 of them in different tables after each other please help me with …

Member Avatar for turt2live
0
117
Member Avatar for mrhankey

hi, is it possible for me to embed part of my site into another? i want to give someone a piece of php code maybe a page of code which will embed my whole intranet site into theirs so it looks like they are still on the other persons site …

Member Avatar for diafol
0
175

The End.