39,323 Topics

Member Avatar for
Member Avatar for davy_yg

I have another send email program that I am trying to fix. It's different from the previous one: index.php <form action="contact.php" name="contactform" class="row" method="post"> <h4>Request a FREE TRIAL CLASS!</h4> <div id="input_name" class="col-md-12"> <input id="name" class="form-control" type="text" name="stu_fname" placeholder="Full Name"> </div> <div id="input_email" class="col-md-12"> <input id="email" class="form-control" type="text" name="stu_email" placeholder="Enter your …

Member Avatar for pritaeas
0
357
Member Avatar for patk570

Hello, I am trying to get this to loop through all the available items in a database and return the results. <?php $qry = mysqli_query($con,"SELECT * FROM `favorites` WHERE `username` = '$id'") or die(mysqli_error($con)); while($rowa = mysqli_fetch_array($qry)) { $slugname = $rowa['slug_name']; $url = $rowa['slug']; echo '<a href="'.$url.'>'.$slugname.'</a>"'; } ?> I …

Member Avatar for patk570
0
119
Member Avatar for jKidz

Hi Friends, I want to add this css style to existing template. .citems { font-family: 'Open Sans', sans-serif; font-size: 14px; color: #000; line-height: 20px; border-bottom-width: thin; border-top-style: none; border-right-style: none; border-bottom-style: dotted; border-left-style: none; border-top-color: #000; border-right-color: #000; border-bottom-color: #333; border-left-color: #000; text-indent: 10px; } @font-face { font-family: 'Open Sans'; …

Member Avatar for mavensays
0
352
Member Avatar for davy_yg

This is the first url: http://localhost/SquprimeRevise/administrator/admin/invoice_edit.php?group_id=7&type=new invoice_edit.php <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Squprime</title> <!-- CSS --> <link href="style/css/transdmin.css" rel="stylesheet" type="text/css" media="screen" /> <!--[if IE 6]><link rel="stylesheet" type="text/css" media="screen" href="style/css/ie6.css" /><![endif]--> <!--[if IE 7]><link rel="stylesheet" type="text/css" media="screen" href="style/css/ie7.css" /><![endif]--> <!-- …

Member Avatar for broj1
0
335
Member Avatar for davy_yg

Hey I am trying to create forget password feature. When a user forget the login password an email address must be send to his/her email with a password reset link. I wonder how to do so? I have the user password stored in the database I can retrive it easily. …

Member Avatar for davy_yg
0
493
Member Avatar for patk570

Hello, I am getting a weird error when i try to run this array: //leafly api keys $appID ='Blah'; $appKEY = 'blah'; //init curl $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "http://data.leafly.com/strains/".strtolower($data)); //change the strain dynamically of course for your app curl_setopt($ch,CURLOPT_HTTPHEADER,array('APP_ID:'.$appID,'APP_KEY:'.$appKEY)); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $output = curl_exec($ch); //Clean it into an …

Member Avatar for broj1
0
1K
Member Avatar for adishardis

Hi, I have the below array (or is it called string?) with javascript date and a value. I need to sord the elements by the date but i dont know how to do this?! [1366754400000, 8], [1366840800000, 3], [1366927200000, 1], [1368482400000, 1], [1384383600000, 1], [1369951200000, 1], [1377554400000, 1], [1377813600000, 8], …

Member Avatar for broj1
0
312
Member Avatar for davy_yg

//LOAD IMAGE TABLE $filename = $_FILES["file"]["name"]; $image_info = getimagesize($filename); $image_width = $image_info[0]; $image_height = $image_info[1]; echo "filename1 : ".$_FILES["file"]["name"]; echo "filename : ".$filename; echo "image info : ".$image_info[0]; echo "image info : ".$image_info[1]; echo "image width : ".$image_width; echo "image height : ".$image_height; filename1 : feature1.png filename : feature1.png image …

Member Avatar for davy_yg
0
2K
Member Avatar for Sophia_1

Hi...i would like to save and edit some excel files located in server using php. The coding below upload the file but when i open the page again...the message 'no file chosen' appears. Please help on this matter...thanks a lot... <?php error_reporting(E_ALL ^ E_NOTICE); $_SESSION['Targetid']; $_SESSION["Progressid"]; $conn = mysql_connect("localhost","pqa",""); mysql_select_db("pq",$conn); …

Member Avatar for Sophia_1
0
2K
Member Avatar for markii.borabon_1

I have two arrays, and my problem is when I pick one value of first array it must also remotely picked the same value of the second array. Explain : array ("Volvo","BMW","Toyota"); array ("200","300","400"); It's like when I choose "Volvo" it must also remotely choose "200" OR when I choose …

Member Avatar for gabrielcastillo
0
139
Member Avatar for JosephHanh

I am working on a quiz app image 1 shows the index.php page image 2 shows the first question image 3 shows the second question image 4 shows the third question image 5 shows the result after completing the quiz image 6 shows the database 'quizzer' and its tables image …

Member Avatar for JosephHanh
0
4K
Member Avatar for Amine_3

hi i have a little problem, that i want to print the count of id, so i write this: $conn=mysqli_connect("localhost", "root", "","test") or die(mysqli_error()); $compt=mysqli_query($conn,"SELECT count(id) FROM `users`", MYSQLI_USE_RESULT); print $compt; to connect to db and extract the count id, i have an error and i dont know how to …

Member Avatar for gabrielcastillo
0
152
Member Avatar for HuePig

Hi, I'm trying to get the value from a javascript: `window.locaiton.href = "db/create_eoi.php?refNum=" + rNum;`. <?php if(isset($_GET["rNum"])){ $refNum = trim($_GET["rNum"]); } ?> the problem is that where ever I use `$refNum` I get an error saying Undefined Variable. To be more clear: what im doing is getting a value from …

Member Avatar for HuePig
0
202
Member Avatar for adishardis

Hi, I'm getting an url variable from this `test.php?ids=1,2,3` and need to transform it to Array ( [0] => 1 [1] => 8 [2] => 9 ) What I've tried is : `$ids = explode(', ', $_GET["ids"]);` but that gives me an array like this: Array ( [0] => 1,8,9 …

Member Avatar for adishardis
0
113
Member Avatar for RonKevinT.Manuela

Im trying to convert mysql query to mysqli but it doesnt work...why? From: mysql_query("UPDATE views SET views=views+1 WHERE viewID='1'"); To: $q1=$mysqli->query("UPDATE views SET views=views+1 WHERE viewID='1'"); Errors: Notice: Undefined variable: mysqli in C:\wamp\www\SICS\home.php on line 5 Fatal error: Call to a member function query() on a non-object in C:\wamp\www\SICS\home.php on …

Member Avatar for gabrielcastillo
0
370
Member Avatar for keyra.lee.5

hi guys..i have a question...let me explain first..for my project i'm doing a checkbox for user to tick for several documents..after user click the checkbox..it will save in the database..based on that database..what i want is to display that checkbox..for example..if this checkbox have 10 ..then if the user tick …

Member Avatar for gabrielcastillo
0
427
Member Avatar for janicemurby

hi im looking at creating a events system for my members similar to the images below would it be best to change a calendar software or change a clasified ads but if anyone can think of anything else i can use to do this as im not good at php …

Member Avatar for gabrielcastillo
0
122
Member Avatar for zeeshan009

Hi All, I am developing a website in which i am selecting some values form database by a query When i am running query on PHPMyAdmin i am getting desired results but when i am using this query in actual PHP code, i am getting value of Last row. Can …

Member Avatar for gabrielcastillo
0
223
Member Avatar for Nurul_2

Hello, I need a help to sorting data from php table by using a dropdown menu.. The table is reservations and im going to sort the reserve_Date where when I click the reserve Date then the data will be display.. Can someone help me? This the code form dropdown menu …

Member Avatar for gabrielcastillo
0
246
Member Avatar for Amine_3

i don't know how to refresh a textarea. if i have a text file opened on this textarea and i entre some lines into this file, i want to refresh my textarea in ..second automaticaly ..to see the new lines.. <textarea id="chat" rows='38' cols='189'> <?php $file1 = "test.txt"; $file2 = …

Member Avatar for gabrielcastillo
0
1K
Member Avatar for Jack_9

Hello. I'm preety new to php and web development and I've written a large scale development using php and I want to be able to work on it on my windows machine. But does anyone know of an istallation so I can just straight up run php scripts on windows??? …

Member Avatar for Jack_9
0
190
Member Avatar for kaprikorn07

Hi All, I have a PHP code to display table data with a column of checkboxes used to click to mark the test case as Blocked. I am trying to save the state of checkbox after it is submitted, but I am unable to do so. Please help! echo "<form …

Member Avatar for gabrielcastillo
0
2K
Member Avatar for al2henry

http://www.conservancyonmayne.com Each main page of this site (other than "index.html") has had its main dropdown menus display via a php include statement - example www.conservancyonmayne.com/talks&walks.php - I have recently added a jslider sequence that appears below this main menu. The problem: when the full dropdown "content" is on the page …

Member Avatar for al2henry
0
196
Member Avatar for Sean_7

How to redirect url links with parameter in htaccess? Example : for_rent/detail?pro_id=Estrpsatx0usdf-wsdf/dsfet_js-97&type=.....

Member Avatar for diafol
0
48
Member Avatar for Jake.20

Greetings pros :D. I am having problem with creating a directory on my linux server. When i download a file it display that error. (I migrated my php project from windows to linux using WinSCP.)

Member Avatar for Jake.20
0
1K
Member Avatar for ernesto22

i'm having a problem with parsing variables from previous page and saving to database on the next page. i have two pages . first page is where i view my data. i do a select sum, and it works. now on my second page i want to take the total …

Member Avatar for milil
0
117
Member Avatar for koneill

All, I'm trying to pass a hidden value into my php mail script - the img1 isn't displaying - in the e-mail it's coming across with just http://www.mysite.com/custom_clock/sills/ and not the img1 value The html form is here: <form name="customemail" action="mail.php" onsubmit="return SubMail_Validator(this)" method="POST"> <b>E-mail</b><br/> <input type="text" name="from" size="25"><br> <input …

Member Avatar for koneill
0
336
Member Avatar for HuePig

Hi, to my understanding, `isset()` checks is the variable exist and have a value. But when I try the code below, _randNum() keeps on getting new values when it should already have a value because it already exist and have a value. <?php session_start(); if(!isset($_randNum)){ //Check if the variable dont …

Member Avatar for hericles
0
475
Member Avatar for diafol

Hi All, Been a bit bored, so went at it to create a class from some long procedural stuff I found littered in various guises all over the web. The code I used as a base for the class came from [here](http://www.codediesel.com/php/downloading-gmail-attachments-using-php/). As this uses IMAP functions and many of …

4
3K
Member Avatar for ignnniter

Please help me. thanks <?php if ( wt_get_option( 'wt_show_post_img' ) == 1 ){ if (has_post_thumbnail() ) { ?> <div class="thumbnail single-post-thumbnail"><?php the_post_thumbnail( 'wt840_420' ); ?></div><?php } } ?>

Member Avatar for gabrielcastillo
0
139

The End.