39,388 Topics
![]() | |
Ok, I am not a professional in PHP as I am more on front-end than back-end. I want to know some information of file upload in PHP. I did create a website as a project where users can upload images, with its security and validation. The images stored in a … | |
Its been alot of mess to make the pagination in wordpress :( I have the pagination, but it renders the same page template file is ?php get_header(); ?> <?php global $my_query; global $paged; $paged = get_query_var('paged') ? get_query_var('paged') : 1; $temp = $my_query; $my_query = null; $args = array( 'post_type' … | |
I've been at this for quite some time and just can't figure it out.I have a html table and have to find the total sum of the values in the $total/Sale Cost (last) row. Can anyone help me out or point me in the right direction. Code below: <?php print … | |
hi, im trying to write a mysql query to join tables. I basically i have the following tables: tblwinners = table that shows all the winners PK reward_id customer_id tbluser = table that holds all the user accounts PK customer_id tblcompleterewards = completed rewards PK reward_id tblrewards = holds a … | |
Hello Everyone, I have a php class like this: class DatabaseObject { protected static $table_name; } Then, when I extended this class, I do this: class User extends DatabaseObject { protected static $table_name = "users"; } However, I am encountering errors "mysql_fetch_array(): supplied argument is not a valid MySQL" because … | |
> hy guys,..how to make paging from array 3D? > first index[0] become first page next index[1]become second page and next index[2] become third page > example: Array ( [0] => Array page>>>1 ( [0] => Array ( [0] => aaa [1] => bbb ) [1] => Array ( [0] … | |
Hello, I am trying to install this free script: --------------- 3. Installation --------------- To install MyMail, follow these simple steps and you'll be creating lists in no time. 1. Unzip file contents to a folder 2. FTP into your server and upload MyMail 3. CHMOD config.php to 777 and the … | |
Hello, Cek this site: [website](http://www.kompas.com/) If you hover the mouse above each article title, there is an explanation tips appears. How to do so? | |
Hi, I need help in writing a regular expression accoding to the following criteria: preg_match (keywords tel/contact/phone/phne/telephone which can be found anywhere in the string) followed by 7 int(numbers). Thnx, Regards, Sami | |
<?php $con = mysql_connect("localhost","root",""); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("ms", $con); $time1 = $row['timein']; $time2 = $row['timeout']; $sql = mysql_query("SELECT employees.*, timetable.* FROM employees INNER JOIN timetable ON employees.id = timetable.id WHERE timetable.in_time BETWEEN employees.timein AND employees.timeout "); echo "<table width='734'> <tr> <th width='49' scope='col'>Employee … | |
If I choose to retrieve some MySQL data using PHP, how do I put it in a certain area of my page? For example, if there is a div with an id of "putTextHere", how to make PHP echo/put text in this div? And how to get a certain value … | |
Hi, I am trying to create an input that collects address inputs (home address) and I have no idea how to start nor how to create an input like that. I tried Google, got nothing from it. If anyone can help, that would be great :) | |
hi, i have a problem to display my data. i have 4 table (**proposals,quotation, po,simulation**), in **proposal** there is **pro_id, pro_name,file_name and file**, in **quotation** there is **pro_id, quo_name, file_name and file**, in **po** there is **pro_id, po_name, file_name and file**, in **simulation** there is **pro_id, simul_name, file_name and file**. … ![]() | |
hiii! Can any one help me to add super user to my login script that can veiw and edit all user, and evry user can veiw his/her profile like facebook. hope you people will help me. ![]() | |
hi everyone i have made 3 stylesheets for different looks for my website i want to load/ change the stylesheet if the user selects the dropdown option and cliks update button heres my code for drop down <label>Select Theme:</label> <select name="theme" value="<?php echo $theme; ?>"> <option value="Default">Default</option> <option value="Dark">Dark</option> <option … ![]() | |
Hi Admin..!! i want source code in php+ajax for a form, in such a way that, suppose i have a form in php, with 10 different fields, when the user fills that form, the fields next to gender should automaically change, like the remaining fields must be different for Male … | |
Hi, How I should crypt messages when sending on my own site them from user to another? I don't want them to be plain text in a database or be readable easyly via stealing datastream over wifi. Thanks! ![]() | |
hi to all m lil bit confuse as m beginner to the xml+xpath. so m sorry if i m unable to ask any kind of wrong question. now the question is m trying to accessing the name of the of the attribute of xml file using xpath and tyring to … | |
Hi I am inserting in database but there is error in query. i have array in which form data is stored and function recieve the array but data is not inserting in array. bellow is the code. $insArr=array(); $insArr['first_name']=addslashes($_REQUEST['first_name']); $insArr['last_name']=addslashes($_REQUEST['last_name']); $insArr['email']=addslashes($_REQUEST['emailid']); etc there is 46 fields in table //now the … | |
**Hi Daniweb!** I have a question regarding my e-commerce website. On my product overview, I have this code: <?php $replace_what = array('/',' ', ' - ', ' ', ', ', ','); $replace_with = array('-',' ', '-', '-', ',', '-'); //Start of (1) $mysqli = new mysqli(***); if (mysqli_connect_errno()) { printf("Connect … | |
hi everyone, i just want to ask is there any mistake in my code..because whenever i comment the email check it wroks fine but with email check it always gives error that this email already exists.. i am actually checking if the email im going to add is present already … | |
hope everyone is fine over there :) i just wanted to ask how i can display only one question at a time from mysql table?? here is my code which is doing following things 1) selecting all questions and displaying them what i want to do is 1) display only … | |
I need help. I got this error after submitting a form that uses formmail.php: Parse error: syntax error, unexpected T_STRING in /home/thewebdy/public_html | |
I'm a bit lost on this with html5 - The datasrc attribute on the select element is obsolete. Use script and a mechanism such as XMLHttpRequest to populate the page dynamically.. Does this mean that I will have to change everything into a ajax format? ![]() | |
i Always getting : **mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\wamp\www\class\function.php on line 28** please give the suggestion friends config.php <?php define('DB_SERVER', 'localhost'); define('DB_USERNAME', 'root'); define('DB_PASSWORD', '12345'); define('DB_DATABASE', 'class'); class db_class { function db_constractor() { $connection = mysql_connect(DB_SERVER, DB_USERNAME, DB_PASSWORD) or die('Oops connection error -> … | |
Getting a q is undefined.. I took <option="1">1</option> etc.. and now I'm pulling with ajax from datasrc.. I can't quite figure out how to define my database value.. The one uses query which pulls from the auto start typing.. then it submits to the other page through q - Once … | |
I'm getting this error in one of my scripts: **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 '-25,25' at line 1** Below is part of the code any help would be great <?php … | |
Okay, sorry if it's a terribly easy/newb-ish task. But I really need this figured out, so I appreciate any help at all. I have a simple online exam task with just a couple of pages, just started learning PHP. The process is like this: 1.) a new user inputs his … | |
Hello all.. we can execute php files from the command line interface... but do we have anything using which we can execute the command line cmds from our php file?? Plz help soon.. |
The End.