39,393 Topics
![]() | |
If I have a string like this: [code] blah test asdf [/code] What kind of regex would I use to change all single newlines (like between 'blah' and 'test') to <.br> and all multiple newlines (like between 'test' and 'asdf') to a maximum of two <.br>'s? I've tried these already: … | |
I got this error from my php code... [B]Parse error[/B]: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in [B]C:\Program Files\xampp\htdocs\projko\sign_in_sub.php[/B] on line [B]11 here is my code: [code=php]<?php ini_set('display_errors', 1); function sign_in(){ $con = mysql_connect("localhost", "root", "dodong"); if(!$con){ die('Could not connect: ' . mysql_error()); } mysql_select_db("dbko", $con); … | |
Hi Is there any free web hosting sites that suport php and mysql? (and work with them be easy) | |
I am looking for a PHP news system. I guess it will be more like any other news paper site online. I am looking for an open source or paid version. Does anyone know such thing? | |
how would I upload files with php if someone can steer me into the right direction that would be great. | |
Hi, I am not getting why my modifications for mod_rewrite is not getting working... Apache 2.0 Windows OS i uncommented the loadmodules line for rewrite but i do not find in my httpd.conf a single line with clearmodulelist nor addmodule. I do not know how to enable mod_rewriting in the … | |
i having been programming for 10+ years now, so I always try to adhere to good programming practices (variable naming, spacing, etc). Yet, almost every snippet of code for JS or PHP that you can pull up goes against those practices. even when writing JS or PHP, where var type … | |
Hello I have changed the process code abit so it receives the data from the form and ensures the data in array format. This has eliminated my previous error. The problem I am experiencing is the looping is not displaying the all contents of the arrays. Do you have any … | |
I am trying to delete a member of staff from a table using php using a drop down menu of staff id's he is my code <!-- deletestaffmember.php --> <html><body> <?php putenv("TNS_ADMIN=/u1/oracle/Products/shu10g/network/admin"); $conn = OCILogon("wkagonye","maniki", "shu10g"); $query = "select StaffNo from tblstaff"; $stmt = ociparse($conn, $query); ociexecute($stmt); ?> <form action="deletestaffmember.php" … | |
Hey all I need to compress mp3 audio files so that it can be downloaded to mobile phones..... without disturbing the quality. Could someone tell me how to do this? any useful link or similar code.... please help cheers Prati | |
I have apache in this dir C:\Program Files\Apache Software Foundation\Apache2.2\ and Mail.php and PEAR.php are in this dir C:\php\PEAR\pear When I add the files to the dir the log file is complaining about below, the wiki spits out the following: [code] Could not send confirmation mail. Check address for invalid … | |
any body can help me give any suggestion for my final year project? i want a project web based. any body have an idea?? | |
Hello, I recently downloaded and uploadee Secuimage CAPTCHA Class Version 0.3 PHP4 from [url]http://www.neoprogrammers.com/[/url] and Im having some problems. 1) It always says that the code entered is wrong, even in the example forms. I tried it with my altered code and without and it still never says it is … | |
Hi there, I'm trying to screen some programmers I'm looking to potentially hire & I have a list of questions a previous programming consultant drew up, but I don't know what to do with them b/c he did the screening b4. Can someone please help me determine if I place … | |
i need a script that would tell the server to fwrite every other request, not every time. anybody got an idea? | |
Hi I have used a tutorial on full text search which was brilliant...I now want to add in pagination to it....Bu ti can;t seem to work it from the pagination tutorial... This is the code for my full text search... <html> <head><title>Search</title></head> <body> <?php // Database Connection include 'db.php'; // … | |
hi there. please help me on this. Am working on a website. On one page i put a login form that will authenticate an administrator. However am trying to find a way that when the administrator logs off, no one can be able to press the back or forward button … | |
Hi all, I am having a problem with my php and forms. Any help would be verty greatly appreciated. The problem is form objects are not showing up at times and they are at other times. Has any one heard of this happening and if so is there a fix? … | |
I am having problems getting the user selected form info to inserted into the mysql database. I am also rec eving an error: Warning: Variable passed to each() is not an array or object in D:\web_server\webroot\common_list_process.php on line 1) I can display the contents of the $op array (see below) … | |
Hey guys. Ive been working on an online game and Im attempting to code the attack arena. Bascialy what i want is people to be able to "sit down" at some sort of "table" (kinda like online poker) then they would battle it out at that "table" or arena etc. … | |
k, i want to display error message from my php file to html file. say i have this in contact.php [CODE]if(empty($visitormail)){ $message = "enter email"; }[/CODE] now in html file do i have to have this include: [CODE]<?php include 'contact.php'?>;[/CODE] and then where ever i want to display the error … | |
any one any ideas with this just trying to update the total value of a receipt after a money off voucher has been added to it here is the error `Parse error: parse error in /homedir/ilex-s04/dsmith25/public_html/voucher.php on line 146` here is the script <!-- voucher.php --> <?php putenv("TNS_ADMIN=/u1/oracle/Products/shu10g/network/admin"); $conn = … | |
Hi, I'm new to this site so don't bite my head off if im repeating an existing post. Ok, So im trying to install this portal on my server called eazyportal. Everything was going fine with the installation until it said GD Library : [COLOR=red]Failed[/COLOR] GD Version : [COLOR=lime]Passed[/COLOR] [COLOR=#00ff00][/COLOR] … | |
Hello, First, I want say that I have heard quite a lot about this site. It is a great site and I am happy to have found it. Back to business, because I want to start early. I am building this site with PHP and I also want to attach … | |
Hii all I am working on a project implemented in WordPress. Basically developing a new theme for a client. My task is to add hyperlinks on the header so that they navigate to new page. This is possible if the pages are placed in the root folder but not in … | |
Hi every body , it's my first topic in this forum, how can I change tidy charset , I use windows-1256 and when I try to run this script [code] if(extension_loaded('tidy')) { $config = array( 'indent' => true, 'output-xhtml' => true, 'wrap' => 200); $tidy = new tidy; $tidy->parseString($source, $config, … | |
I know this is pretty dumb question but I just wanted to ask because I am not sure if I can figure it out by myself. :( So here is the deal. I have a mysql database called "appinfo" there there is a table called "appdis" Now in that table … | |
Hello all, I have been using mysql_fetch_array to read data from a query to a php array so i can then use it on my webpage. Everything was going fine until now... I cant see the problem with my code, but it keeps calling the or die() error handler when … | |
im trying to make it so when someone hits submit and a feild is empty or blank i message pops up and says "must fill in required feilds" near the bottom of the form rather than having a new page open up and say it. |
The End.