Forum: PHP Dec 25th, 2008 |
| Replies: 2 Views: 1,264 $qry="SELECT id, member, math, bathmos FROM bathmoi";
$handle=mysql_query($qry);
echo '<textarea name="show" rows="20" cols="70" readonly="readonly">';
if(mysql_num_rows($handle) > 0)
{
... |
Forum: PHP Dec 24th, 2008 |
| Replies: 7 Views: 559 use the function eregi_replace();
eregi_replace ( string $pattern , string $replacement , string $string ) |
Forum: PHP Dec 24th, 2008 |
| Replies: 17 Views: 957 <?php
if($_POST['submit'] == "Submit")
{
$name = $_POST['name'];
$email = $_POST['email'];
$contact = $_POST['contact'];
$textbox = $_POST['textfield']; |
Forum: PHP Dec 24th, 2008 |
| Replies: 8 Views: 609 try this code....
$cnt = 1;
$number_of_image_per_row = 6;
$width = 50; //Define image width
$height = 50 //Define image height
foreach(ListMyFiles('includes/',$MySearchFile) as $file_name)... |
Forum: PHP Dec 23rd, 2008 |
| Replies: 17 Views: 957 I think you will have to make two tables (use normalization of table)
1. car_owner
id (primary key, Auto incr.)
name
email
contact
2. car_registration |
Forum: PHP Dec 23rd, 2008 |
| Replies: 14 Views: 1,439 If still u are getting error try this code in place of header("location:thankyou.php");
echo "<script language='JavaScript'>
location.href='thankyou.php';
</script>"; |
Forum: PHP Dec 23rd, 2008 |
| Replies: 17 Views: 957 <?php
if($_POST['submit'] == "Submit")
{
$textbox = $_POST['textfield'];
if(is_array($textbox))
{
foreach($textbox as $textkey=>$textvalue)
{ |
Forum: PHP Dec 23rd, 2008 |
| Replies: 17 Views: 957 Please let me know structure of your table. |
Forum: PHP Dec 23rd, 2008 |
| Replies: 17 Views: 957 Do you want same out put using jquery ?
if yes i will be happy to help... |
Forum: PHP Dec 23rd, 2008 |
| Replies: 14 Views: 1,439 try this...
$mail_sent = mail($to, $subject, $message, $headers);
if($mail_sent)
{
header("location:thankyou.php");
} |
Forum: PHP Dec 23rd, 2008 |
| Replies: 17 Views: 957 |
Forum: PHP Dec 23rd, 2008 |
| Replies: 17 Views: 957 <html>
<head>
<script language="JavaScript">
function make_textbox(no)
{
if(no < 1)
return false;
var my_textbox = ""; |
Forum: PHP Dec 23rd, 2008 |
| Replies: 14 Views: 1,439 Optimized code...
$service = $_POST['service'];
if(is_array($service))
{
$message .= "Type of Service needed:" .implode(", ",$service). "\n";
} |
Forum: PHP Dec 23rd, 2008 |
| Replies: 14 Views: 1,439 $service = $_POST['service'];
if(is_array($service))
{
$comma = "";
$service_type = "";
foreach($service as $value)
{
$service_type .= $comma.$value; |
Forum: PHP Dec 23rd, 2008 |
| Replies: 8 Views: 609 <?php
function isImage($fileName)
{
$ext = substr(strrchr($fileName, '.'), 1);
if($ext <> "")
{
$ext = strtolower($ext);
switch($ext) |
Forum: PHP Dec 23rd, 2008 |
| Replies: 5 Views: 418 <?php
function isImage($fileName)
{
$ext = substr(strrchr($fileName, '.'), 1);
if($ext <> "")
{
$ext = strtolower($ext);
switch($ext) |
Forum: PHP Dec 21st, 2008 |
| Replies: 4 Views: 1,399 <html>
<body>
<?php
$display_form = true;
if($_POST['submit']=="Submit")
{
if(trim($_POST['my_text'])=="") |
Forum: MySQL Dec 21st, 2008 |
| Replies: 3 Views: 507 select user_id,user_name,if(reg_date="","20th December 2008",reg_date) as 'Reg. Date' from users
where user_id = Unique User ID
user_name = Store User Name |
Forum: PHP Dec 21st, 2008 |
| Replies: 3 Views: 397 Aamit,
If condition will be "if($num>0)" |
Forum: MySQL Dec 21st, 2008 |
| Replies: 3 Views: 507 please let me know the data type of field "reg_date". |