39,323 Topics

Member Avatar for
Member Avatar for moblyft

Hello, can some one help me with the below code? I am trying to create a multiple image upload form that displays the images. I want to save the image name into my msql database and save the actual image into a folder in my dirrectory. <?php define('UPLOAD_PATH', $_SERVER['DOCUMENT_ROOT'] . …

Member Avatar for moblyft
0
354
Member Avatar for masocha

l want to be able to create a custom user page tab with custom tab url for user x, meaning any user who auithorised my app. Anyone know how l can do that.

Member Avatar for diafol
0
71
Member Avatar for dartiss

Morning, I'm attempting to perform a preg_match against a regular expression to identify whether it's a YouTube video or not. I've got, I'll admit, the regular expression from elsewhere... \s*(https?:\/\/www.youtube(?:-nocookie)?.com\/(?:v|embed)\/([a-zA-Z0-9-]+)).* This appears to work fine. However, I'm getting the following error when I attempt the preg_match... WARNING: [filename].php:[line] - preg_match() …

Member Avatar for dartiss
0
195
Member Avatar for Pityu

Hey there My issue is the following: I have a windows-based xampp-apache server with which I would like to make sub-sub domain redirects to subdirectory: I have a domain, for which on the cpanel I've made an A-record to my IP address: The sub domain is *.dev.bestudion.net. Whay I want …

Member Avatar for gtec
0
149
Member Avatar for davy_yg

I basically trying to capture the input information then print the on the screen. Noted, that I must implement filter input and escape output. Please checked whether this result is correct: receive.php <html> <?php $nama = isset($_POST['nama']) ? $_POST ['nama'] : ''; $color = isset($_POST['color']) ? $_POST ['color'] : ''; …

Member Avatar for pritaeas
0
198
Member Avatar for Nsie

Hi, I'm passing through hard times in d hands of this. I have created my database and i'm having issues replacing the content of my database table with the values i.v posted from my form. Please someone shld help Moi.

Member Avatar for drjohn
0
150
Member Avatar for kjeu_kach

How to create code inputbox insert link url? same image [Click Here](https://lh4.googleusercontent.com/-OXkT7nmxWJM/T6pByj9zwNI/AAAAAAAAAE8/RzbL6VdoQI4/s575/inputbox%2520.png) Thanks all! Nice day.

Member Avatar for Szabi Zsoldos
0
194
Member Avatar for veledrom

Hi, I need to pass full content of `$_FILES` to third page but fail to do so. File is selected once in first page. It might look wierd but It has to work this way. If I use session `$_SESSION['csv_file'] = $_FILES;` in page 2, I cannot read the content …

Member Avatar for veledrom
0
251
Member Avatar for ayesha789

Whenever I tried to access Oracle DB from PHP , it shows error Everything is ok, Path is okay. I changed php.ini file to. I am using old version of xampp Warning: oci_connect() [function.oci-connect]: OCIEnvNlsCreate() failed. There is something wrong with your system - please check that PATH includes the …

Member Avatar for ayesha789
0
4K
Member Avatar for mousumisrety

Hi can anyone tell me how i can achive this. I have a product to sell online and will use alertpay but i have some additional information i want the user to fill in before they press the buy button to take the to the payment area.user must give the …

Member Avatar for seslie
0
138
Member Avatar for veledrom

Hi, How can I read a file content without uploading it to the server? I know that we use `$handler = fopen('regular.csv', 'r');` to read an existing file on server but what if doesn't exist. Obviously `$_FILES` is used to move file to server first but I don't have any …

Member Avatar for veledrom
0
384
Member Avatar for DaveyMoyes

Hi everyone, I have a script running on my page that uploads a new image. I am getting the information from the mysql ok, by using if (isset($_POST['var'])) { Once the vailidation is complete, at the moment I am using header("Location: url.php"); to reload the page to display the new …

Member Avatar for dschuett
0
738
Member Avatar for ldupreez

Hi All I would appreciate some advice on where to start with this daunting task i have. Please also bear with me as i am fairly new to PHP. I’ve created an online form for my clients to complete in order to get a quote. The only thing I can …

Member Avatar for diafol
0
174
Member Avatar for kukula

Hi there, at the beginning I must admit that I am not good at PHP. I made a few websites in HTML but now I don't know what happened and what to do with it. I wanted to change a few things at [http://www.tips2.pl/](http://www.tips2.pl/) which is made in PHP. Everything …

Member Avatar for kukula
0
199
Member Avatar for mgn2683

How would I go about inserting a page break to occur within a repeat region for printing? I have a recordset pulling 222 records to be displayed. They want to be able to print each record on a page, so I would have to put the page break code in …

Member Avatar for aslamswt
0
12K
Member Avatar for athulram

When I send mail using PHP's mail function. The reciever's client shows "via soandsohost". But when I use horde webmail fromt the host's cPanel it does not seem to appear. So haw can I remove the "via" part while still being able to send mail using PHP code ?

Member Avatar for pritaeas
0
89
Member Avatar for codemonkey88

Is anyone on here using FCKeditor filemanager? I know its quite old now, but it came with a CMS. I have been trying to upload some large zip files using the filemanager, but it just says unvalid file. When I've had a look round on the net, I found a …

Member Avatar for codemonkey88
0
113
Member Avatar for rkumaram

Hi, I am creating a small page with the help of jquery , What I want is when I click on **shortdesc** TR class, only the corresponding **fulldesc ** TR class should be visible. Currently Its showing all the **fulldesc** TR clasees. Please help me to solve this. Following is …

Member Avatar for rkumaram
0
226
Member Avatar for mehrantahir

Hi everybody, So, 'Litmus', a web app for testing emails and webpages across browsers and email clients, has a proprietary method that they claim is able to track not just opens, clicks, browsers, etc (standard with an embedded image and pass-through link tracking.) What's unique is they claim that they …

Member Avatar for mousecraft
0
259
Member Avatar for reco21

Hey Everyone. Im using jquery's Validation plugin to check post values before I submit a form. Im trying to check a mysql table column to match user name to check for a duplicate name before submitting. This snippet of code below works as expected.. [CODE]<?php $request = trim(strtolower($_REQUEST['login'])); //sleep(2); usleep(150000); …

Member Avatar for reco21
0
206
Member Avatar for showman13

Hi, I have a question that on the surface is probably pretty simple, but with a couple of caveats... What I have is a membership site, where the members have a replicated website, and their personal link is the domain.com/username I use htaccess MOD ReWrite to capture the members username …

Member Avatar for showman13
0
254
Member Avatar for UFO Disko

Hello, I'm trying to get mysql data with a simple select statement, I need to get the number of the row as well. The table should like this: 1 - Song Name, Artist 2 - Song Name, Artist 3 - Song Name, Artist The problem is with the code I'm …

Member Avatar for vibhaJ
0
46
Member Avatar for kairoland

I'm not very good with php or mysql so I can't figure out what I'm doing wrong. I get this error: Failed You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'tests,'20120508,'5.5,'20120508)' at line …

Member Avatar for kairoland
0
419
Member Avatar for riahc3

Hey I have the following: <?php echo $_COOKIE["name"];?> <?php echo $_item->getId();?> With the $_COOKIE["name"] having a value of "hi" and the $_item->getId() having a value of "5" (or 5, irrelevent as it is all strings) what if I want to do something like (fake nonworking code): concat joins 2 strings. …

Member Avatar for vibhaJ
0
144
Member Avatar for VernonDozier

function validate_font_family($font_family, &$error_message) { $valid_match1 = '"Times New Roman",Georgia,Serif'; $valid_match2 = '"Arial",Georgia,Serif'; if(preg_match($valid_match1, $font_family) || preg_match($valid_match2, $font_family)) { return true; } $error_message = "Invalid font family(" . $font_family . "). Must be either "; $error_message .= $valid_match1 . " or " . $valid_match2; return false; } The code is supposed …

Member Avatar for VernonDozier
0
101
Member Avatar for dtidmas1
Member Avatar for s7mo

Hello all I am attempting to use PHP programming to execute a scripts to this link... http://ws.geonames.org/postalCodeSearch?postalcode=VARIABLE_ZIP&country=US. The VARIABLE_ZIP is the actual zip code entered into the form that will submit the information in the link above. The output of that link creates an XML page that i do not …

0
82
Member Avatar for karanits

I know there are multiple variations of this question here, but not in this form. My Ledger table, in a basic form have the following columns. TransactionID | DateOfEntrydate | TransactionDate | ClientID | TrIsDebit | OpeningBalance | Amount | ClosingBalance DateOfEntry is a colums which stores time of insert …

Member Avatar for karanits
0
1K
Member Avatar for riahc3

Hey Let me see how I describe this.... I have a textbox (inside of a form) and that form also has a button that calls a Javascript function that does some unrelated stuff. This is all inside of Lightbox. I want to be able to type in text in that …

Member Avatar for emclondon
0
184
Member Avatar for mogaka

i have the following query: 1.$query="SELECT * FROM ab_service WHERE account_id=$account_id AND sku='".$sku."'"; 2.$query="SELECT * FROM ab_service WHERE account_id=$account_id AND sku='$sku'"; none of the above seems to work.the problem is with $sku var because when i dont put it as the condition, i get results.what is the problem ? the …

Member Avatar for seslie
0
63

The End.