39,320 Topics

Member Avatar for
Member Avatar for theprofoundgeek

I need to create a dynamic HTML form using PHP. I am only considering the following fields : Text, Text box, Radio, Check Box, Drop down. I am thinking of the creating the following database design. Field ID | Field Type | --- Other Attributes, such as length and others …

Member Avatar for theprofoundgeek
0
319
Member Avatar for Dani

I autoload the Session library in CodeIgniter. However, sometimes there are controllers that output XML, JSON, an image, or other mime types, and I don't want these sending back cookies in the header. Is there a way to suppress this on a per-controller basis?

Member Avatar for diafol
0
173
Member Avatar for johndohmen1963

I have the following warning only when paword is wrong Warning : mysql_fetch_array() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\mijn_stamboom\login\login.php on line 23 <?php include_once '../common.php'; include("config.php"); if($_SERVER["REQUEST_METHOD"] == "POST") { $myusername1=addslashes($_POST['username']); $mypassword1=addslashes($_POST['password']); $ip = $_SERVER["REMOTE_ADDR"]; $pass1 = md5($mypassword1); $sql1="SELECT * FROM stamboom_admin WHERE username='$myusername1' and password='$pass1' …

Member Avatar for johndohmen1963
0
218
Member Avatar for kjeu_kach

[admin.php](https://github.com/apps-vn/admin.php/commit/f2e3c157d42750c39e1778a58abf271f8ddb5f82) <tr> <td><?php echo MOD_DS_PRODFILE;?>: <?php echo required();?></td> <td><input name="filename" type="file" size="40" class="fileinput mask" /> <span style="margin-left:80px"><?php echo tooltip(MOD_DS_PRODFILE_T);?></span></td> </tr> <tr> <td><?php echo MOD_DS_PRODFILE;?>: <?php echo required();?></td> <td><input name="filename" type="file" size="40" class="fileinput mask" /> <span style="margin-left:80px"><?php echo tooltip(MOD_DS_PRODFILE_T);?></span></td> </tr> [admin_class.php](https://github.com/apps-vn/admin_class.php/blob/9fc485be7667cd0d559e74b3e99c71941044bbd6/.gitignore) */ public function getPaidDownload($token) { global $db, $core; $id = …

Member Avatar for kjeu_kach
0
245
Member Avatar for jamojo

Array ( [TIMESTAMP] => 2012%2d05%2d01T17%3a19%3a07Z [CORRELATIONID] => 3aeb192ad6388 [ACK] => Failure [VERSION] => 51%2e0 [BUILD] => 2764190 [L_ERRORCODE0] => 10527 [L_SHORTMESSAGE0] => Invalid%20Data [L_LONGMESSAGE0] => This%20transaction%20cannot%20be%20processed%2e%20Please%20enter%20a%20valid%20credit%20card%20number%20and%20type%2e [L_SEVERITYCODE0] => Error [AMT] => 10%2e00 [CURRENCYCODE] => GBP ) Hello everyone, Can you please suggest on how to parse responses? It is the …

Member Avatar for diafol
0
217
Member Avatar for sammry

Basically, am creating a mailer system to send a mail to my inactive members to do activities in their account if they have not logged in since 30 days. My previous login date stores in my database in unixtimestamp hence i coded as below. select email from myusers where WHERE …

Member Avatar for vibhaJ
0
164
Member Avatar for whitecoder

Ok I am not getting any other errors in php or mysql but I keep getting returned Query was empty in my table. Any help is appreciated, if anybody needs more info on the code just let me know. This is basically a multi search tool for a huge database …

Member Avatar for smantscheff
0
2K
Member Avatar for sowh4t

So my cookies look like so Name: lang Content: et and Name: lang Content: en and Name: lang Content: fi every language select deletes old and replaces with new one I need to get my script working with every cookie content different text $array = array(); $array[] = 'blabla 1'; …

Member Avatar for Biiim
0
95
Member Avatar for mangel.murti

i want to generate this array from mysql data base result set?? $nav = Array ( Array ( 'id' => 27, 'name' => 'home', 'link' => 'home.html', 'parent' => 0 ), Array ( 'id' => 30, 'name' => 'about', 'link' => 'about.html', 'parent' => 27 ) );

Member Avatar for vibhaJ
0
118
Member Avatar for LastMitch

Hi I am trying to understand how to write a **If and Else** statement correctly regarding **sale tax or tax exemptions** on certain items for example fruits. For example: Here is a demo check out: * QTY--items - Price - Total * 6 ***apple*** - $0.89 (each) = $5.34 * …

Member Avatar for Biiim
3
990
Member Avatar for Kniggles

Hi All, Can anyone see why this line dos not produce real links if they have "http://" add to them when added to the data base ? //---------------------------------------------- $result = mysql_query("SELECT * FROM track ORDER BY rand()");while($row = mysql_fetch_array($result)) { echo '<td> <a class="mylink" target=_parent href="http://', $row['car'],'">',$row['tag'] . "<br>"; } …

Member Avatar for Kniggles
0
136
Member Avatar for dyingatmidnight

Hi all, so I'm using mod_rewrite with .htaccess to rewrite my urls. RewriteEngine on Options -Indexes RewriteBase / # Disable rewrite for specific directories RewriteCond %{REQUEST_URI} !^/admin/ # If the request is not for a valid directory RewriteCond %{REQUEST_FILENAME} !-d # If the request is not for a valid file …

Member Avatar for vibhaJ
0
92
Member Avatar for aaloo

i am inserting two pragraphs from an input text field and saving it in a *$post* variable i.e. **Almost all search engines give results in the form of links to web pages which they have indexed. These results depend on the keywords written on the search bar . For example …

Member Avatar for diafol
0
111
Member Avatar for gilgil2

Hi, this is part of a script used to verify paypal payments and update a mysql database if the payment is verified. I had it working in a separate mysql table but I have now changed the table and it doesn't seem to be working. When the verification from paypal …

Member Avatar for diafol
0
216
Member Avatar for sowh4t

So i'm trying to make a script that reads from forum last post first word and displays it on my site vBulletin forum http://www.forum.com/showthread.php?85788&goto=newpost it uses javascript, so I can't get any info :S My script so far <?php header("content-type: text/plain"); $myurl = 'http://www.forum.com/showthread.php?85788&goto=newpost'; $curl_handle = curl_init(); curl_setopt ($curl_handle, CURLOPT_URL, …

Member Avatar for mschroeder
0
122
Member Avatar for Tko_1

Ok im a little new to php so please bare with me. this is the code i have been using to Transfer Variables from and to. What i want to do is to keep the variables in page2 untill further notice even after submited. Concept of this for customer to …

Member Avatar for Biiim
0
200
Member Avatar for mangel.murti

![chil_table](/attachments/large/0/chil_table.JPG "chil_table") ![main_table2](/attachments/large/0/main_table2.JPG "main_table2") i have two tables which i attached. user can add N level question answers. i am using CI. i am using this code for generating ul li. and my array which fetch result set is like this.... but not working ... for working ul li function …

Member Avatar for Biiim
0
284
Member Avatar for hamedx

Hello guys my question is asked more than 1000 times on internet by peoples but i cannot follow any of them (everything is correct but not worked) , i have a simple login system and after that there is a simple field (Email) and a submit button, its connected to …

Member Avatar for Biiim
0
81
Member Avatar for anita_86

Hi! I have a php form and I am using it to update,delete and insert data.I use a drop down to display customer names and when the customer is selected, the form should be submitted with document.frm1.submit(); so that I can get company id of that customer. Problem is, when …

Member Avatar for Biiim
0
355
Member Avatar for decade

Can anyone teach me how to print "Hello World" 100 times without using the loop such as do, for, while, and foreach. Thanks...

Member Avatar for blocblue
0
1K
Member Avatar for realworldmedia

I am trying to echo information into a slider , but, it keeps repeating the entire slider instead of jus inserting the fields aloone. i know it is the closing tag but i dont know how else to do it..any ideas? i just want to post like address 1 address …

Member Avatar for vibhaJ
0
232
Member Avatar for ak47carbon

am inserting data into base it is not inserting data which i want to insert the following data into *p1_n_dis* field of table Usman Raza, who completed his MS majoring in Computer Science at LUMS with an National Management Foundation (NMF) Gold medal, has been awarded a prestigious Mark Weiser …

Member Avatar for vibhaJ
0
222
Member Avatar for DaveyMoyes

Hi everyone, I have a login form working great, until I found this strange error. If a user enters the username as user name (with a space) the login script fails. So I have tried using $username = str_replace(' ', '', strtolower($username)); I thought the above would remove any spaces …

Member Avatar for vibhaJ
0
280
Member Avatar for Tko_1

I just spent some time tryin to figure this out and found out how, so thought i would share. (hope this is the right section for this.) <?php ob_start(); include('index.php'); $content = ob_get_clean(); ?> then insert where ever you want it to show up. <?php echo $content;?> Hope this helps …

Member Avatar for Tko_1
0
142
Member Avatar for Xephis

Hi all, I'm trying to display the average of each row displayed in my table but am having a bit of trouble, any assitance would be appreciated. Basically the table displays the name, the score you gave them, and their average score. Here is my code below (example, names modified. …

Member Avatar for Xephis
0
166
Member Avatar for breakzzzz20

hello all,,i added a pagination in my table,,before that,all the button is working,but now after i add a pagination,the image button is not now working....is any problem in my codes,this is my comple codes: hope someone help me out again.. <?php if(!isset($_COOKIE['POGI'])) { header("location:index.php"); } ?> <?php include('config2.php'); ?> <?php …

Member Avatar for breakzzzz20
0
376
Member Avatar for freemancomputer

I just added a .show for a div to a page where users can rate movies, works just fine as it is. I would like to change it up a bit by showing an image for the number rating that they gave it, 1-5. I have something like it set …

Member Avatar for urtrivedi
0
203
Member Avatar for lewis92

Hi I populate a drop down menu like this: <select name="mySelect"> <?php $result= mysql_query('SELECT DISTINCT Year FROM MonthlySales'); ?> <?php while($row= mysql_fetch_assoc($result)) { ?> <option value="<?php echo htmlspecialchars($row['Year']);?>"> <?php echo htmlspecialchars($row['Year']); ?> </option> <?php } ?> </select> Then build a HTML table like this: <?php while( $row = mysql_fetch_row($results) ) …

Member Avatar for diafol
0
1K
Member Avatar for gilgil2

Hi, I am trying to create a page where depending on which one of three radio buttons is selected something different happens. The context is that users have already registered and so the 'gigname' is taken from url (which seems to work now). The original url looks like example.com/listtype.php?name=gigname (with …

Member Avatar for gilgil2
0
178
Member Avatar for don't give up

hello please how can import just one SCROLLING for all page same this ![how](/attachments/large/3/how.png "how") <html> <frameset NORESIZE SCROLLING=yes rows="33%,60%"> <frame SCROLLING=no NORESIZE src="bannar.php" name="up"> <frameset FRAMEBORDER=NO cols="10%,80%,10%"> <frame NORESIZE src="" > <frame SCROLLING=no NORESIZE src="home.php" name="down" > <frame NORESIZE src="accounts_page.php" name="account" > </frameset> </frameset> </html> please help me

Member Avatar for diafol
0
107

The End.