39,326 Topics

Member Avatar for
Member Avatar for tokick4

I have a question of dynamic elements in php loaded through mysql. The PHP code is as follow <?php $query = "SELECT * FROM `fee_table` WHERE fee_class_id = 6 "; $result = mysql_query($query) or die(mysql_error()); // Print out the contents of the entry echo "<table width='400'>"; echo "<th width='10' scope='col'>Qty</th>"; …

Member Avatar for tokick4
0
185
Member Avatar for GraficRegret

I am trying to get my code working so that I can store the path of an uploaded picture onto a table so that I can call upon the uploaded file whenever I need it. So what happens on the web page is, a person enters information on a vehicle …

Member Avatar for diafol
0
180
Member Avatar for phphelp123

<?php session_start(); # start up the session $host="localhost"; // Host name $db_username="root"; // Mysql username $db_password=""; // Mysql password $db_name="shop"; // Database name $tbl_name="users"; // Table name // Connect to server and select databse. mysql_connect("$host", "$db_username", "$db_password")or die("cannot connect"); mysql_select_db("$db_name")or die("cannot select DB"); // username and password sent from form …

Member Avatar for Zagga
0
102
Member Avatar for matusekm

I am new to PHP and I'd like the following form to require all fields. I am unsure whether or not this is possible since I am so new to this language. Here is the code. Any help would be useful! <?php $name = $_POST['name']; $email = $_POST['email']; $message = …

Member Avatar for GliderPilot
0
176
Member Avatar for AndreRet

I have 3 select boxes, each one returns a different field from database i.e., in database - 2010 BMW 320i, record 2 2008 Aston Martin DB9 and so on. What I do is to first get user to select a year, then submit form so I can return all vehicles …

Member Avatar for AndreRet
0
184
Member Avatar for GmanD

Hi. I'm looking for a way to perfrom a recaptcha verification pass on an html form then, if successful, submit the detail to salesforce via their Web2Lead feature (don't have API access unfortunately). Our salesforce integrated contact form has been subject to spam, like many others it seems, therefore I …

Member Avatar for eerlewein
0
260
Member Avatar for anandschiru
Member Avatar for anandschiru
0
122
Member Avatar for diafol

Hi All, not the usual, "how can you help me" thread, but a heads-up on a templating engine I've been using for a while called RainTPL. A few users have posted threads of late asking about templates. I thought I'd give this one a plug, especially as Federico (the author) …

Member Avatar for rajppd
0
958
Member Avatar for giovannitao

Hello, I'm developing script php about cell phone specific, now I want to insert an uploader for image of cell phone. I want to upload image to a fecific folder and save url to mysql table. Can you help me to create form and how to do this?

Member Avatar for B1ts
0
3K
Member Avatar for HelloJarvis

So I'm using an Ajax request and processing input of sentence(s) in my program that will be looked up using a thesaurus API. The processing works fine, but I am trying to get it so that it will strip bad input such as semicolons in order for the API to …

Member Avatar for HelloJarvis
0
306
Member Avatar for Tinnin

Hi all! I'm putting a contact form together to receive emails. It is giving the appearance of sending the form data through to my email address (i.e the "thank you" message appears) but nothing is coming through. I'm not sure if I have incorrect html in my form or if …

Member Avatar for Tinnin
0
143
Member Avatar for rikkitikkitavi

Hi, I need help please. i spent the last 6 hours looking EVERYWHERE for help about using PHP session across web pages. The $_SESSION variable is supposed to be global, right? but I can only access it on the page it was declared. like: //PAGE 1 this works <?php session_start(); …

Member Avatar for jkon
0
683
Member Avatar for james.woods.50115161

Hello I keep getting one error every now and again: Warning: date() expects parameter 2 to be long, string given in /home/web/public_html/set.php on line 727 Below you can see that like ( 727) Any soluctions how to deal with this problem? <div class="bb"><?= date("d.m.y h:i:s",$full_list[ssctime]) ?><input type=hidden id="ssctime" value="<?=$full_list[ssctime]?>"></div>

Member Avatar for pritaeas
0
690
Member Avatar for bimaljr

Hello, I have a website in Wordpress. Example: http://www.mysite.com Than I developed a new theme for the website and I have created a new directory on server for developement and testing only. The URL is http://www.mysite.com/newsite/ Now Google scanned my this testing website and added URL from it. So google …

Member Avatar for bimaljr
0
123
Member Avatar for cussel

>hi guys, how to get first and last (key and value) array multidimesional below? $data1 = array( array( '0'=>array( '7'=>'chelsea', '8'=>'everton', '9'=>'villa', '10'=>'liverpool' ), array( '23'=>'milan', '24'=>'inter', '25'=>'juventus', ), ), '1'=>array( array( '53'=>'madrid', '54'=>'barcelona', '55'=>'altetico', '56'=>'everton', ), array( '243'=>'milan', '244'=>'inter', '245'=>'juventus', ), ), '2'=>array( array( '523'=>'madrid', '524'=>'barcelona', '525'=>'altetico', '526'=>'everton', ), …

Member Avatar for diafol
0
384
Member Avatar for johndohmen1963

Hi hope someone can help me with the following $query3 ="SELECT * FROM narr_turnier_bambini_garde UNION SELECT * FROM narr_turnier_bambini_garde_ster WHERE id_turnier_jaar = ".$idturnierjaar." order by rang, meestepunten DESC"; The WHERE clause dosn't work what i want because it give me all the rows from both tables and column id_turnier_jaar is …

Member Avatar for johndohmen1963
0
166
Member Avatar for jsbaldw2

Hi! I am new to PHP and am trying to build a library management website that will return the results of querying a mySQL database for a search query entered by the user. For instance, the user may wish to search for items in the library by title, author, subject, …

Member Avatar for LastMitch
0
237
Member Avatar for a.abhishek1229

I am getting an error..Need help.. " Parse error: syntax error, unexpected T_STRING in C:\xampp\htdocs\test2.php on line 24"; line 24 is --"header("Content-Type: application/xls");"-- <?php $DB_Server = "localhost"; //MySQL Server $DB_Username = "root"; //MySQL Username $DB_Password = ""; //MySQL Password $DB_DBName = "test"; //MySQL Database Name $DB_TBLName = "sample"; //MySQL Table …

Member Avatar for LastMitch
-1
306
Member Avatar for KRUX17

Hi, I'm having trouble with my session variable. When I add this code in the while loop it doesn't add the product in, but when I put it outside it adds the product to the cart. Can anyone tell me what's wrong with my code? It would save me a …

Member Avatar for LastMitch
0
160
Member Avatar for Novice-in-php

Hi guys, I have decided to learn php, can some one help me to give a good start. Is it mandatory to know any language before i start learning Php. I have no knowledge in any programming langauge. Any help would be much appreciated. Thanks in advance guys.

Member Avatar for Novice-in-php
0
136
Member Avatar for RLS0812_1

I am trying to see if a directory exists, but have not found anything that is working the way is I would like it to. The PHP script is in the same directory as the folders I am checking for ( www ), but will not detect the folders unless …

Member Avatar for diafol
0
3K
Member Avatar for Nicejattz

HEllo Friends i want help to add a watermark on video. but i dont know about full about ffmpeg can anyone give me full code and explanation of this topic

Member Avatar for diafol
0
117
Member Avatar for bahamutz

hi, i'm new in programming PHP. I have this task to be done. the first page which is category.php show the list of category that I retrieve from the database name 'event' with table 'category' here is the code: //the connect_db already done in single php file <table border=1 bgcolor="blue"> …

Member Avatar for diafol
0
417
Member Avatar for abcd777

I am facing problem with search module for real estate property search . m placing my code .. i am new 4 php... please help me with the correction of code... // index.html <form action="refinesearch.php" method="post"> <td> <td><tr> <label> <span class="h"><b>Category:</b></span>&nbsp;</label> </tr><select id="first" name="first" size="1" style='width:127px;'><option value="">--</option></select> </td> <tr><td> <select …

Member Avatar for urtrivedi
0
194
Member Avatar for ehpratah

Hi All Just have a question I'm having difficulties in displaying my data in Desc..cant find where i need to put the DESC in my query this is the code function.php <?php function pagination($query, $per_page = 10,$page = 1, $url = '?'){ $query = "SELECT COUNT(*) as `timestamp` FROM {$query}"; …

Member Avatar for ehpratah
0
172
Member Avatar for moha_1990

I'm doing a registration page. it require the name, password, email, gender, nationality, date of birth and other things. I did the registration and it was good. but I need to add the validation and this is what I could do so far, so please if you could help me …

Member Avatar for diafol
0
310
Member Avatar for FlashCreations

Here's how this one works. I'll start by posting one line of PHP script. The next person to post will add another line and copy the script into their post. You will simply add a line of PHP code to the script everyone wrote above you. Also don't forget to …

Member Avatar for erikqs
0
301
Member Avatar for hwoarang69

here is the way iam send email. this does work fine in localhost. if i put my website online will this method still work? or do i have to use different method of send email. $mail = new PHPMailer(); $mail->IsSMTP(); $mail->SMTPAuth = true; // enable SMTP authentication $mail->SMTPSecure = "ssl"; …

Member Avatar for radow
0
186
Member Avatar for eman neercs

This is the second part of a script. It gets the EAN from the form in the first part. Where there are sales, it will show total number but if not I want to show a message to say "none" or "No Sales". Don't quite get the else/if errors. Could …

Member Avatar for urtrivedi
0
157
Member Avatar for Tamizharasi
Member Avatar for diafol
0
22

The End.