39,326 Topics
| |
I am trying to save data (link & picture) in banner manager. banner_manager.php [CODE] //SIMPAN DATA if (isset($_POST['simpan'])){ $id = $_POST['id']; $link = mysql_real_escape_string($_POST['link']); //$gambar = $_POST['gambar']; //print_r($_POST); die(); echo $link; echo $gambar['name']; } //Cek apakah ada file yang diupload if((!empty($_FILES['uploaded_file'])) && ($_FILES['uploaded_file']['error'] == 0)){ //$gambar = uploadPicture('uploaded_file'); $target_path = … | |
Hi, I would really appreciate if I could be helped on the following PHP code. I have two arrays. 1) $user 2) $usertotal $user can have as many names stored in it. Example: $user[0]="John"; $user[1]="Sean"; $user[2]="Nick"; $user[3]="Jay"; ................ ................ Similary, $usertotal can have as many amount stored in it. Example: … | |
Hi Guys, new to this forum, kinda new to PHP in general haven't been using it long, mostly creating forms for database and custom CMS modules. Anyway, i'm building a html email tool from the ground up and just need some help with one thing. How do i convert values … | |
I Want someone to help me on how I can get 32-bit Windows Imaging Component. I look forward to your great assistance. Thanks in advance. | |
Hey Guys, I haven't touched PHP in awhile so I am kinda rusty. I made a validation method within my new request invite class and need some help. I took out all the other code that works so we can focus on checking if email exists. I am trying to … | |
HI.. I have been able to save images into MYSQL database using php but I am having problems with retrieving images from mySQL ...Can anyone help thks | |
hi all i want to create facebook like iamge gallery in my website. i.e. as facebook displayes images, i want to display images in the same way in my website | |
I simply need to check my mail server for new email messages and be able to search them by email address. I don't need to load the messages just check for new ones. Here's the scenario. I have table that lists models I have contacted. I want to run a … | |
please help. i want pass variables from a php form to an online shopping payment systems this is the url i have [url]https://usd.swreg.org/cgi-bin/s.cgi?s=133537&p=133537-2&q=1&v=0&d=0&Variable[/url] Pricing=<?php echo"$price";?>" the url links the php form to the swreg.org but it doesn't transfer the price. how can i modify the code to transfer the price … | |
hi i'm having trouble creating a drop down menu using data from the database and i dont understand where the problem is [CODE] <?php .... $conn ...blah blah blah... mysql_select_db ...blah blah blah... .... $query = mysql_query("SELECT * FROM teamdb WHERE sports='Basketball'"); $options = ""; while($row = mysql_fetch_array($query)) { $teamid … | |
Hi there, I'm using php to try and take two separate arrays ($colors and $message), write them to a single multidimensional array ($endline), and then write the resulting md array into a csv. This works fine on my localhost, but for some reason it doesn't work through my web host. … | |
Description: ------------ in my php pages i am using aes_encrypt which works fine. The issue i am having is with aes_decrypt. I have been searching for days to try and resolve this problem but need more help. The following string in my php will not bring any results back at … | |
Hi, i am trying to take a string from a text area and put it into a variable and split it by carriage returns and then add <li> to the beginning of the line and </li> to the end of a line. While putting <ul> at the beginning of the … | |
Hi there, I have a form that collects array values and then posts it to another page.eg [CODE]<form action="page2" method="POST"> <input name = "myid[]" type="text" value="1"> <input name = "myid[]" type="text" value="4"> <input name = "myid[]" type="text" value="6"> </form>[/CODE] the second page then receives the array and implodes the results … | |
Hello, I am new to php and mysql and I need to do password encryption and decryption. The password will be saved in a data base, I need to use an algorithm that uses SALT varible. Can some please help me with that? Thanks in advance. | |
is there any one with an idea of how to link a php form where by a customer places an order when the click clicks submit order data is verified,sent to database and then linked to SWREG i have implemented the order form, verification and sending data to the database. … | |
Yeah, its it possible to have multiple form in a single page. for example: <form action=test.php method=post> --- -- </form> <form action=test.php method=post> --- --- </form> Both the form action is the same test.php. Any problem ? | |
How could i create x amount of checkboxes based on how many items are in a database and populate each check box with a php variable containing the data from the database. I have had a go and come up with the code below: But i cant seem to get … | |
Perhaps not strictly a php question - but I can't find anything on this and thought you guys might be able to help. I am using a CMS which has FCKeditor built into it. Just recently (I didn't change the configuraation or server or anything) its started escaping all my … | |
I am using the code which i have attached but it generates errors.... the first error is in this line 36. if (isset($_POST[$MM_flag])){ if(empty($_POST['first_name'] || empty($_POST['last_name'])){ $error['name'] = 'Please enter your full name; name and surname'; } | |
Hi, I am trying to print a table but I can't. I have a file called r.php with rules like [CODE]<?php $rule['ab'] = "afd"; $rule['vf'] = "ghe"; $rule['as'] = "rtg"; ?>[/CODE] and in another file I write [CODE]<?php include_once("r.php"); $a = 'as'; echo $rule[$a]; ?>[/CODE] but it is not printed … | |
How to check textarea value is submitted or not on insert page? if (isset($share)){ //do stuff } or anything else? I'm using click function #share instead form submit. How to check #share is clicked, on insert.php page? config.php [CODE] $host="localhost"; $user=""; $password=""; $db=""; $link = mysql_connect("$host", "$user", "$password"); $con=mysql_select_db("$db")or die(mysql_error()); … | |
Is anyone familiar with this php class??? [url]http://justinvincent.com/ezsql[/url]. I am planing to start using it as framework. I think it is the based of Wordpress class. | |
Hi, I am using an include function to include image gallery to my site. this is index.html of image gallery: [CODE] <link rel="stylesheet" type="text/css" href="css/sliderkit-core.css" media="screen, projection" /> <link rel="stylesheet" type="text/css" href="css/sliderkit-demos.css" media="screen, projection" /> <link rel="stylesheet" href="css/main.css" type="text/css" /> <!--[if IE 6]> <link rel="stylesheet" type="text/css" href="css/sliderkit-demos-ie6.css" /> <![endif]--> <!--[if … | |
Is there anyone here tell me how to create php auto suggest box from database using mojave linux?Thanks | |
Hi what's the code to keep the login safe. I mean after people login by entering username and password, I do not want other user to be able to access my web admin just by entering the url without login first. Notes the admin folder has many pages too which … | |
I dint know how to title this but... I`ll start from begining, i have a .txt file loking like this: 2011-11-14 15:39:51,Polnoc 2011-10-13 15:41:54,Polnocny-Wschod 2011-10-14 15:43:04,Wschod Then there is a code that shows data from last mont,week,day looking like this: [CODE]$lines = file('Kier.txt'); $monthlist = ""; $weeklist = ""; $daylist … | |
I'm seeing a problem where some $_SESSION variables are passed from one page to another, and others are not. The session is setup on login, with user identity held in $_SESSION["id"]. At a later date, I want to shift the identity to another, subordinate account. The change is handled by … | |
Hi, How would i have a text box where each new line is a bullet list. [CODE]<ul> <li>method line 1</li> <li>method line 2</li> </ul>[/CODE] Can i extract the HTML code tags with the text and insert it into a database with the code and text? So it can be accessed … |
The End.