39,316 Topics

Member Avatar for
Member Avatar for QWaz

Hi, I am pretty new to php. I am trying to get a result from a database display as a link with php tags in it. however I am getting this error: Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' on line 53 I don't know what it's …

Member Avatar for rse
0
444
Member Avatar for daniahmed

Hi, Guys If anyone have any examples of sub forms with Ajax PHP pls send me or come online to help me in am new in php. I want something like following: In my php file two forms are submitting data to DB. First is customer info info and then …

Member Avatar for 140fulton
0
117
Member Avatar for gorleone

Have a interesting problem. I make a little ajax mechanism to get info from php file and add a function for delete the data. phpfile.php: [CODE] <?php if(isset($_POST['bu'])){ $data = 'text<a onclick="something();" href="#">alert</a>'; echo $data; } ?> [/CODE] js file: [CODE] function getdatafromfile(){ var bu = 'bu'; $.ajax({ type: 'POST', …

Member Avatar for Airshow
0
372
Member Avatar for raf.fredi

How to submit content of textarea when clicked on Share Div? [CODE] <div class="status"> <textarea class="input" name="status" id="content" > So whats on your mind? </textarea> </div> <div class="button_outside" id="share"> <div class="button_inside">Share</div> </div> [/CODE]

Member Avatar for diafol
0
2K
Member Avatar for djeff

I'm hoping this is possible. I have a textarea defined as follows. Works fine. But I now want to assign a value to the name. Please tell me I can and how. Thanks ! print '<textarea rows="1" cols="20" name="newcmt'.$cmtid.'"></textarea>';

Member Avatar for diafol
0
45
Member Avatar for jonnyboy12

Hello. I am new to php but not to c++; I'm trying to use a submit button to run some html divs and some gui. here is an example of this , very basic. [CODE] $hourglass1 = strip_tags($_POST['hourglass1']); if($hourglass1){ echo" MY DIV CONTAINERS"; } [/CODE] The problem is when i …

Member Avatar for diafol
0
212
Member Avatar for davedpss

I am trying to clean up some text that has some white space that I can't seem to get rid of. I have tried replacing \s, \t,\n, \r, \r\n etc. and that strips out most of the new lines but not all. When I look at in a text editor …

Member Avatar for diafol
0
79
Member Avatar for gozlemci

Hi There; I have a MS-SQL 2005 in my computer. There is a [I]person [/I] table, and this person table have three columns; [I]name[/I], [I]surname [/I]and [I]address[/I].They are nvarchar(50). I hold the data of my company on it. User can make some queries over it via HTML. PHP code does …

Member Avatar for gozlemci
0
3K
Member Avatar for andarivaadu1

Hi everyone, I have a web application developed using php. I want to add a new feature in it. When the user searches for some book details, all the book details are displayed. Now when the user clicks on a book name in the search results, He will be redirected …

Member Avatar for diafol
0
173
Member Avatar for zainshah120

here is a website that i had created in wordpress.now I want to make changes to the site but want to make changes offline,(at my local computer).So that the visitors can enjoy my existing site.I tried the following [CODE]Downloaded the website through filezilla. Made backup of data in .sql file …

Member Avatar for Ezzaral
0
277
Member Avatar for zack654

I'm coding some themes for wordpress at the moment, and I have problem finding HTML and CSS themes that are ready for implementation. I don't want to spend time making HTML and CSS so I'm looking for ready themes for coding into wordpress. I found many free web site templates, …

0
58
Member Avatar for london-G

Hi guys. I am now creating my sign up page and I would like to check if both name and email entered in page are already in the database. So far I have [CODE]if(mysql_query("SELECT members FROM name WHERE $_POST['name'] = '$name' and email WHERE $_POST['email'] = '$email'" ))){ echo "Sorry! …

Member Avatar for london-G
0
996
Member Avatar for airmvp23

I've been round and round with this subject, but here goes again. Basically I need to Click a Form Button and submit that click into an iframe located on a separate page. The history behind this is that I am using Joomla for my main platform, but needed a more …

0
93
Member Avatar for thunder111

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in C:\AppServ\www\Ayyam v3\gate.php on line 16 Warning: Cannot modify header information - headers already sent by (output started at C:\AppServ\www\Ayyam v3\gate.php:16) in C:\AppServ\www\Ayyam v3\gate.php on line 36 am new with php please help me <?php session_start(); require_once('Connections/connector.php'); $uid= $_POST['uid']; …

Member Avatar for Biiim
-1
249
Member Avatar for IanArcher

I am trying to write to this file here [url]http://corporate.thechamberteam.com/livesearch/questions.htm[/url] I when i add it keeps going of the the html tags and the text ends up under </html> and also to to make the question bold just like on that page, and the answer Bold as in the same …

Member Avatar for IanArcher
0
130
Member Avatar for Buppy

Hi, I have a page that loads for some time and it would be nice to show some progress. I want it to show messages like "loading..." and "x amount of something loaded so far" during the process, however, it only appears in the end. I have disabled the output …

Member Avatar for diafol
0
100
Member Avatar for shielaolid

[CODE]<?php $posapp=$_POST['txtapplied']; $fname=$_POST['txtfname']; $mname=$_POST['txtmname']; $lname=$_POST['txtlname']; $month=$_POST['txtmonth']; $day=$_POST['txtday']; $year=$_POST['txtyear']; $age=$_POST['txtage']; $eadd=$_POST['txtemail']; $homenumber=$_POST['txthnum']; $cpnumber=$_POST['txtcpnumber']; $address=$_POST['txtaddress']; $religion=$_POST['txtreligion']; $birthplace=$_POST['txtbplace']; $height=$_POST['txtheight']; $weight=$_POST['txtweight']; $civilstatus=$_POST['txtcstatus']; $college=$_POST['txtcollege']; $course=$_POST['txtcourse']; $year=$_POST['txtyeargrad']; $db=mysql_connect('localhost','root','') or die ('Cannot connect to MYSQL!'); @mysql_select_db('dbriomra') or die('Cannot connect to database'); $query=mysql_query("Insert into onlineapplication values ('posapp', 'fname', 'mname', 'lname', 'month', 'day', 'year', 'age', 'eadd', 'homenumber', 'cpnumber', 'address', …

Member Avatar for shielaolid
0
87
Member Avatar for fnyahoo

ok here is my problem, I am kind of new to Php but have done programming before. I am recently learning php so am not sure what php can or cant do. What i am trying to do here is i have a multiple submit buttons which i input some …

Member Avatar for pritaeas
0
142
Member Avatar for jacob21

Hi, I am new to php/ajax.What i am trying: I have one drop down list,one test box & a button more.if i click more button same drop down & textbox & more button should open $ further goes on.. I need suggestion ?? what should i use??I have to insert …

Member Avatar for pzuurveen
0
116
Member Avatar for jacob21

<td><input name="power" type="checkbox" disabled="disabled" <?php if($row['power_backup']=='on') echo "checked"; ?> /></td> <td>Power Backup</td> <td style="width:25px;"><input name="purifier" disabled="disabled" type="checkbox" <?php if($row['water_purifier']=='on') echo "checked"; ?> /></td> I have some checkboxes ,what i am trying to do if a checkbox is checked(its value is on) it should bold. need suggestions.

Member Avatar for pzuurveen
0
101
Member Avatar for bbman

Hi, I want to display my database, however I cannot used the conventional method (like this [url]http://www.siteground.com/tutorials/php-mysql/display_table_data.htm[/url] )as the structure is unkown. The user of the system can create and delete columns. Does anyone know how I would be able to display the columns with the stored data? If this …

Member Avatar for cereal
0
91
Member Avatar for daniel36
Member Avatar for cereal
0
51
Member Avatar for daniahmed

Parse error: parse error in C:\wamp\www\dani\add_invoice_Item.php on line 75 [CODE]<?php $q=$_GET["q"]; $con = mysql_connect('localhost', 'root', ''); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("dani", $con); $sql="SELECT * FROM invoice_item_details WHERE itemId = '".$q."'"; $result = mysql_query($sql); echo "<table border='1'> <tr> <th>ItemCode</th> <th>GoodsDescription</th> <th>UnitPrice</th> <th>Quantity</th> <th>TotalPrice</th> </tr>"; while($row …

Member Avatar for daniahmed
0
132
Member Avatar for kimmi_baby

Hi there, I need to create a website for a client using a CMS. This client is a manufacturer and wanting to have a website that is pretty much similar to an ecommerce website except they won't be selling anything. It will have categories and list all the products. It …

Member Avatar for kimmi_baby
0
105
Member Avatar for maggoteer

Hey guys, I've got a theoretical question. I've tried to work out how some of the code would work in my head, and I always stump myself. Maybe it's my lack of knowledge - who knows! I am trying to create an online forum inside of my application. Yes, I …

Member Avatar for kingsonprisonic
0
210
Member Avatar for d1lu5ion

hi everyone, I am trying to make 5 pages.. 1 is an html page and the last 3 are php pages.. the html page is called data_uploader.htm and contains: upload image upload html AD submit go to sender When you up click submit loads the files and then it returns …

Member Avatar for jmichae3
0
192
Member Avatar for fcvolunteer

I've looked extensively for an answer to this but have gotten nowhere. Here’s what I’m trying to do: I’m having people submit a form on my Wordpress site telling me their pledges for a volunteer campaign. When they submit their volunteer project I want to have a counter track the …

Member Avatar for fcvolunteer
0
897
Member Avatar for Awah Mohamed

hi guys, how can i get the difference between two strings in PHP? i mean lets say string 1 = "hello world" and string 2 = "Hello World" the php code should compare these two strings and output something like: the difference between the two strings is 20%... so how …

Member Avatar for diafol
0
154
Member Avatar for kadriirdak

Hi There, I have an XML data [code] <coordinators branch="xx"><coordinator cnum="xx"> <value key="role" type="string">BC</value> <value key="role_desc" type="string">role</value> <value key="name" type="string">xx</value> <value key="tel_number" type="string"/> <value key="email_address" type="string">xx</value> </coordinator> <coordinator cnum="xx"> <value key="role" type="string">BC</value> <value key="role_desc" type="string">role</value> <value key="name" type="string">xx</value> <value key="tel_number" type="string"/> <value key="email_address" type="string">xx</value> </coordinator> </coordinators> [/code] I need to …

Member Avatar for veedeoo
0
172
Member Avatar for Vielardz

Hello there, I'm new to the community and kinda new to PHP and I'll leave it at that. I am currently developing an E-Leave System for my final project course of my university. I'm having difficulties in designing a form for a leave application which consist of two date picker …

Member Avatar for jmichae3
0
196

The End.