Forums Page 102
-
How do I get the row number from from an sql table query
Hi all I have a table that I query and it returns a number of rows. mysql_num_rows($query) = $total I want to have next and previous buttons, is…
-
Having a problem get the selected item from a drop down menu
I have been looking at this for days now. I have a drop down menu that get it's values from an sql database That works but now I want to get the item…
-
HTML Form Server Side Validation
Hi, Im new here, im currently doing a website for a friend, and I have designed using snippets from different pages a contact form. The contact form…
-
question about stripslashes and real_escape_string
im cleaning up an old app that I wrote fixing some of the vulernabilities from attacks. I have roughly 30 files. I want to be able to edit every…
-
question about stripslashes and real_escape_string
im cleaning up an old app that I wrote fixing some of the vulernabilities from attacks. I have roughly 30 files. I want to be able to edit every…
-
small inaccuracies
I have this code to convert fractional base 10 into base 2: while($num > 0) { echo "<tr><td>". $num." * 2 = </td><td>"…
- Advertisement
-
Limiting uploaded file type
I am working on a simple upload script, and I need it to limit the allowed file type that is uploaded to only .mpr files. .mpr files are not a MIME…
-
PHP & Java
Hello, can PHP code be used inside java code? Code: [Select]<SCRIPT LANGUAGE="JavaScript"> OpenWindow.document.write("<?php echo NotWorking…
-
mySQL and PHP search
Hello, I am trying to code a project and ran into a brick wall with one of my pages. I am pretty new at php/mySQL and can not figure this out. Now I…
-
Code error with Index.php
Error: Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/runevid/public_html/index.php on line 25 <html>…
-
JSON SORT WITH PHP
I have two products that I want to sort by say "Id:17, value: xxx" using php The page will end up looking like this Part Number Diameter Effective…
-
Downloading file (Headers)
I'm trying to make users download a file, but they must wait 60 seconds before it begins. But, I'm stuck - the file isn't downloading, and no error…
-
How can you detect variable string in a massive string?
Ok guys, i need some help with this one. I am going to be getting a large string, like 10-20 paragraphs. I will also have an array or words that i…
-
How can use this array as a key?
Say I have this array for example: print_r($array); Prints: Code: [Select]Array ( [0] => Array ( [status] => 0 ) [1] => Array ( [status]…
- Advertisement
-
IP Based Cron Jobs
I run cronjobs on my website. After one of my visitors got curious and tinkered around he realized he could reset my cron jobs...woohoo.... Is there…
-
Not showing whole name with mail () script
I sent up a simple mail form with the PHP mail() script. One problem is when it sends an email with the form's contents, the From header only reads…
-
Help with PHP Email Script
Hi guys, I'm a newbie to php and need help with the script below: At the moment when I receive the automated email of data, I'm not receiving any…
-
getting most records by count
Code: [Select]<?php $connect = mysql_connect("localhost","damgears_evil","damgears"); mysql_select_db("damgears_evil"); $queryreg =…
-
INSERT for date range
Hi all I have the following table Code: [Select] `date` date `day` int(2) `month` int(2) `year` int(4) If I pass a date range in PHP, such as Code…
-
Comma seperated implode & modifying returned string.
I have a PHP post form that posts up to 4 variables. I need whatever variables are passed to be combined into one comma seperated string (eg…