39,323 Topics

Member Avatar for
Member Avatar for ellenski

Here is what my page is suppose to look like. There are clickable tabs at the top namely: Home, About, Contact Us. When I click on the About tab for example, the content for the About would be displayed. However, the content for the Home tab is still there. I …

Member Avatar for zizuno
0
161
Member Avatar for stebentje

Hello I'm using a form with a dropdown list. When the user select "Test1" in the dropdown then press the button "Submit" it has to send the data to [url]www.test1.com[/url]. When the user select "Test2" in the dropdown then press the button "Submit" it has to send the date to …

Member Avatar for HemantPHP
0
102
Member Avatar for tcollins412

i have this code: [CODE]<?php session_start(); $id=$_SESSION['uid']; include "dbconnect.php"; $query = "SELECT FROM members WHERE id='$id'"; $result = mysql_query($query); $row = mysql_fetch_array($result); ?>[/CODE] and it says mysql_fetch_array is not a valid argument. help please

Member Avatar for lyrico
0
119
Member Avatar for SuPrAiCeR69

How can I perform the following with this API? Form is setup in PHP for registered user to enter domain name On submit.. Check if domain is available > - If NO > output to XML > run the loop again in 5 minutes - If YES > output to …

Member Avatar for HemantPHP
0
197
Member Avatar for yamot47

will somebody show me a sample how to add cart using dynamic button?? im having trouble retrieving value using dynamic button using the code below [CODE] # echo("<TR id='$i' bgcolor='B0C4DE'>"); # $sr_num=$row['b_sr_num']; # echo ("<td><input name=data id=data type=text id=data readonly=readonly value=$sr_num></td>"); # echo ('<td>'.$row['b_name'].'</td>'); # echo ('<td>'.$row['b_author'].'</td>'); # echo ('<td>'.$row['b_avail'].'</td>'); …

Member Avatar for HemantPHP
0
64
Member Avatar for yamot47

[CODE]while ($row = mysql_fetch_assoc($query)){ echo("<tr id='$a' bgcolor='B0C4DE'>"); $sr_num=$row['b_sr_num']; echo ('<td>'.$row['b_sr_num'].'</td>'); echo ('<td>'.$row['b_name'].'</td>'); echo ('<td>'.$row['b_author'].'</td>'); echo ('<td>'.$row['b_avail'].'</td>'); if($row['b_avail']>0) { if (!$_SESSION["valid_user"]) { // User not logged in, redirect to login page echo("<td>Available</td>"); }else echo("<td><INPUT TYPE=button id=show name=show[] value=add onClick=buttonPress('$sr_num','$a')></td>"); [/CODE] can you give me the code of or sample to use …

Member Avatar for yamot47
0
69
Member Avatar for fuston05

I am working on a app at the moment, as practice mostly. But I have like 25 $vars that accumulate over the course of like 2 pages of forms gathering information. On the final page i use all these $vars to put together an estimate. My question is: Is there …

Member Avatar for fuston05
0
122
Member Avatar for itisnot_me

ok i think that i am missing something here but i not sure what. i have a function with a class that is supposed to take all the data make a query and then put into an array the data i would like to collect later function [CODE] function getDataLoop($strDbType, …

Member Avatar for itisnot_me
0
209
Member Avatar for studioceasar

Hi All, I'm working on a website page that is displaying data from a SQL database. I have a series of echo statements display the data within a table: [CODE] echo "<table border '1' bordercolor='#333333' cellpadding='3' cellspacing='0' width='100%'> <tr> <th><span class='heading'>ID</span></th> <th><span class='heading'>Date Submitted</span></th><th><span class='heading'>Location</span></th><th><span class='heading'>Type</span></th><th><span class='heading'>Request</span></th> <th><span class='heading'>Start Date</span></th><th><span …

Member Avatar for weekendrockstar
0
89
Member Avatar for jaydeebee84

Hi, right I'll try put this across quickly but basically at the moment I have AJAX posting to a separate PHP page and then getting the response which is echoed on that page which is then used on the original page to display. This works fine and is all good, …

Member Avatar for jaydeebee84
0
141
Member Avatar for keyroche

Hello all! I am making a web application that allows someone to create a website through the various steps of the app. The system is based on templates, that a user picks and then chooses the content to go into it. I have all the info stored in a session …

Member Avatar for sDJh
0
616
Member Avatar for paullanesra

hi i am having a problem with a php script. i have 3 files index.php, home.html.php, form.html.php. home.html.php is working fine, if has a form that is submitting fine but when it submits i get a problem. maybe someone can help me out please i would be grateful as i …

Member Avatar for EricIskhakov
0
132
Member Avatar for Ellsinore

I'm transcribing information from .jpg files. I have my form set up, but as it is now, I have to have the photos open in another window to read them, and use a <select> form field to list all the file names using this code: [code] $files = array(); $dh …

Member Avatar for Ellsinore
0
115
Member Avatar for joban.ali

I want to use sessions to identify if a user is signed in. If user is signed in they should be directed to their own profile. If the user is not signed in then the user should be taken to the login page. on my header I have options when …

Member Avatar for joban.ali
0
117
Member Avatar for GaBack

I'm stack in a php code that i want to find the total but i don't know what i did wrong and the total comes alway on "0". My code like a order list. You check on what thing you need and how many do you want. You order it. …

Member Avatar for GaBack
0
115
Member Avatar for tcollins412

i am making a website in php all on one page. here is my script [CODE]<a href='?goto=register'>register</a> <?php if ($_GET['goto']=='register'){ ?> <form name='register' method='POST' action='?goto=reg'> <table style='margin-left: auto; margin-right: auto; color: white; font-weight: bold;'> <tr><td style='text-align:center;'>First Name: <input type='text' name='first'></td></tr> <tr><td style='text-align:center;'>Last Name: <input type='text' name='last'></td></tr> <tr><td style='text-align:center;'>Email: <input type='text' …

Member Avatar for pzuurveen
0
120
Member Avatar for Buppy

Hi, I have a file index.php with script on a link, which opens new window with myfile.php, using JS window.open method. The page itself is based on PHP. What i need to do is to prevent direct access to that JS popup window file. For example, if i press a …

Member Avatar for Buppy
0
221
Member Avatar for rajeesh_rsn

Hi friends, I had a database table as follows ... Id | Film Name | Director | Cast | ---------------------------------------- 12 | Dhoom | Name | 123,128,125,458,12 12 | Dhoom 2 | Name | 129,158,147,455 ------------------------------------------------ I need search by cast column For eg : If I select :- [ICODE]select …

Member Avatar for smantscheff
0
97
Member Avatar for bigil

i want to list car category name and car details in a single page but the result is car details are same for every category…. can anyone help me ..... thanks in advance controller [ICODE] function index() { $fleets = $this->Fleets_model->select_fleets(); $this->data['fleets'] = $fleets; foreach($fleets as $row) { $cid = …

0
33
Member Avatar for samsons17

Hi, after days of figuring this out, i still have no idea of whats wrong with the code.. Hopefully you guys could help me out.. when i put this code on my home.php file, i keep getting this error : [B] Parse error: syntax error, unexpected $end in C:\xampp\htdocs\smartforum\home.php on …

Member Avatar for samsons17
0
71
Member Avatar for becool007

I have an edit box :) (took me a while to understand) and now in part of my custom calculator project. I need to take the value in the edit box and process it. The thing is. I want to process the string from the edit box and check if …

Member Avatar for becool007
0
54
Member Avatar for Ender330

Hello, I am trying to fix this problem with my site. If any can please help me and let me know how I may fix the problem or find what is causing the problem. Thanks Warning: session_register() [function.session-register]: Warning: session_start() [function.session-start]: Cannot find save handler 'memcache' - session startup failed …

Member Avatar for Ender330
0
206
Member Avatar for ksquared

The full error message is: missing ) after argument list [Break On This Error] change_content('imagediv', '<img src='images/painting_2.jpg'>'); Maybe I've been staring at this for too long, but I believe the parentheses are in the correct position. This code is contained in an include. Thank you. [code]<?php $paintingBack=$paintingNumber-1; $paintingNext=$paintingNumber+1; if ($paintingBack …

Member Avatar for ksquared
0
158
Member Avatar for nicksontinko

For a website which was lately just created, it would initially be 5-10 pages and together with the off page seo, seo page is very important for a search engine to find a newly created website. My question is in this newly created website, what are the different ways to …

Member Avatar for diafol
0
81
Member Avatar for radsv

Hi I need some help in connecting to the mysql server. Here is the full situation : server H -- i have access to this server -- but this server does not have apache it is basically like a dropbox, i just throw the phpmyadmin config file in here and …

0
74
Member Avatar for branding4you

Hi all I have a enquiry form with 15 or more items on it items like "where did you hear from us" Options in the dropdown next to it is: Internet Newsletter Magazine Friend when internet is selected a text box apears Newsletter shows nothning magazine asks what magazine in …

Member Avatar for diafol
0
65
Member Avatar for mad_pierrot

Hello everyone, I'm trying to create a PHP cURL script that does two main things. 1) Login to website (works) 2) Export table as CSV (doesn't work) To export the table as a CSV, two things need to be selected. Which table I want to export, in this case customers, …

0
130
Member Avatar for rajeesh_rsn

Hi friends, In my php form I just blocked the sql injection by adding below into my processing page [ICODE]$comment=mysql_real_escape_string($_POST['comment']);[/ICODE] But I need to add "Richtext format in My Form ( Ie BOLD, ITALICS and UNDERLINE ). Now I just want to enable only these in my processing page ( …

Member Avatar for itslucky
0
85
Member Avatar for mamari

I'm getting an error: mysql_fetch_array(): supplied argument is not a valid MySQL result resource [CODE] function next_record() { $this->myrow = mysql_fetch_array($this->result); return $this->myrow; } [/CODE] Please help!

Member Avatar for mamari
0
227
Member Avatar for Drako12

Hi, im having trouble doing something that should be simple.. i have a form that inputs some data into a table using php and jquery.. after that input i have to reload the page so that is possible to see the new data on the table. So i added some …

0
63

The End.