I found a bug in my PHP application whereby str_replace() was removing too many characters. I put together this test code to prove it:
As you can see, the $referrer value echo'd has removed...
I'm trying to assign a MySQL value to a variable so it can be used in the PHP site during a signup process. From what I can tell, all other variables are working just fine, with the exception...
I am very new to php. I have a session variable $_SESSION['user_id'] on the first page a user is directed to after successful login. I would like to insert its value into a table in my databas...
I have a table field nvarchar in the database; when I try to print it in PHP, it cuts off the string length to 255 characters long only.
Here's what I have tried so far to increase the leng...
When I insert a body of text into my database, I'm escaping all of the quotes with a "\". I got that, but my dilemma is when I go to display that same text. I'll have contractions as well as U...
ok i have got it working but the code is large lol can any1 show me how i could cut it down so its much less coding or is this not possible?
Hello,
Can you tell me what is the best "jokes and funny picture" php-script on the net?
I have found this:
http://www.scriptdemo.com/details/phpjokesite2/ (made year 2003-2004)
Is th...
Is there any way to block people from using swear words in a form. If they enter a swear word, it would come up with an error message, and they would be unable to continue without changing the...
I am using this query to select competitions from an archive with a certain category, which are still within their closing date and also ordering them by closing date:
$catQuery = "SELECT *...
As you can see from the code below I have created a simple dropdown with the Name field (primary key) from table1 in mysql database. That much I have succeeded in doing. However once a name ha...
i install ffmpeg on my Ubuntu 8.04 . it convet .wmv to .flv in when i run on shell ,but when i try to convet .wmv file in .flv using php exec() it not convet ,and not show any error.
i have n...
The following script outputs data from a database and passes it to an SMS gateway. The problem I have is that I have fields in the table which are set to BIT.
When the data is presented in...
Hi
setCookie has that error msg. However, it showed the error "Warning: Cannot modify header information - headers already sent by "
How can I solve it?
Hi.
I want to create application in php in which every registered user can upload images (ex max 5).
My question is: where should i put uploaded images : on in mysql table or in folder on se...
Hi,
I have successfully connected to an Access database and queried the Access tables with the ODBC below. However, I need to query Sage Timberline tables that I have linked to in the Acc...
Hi
if i have this example that ara sent me:
<input type="radio" name="first" value="Red"> Red<br>
<input type="radio" name="first" value="White"> White<br>
<input type="radio" name="first"...
Hey folks,
I have a program I'm working on to automate updating of various types of data. I basically have a form, with a button that allows anyone in the HR department to click it and auto...
Hello. I am looking for an HTML to PDF converter for PHP 4. Ideally I am looking for an application that I can install on my server that will generate a PDF of a web page, similar to the demo ...
Hello,
WE currently have a php form to collect info from users that register to our site. In the code to this form there is the exit () function. On of the things it does, it inserts ...
I have the following code in a script that displays photos with a common name appended with a _01.jpg up to _06.jpg. The only problem is when the photo does not actually exist.. How do I set...
Hello Experts,
how can I return a form pre-populated form after error message?
In other words, if the user types an email that already exists in the DB, I want to return the error msg a...
I started using the PEAR package Cache_Lite to speed up page access and avoid lots of DB activity. All works fine except I find that using Cache_Lite_Output does not cache and store the heade...
I have generated an online customer satisfaction survey form for my customers to complete after they attended the show they booked from us. The problem I am experiencing is that there are so ...
Hi all,
I am setting up a site that is for employees only. It will be run on an apache server using php and mysql. I need to ensure that search engine spiders and bots do not index this sit...
Hello everybody,
I've seen on a forum website at the bottom of the page it said "Page created in 0.096 seconds with 18 queries." The forum was made with SMF 1.1.5
I'm wondering is there...