39,323 Topics

Member Avatar for
Member Avatar for hell hansen

Hi Guys, Happy new year for everybody. Look i'm trying to achive a goal to load iframe on bootstrap modal dinamical. Like i just want the iframe src be called just when modal is opened. Because the src url is coming from database, and in some page there more than …

0
106
Member Avatar for abhi10kumar

How I can send emails to gmail, yahoo, etc. from localhost. I am using XAMPP in windows. What are the necessary changes in php.ini ??

Member Avatar for Muhsin Mohamed
0
8K
Member Avatar for Sophia_1

Hi everyone, tried to display next and previous records from the coding below but unable to do so.It suppose to display next records for the current user with the when user click "Next" but currently it doesn't display "Next" but only display "Random". When i clicked "Random", it displays next …

Member Avatar for Sophia_1
0
390
Member Avatar for Gautam_2

<h2><i>Top Rated</i></h2> <center> <table> <tr> <? foreach($top_ratings as $key => $image) : ?> <td valign="top"><img src="images/<?=$image->filename?>" width="70" /></td> <? endforeach ?> </tr> <? <tr> <? foreach($top_ratings as $key => $image) : ?> <td valign="top">Score: <?=$image->score?></td> <? endforeach ?> </tr> <tr> <? foreach($top_ratings as $key => $image) : ?> <td valign="top">Performance: …

Member Avatar for pritaeas
0
325
Member Avatar for Fiorentino01^
Member Avatar for janicemurby

i have followed a tutorial for a working checkbox group after failed attempts with others. On test file it was working but when i add it to my site i dont get any results after submitting form. First of all here is the file from tutorial. Sorry in advance for …

Member Avatar for ryantroop
0
245
Member Avatar for Stefce

How can i get the end of the month or the beggining of the month to create a new table for records ? i have this code but it gets the current month... <?php $user = getUserData('users', 'UserUsername'); $sql = "SELECT `ticket_id`, `Uplata`, `Dobivka`, `Date` FROM `kladilnica` WHERE `Username`='$user'"; $result …

Member Avatar for Stefce
0
311
Member Avatar for janicemurby

hi i have followed a online tutorial to replace photo system on my site and all went well till i attempt to upload photo i get no file selected even if i have just gone on the page but after pressing submit i get a success message and the photo …

Member Avatar for janicemurby
0
199
Member Avatar for bLuEmEzzy

Hi Guys Im trying to search in a textbox on my form and its value will load on the table. But I cannot get how, and also what should I use, I only know PHP and simple Javascript, Please help me. I only want to know on how can I …

Member Avatar for bLuEmEzzy
0
224
Member Avatar for SimonIoa

Hello i want to create a script like this `$query=mysqli_query($this->db,"SELECT * FROM table WHERE to_user_id='$uid' ORDER BY id DESC")or die(mysqli_error($this->db));` but the to_user_id row has multiple values. (45,67,234) Lets say that one of them (45) is the $uid note: the $uid variable is called on a session file. Its the …

Member Avatar for diafol
0
211
Member Avatar for hdhookings

Hi - I am very new to this. I have a joomla site where I am trying to get a date from a datepicker and display parts of my table using the date. Two major problems: Datepicker - for future. $dateSelected1 = $dateSelected . " 00:00:01"; $dateSelected2 = $dateSelected . …

Member Avatar for rubberman
0
300
Member Avatar for Stefce

How can i check if username and email exists i have this code but its only checking the email not the username... $sql = "SELECT `Email`, `UserUsername` FROM `users` WHERE `UserUsername`='".$user."' AND `Email`='".$email."'"; $result = $conn->query($sql); if($result->num_rows >= 1) { echo "Email or Username already exist, try something else."; } …

Member Avatar for saheedriswan
0
13K
Member Avatar for csshacker
Member Avatar for FarrisFahad

Hello everyone, I want to build an advertising system like AdSense on my website. I want to count only clicks that are not from the same user. Because I don't want the user to click many times on the same ad and ruining the ad program. I was thinking of …

Member Avatar for cereal
0
267
Member Avatar for janicemurby

hi i got another syntax error in a script that i am fixing to add onto my main site can someone take a look to see whats going off this error is You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version …

Member Avatar for janicemurby
0
221
Member Avatar for janicemurby

hi im wondering what the difference between mysqli_escape_string and mysqli_real_escape_string as i have a error on mysqli_escape_string and when i go to google error im just getting results in with mysqli_real_escape_string

Member Avatar for portjm
0
78
Member Avatar for janicemurby

hi i managed to change my site from mysql to mysqli with all your help although i have one line thats causing me problems in inbox.php can someone check this out and see whats wrong the error im getting is Warning: mysqli_fetch_array() expects parameter 1 to be mysqli_result, boolean given …

Member Avatar for janicemurby
0
331
Member Avatar for Makeitonline

need help in inserting a php inside this script, heres the code <script type="application/javascript"> var eventData = [ { date:"2015-03-01", badge:false, title:"Example 1" }, ]; $(document).ready(function () { $("#my-calendar").zabuto_calendar({ data: eventData }); }); </script> example i just want to declare a varible like $date=$row['date']; date:"<?php echo $date ?>", but its …

Member Avatar for rubberman
0
254
Member Avatar for abhi10kumar

I would like to send Post Data to a Symfony Controller, but it doesn't work. When I send my data with AJAX, it is sending the POST data, but it is showing red link in the console with no error message or status. Here is my Javascript code: function addprivate(){ …

Member Avatar for cereal
0
1K
Member Avatar for joshl_1995

Hello Community, I was wondering if there is a way to get a posts comments within a Facebook group? I have tried using https://graph.facebook.com/{POST_ID}/comments?access_token={ACCESS_TOKEN} but all it returns is Array ( [data] => Array ( ) ) even though there are comments on my post.

0
103
Member Avatar for SirMahlon

please i want to reduce the size of images when i am rendering it on my site. my site is very slow now. i want to accept any size now but when rendering please i want to reduce the size. thanks in advance

Member Avatar for LaxLoafer
0
254
Member Avatar for shany0786

i am using password_hash() and password_verify() for hashing passwords but passwords_verify() returns false.This is my code <?php /** * . * * @author Anmol Raghuvanshi <ershadow786@gmail.com> * @license * @copyright */ class User_admin { private $db; function __construct($DB_con) { $this->db = $DB_con; } public function register($fname,$lname,$umail,$upass,$mobile,$address) { var_dump($upass); try { …

Member Avatar for shany0786
0
2K
Member Avatar for janicemurby

PHP Warning: mysqli_error() expects exactly 1 parameter, 0 given on line 31 $insert = mysqli_query ($conn," insert into user set user_name = '".$_POST['uname']."' , age = '".$age."' , page = '".$page."' , user_password = '".$password."' , user_birthdate = '".$user_birthdate."' , puser_birthdate = '".$puser_birthdate."' , user_gender = '".$_POST['gender']."' , user_country = …

Member Avatar for rubberman
0
13K
Member Avatar for Violet_82

HI guys, as mentioned not too long ago here https://www.daniweb.com/programming/web-development/threads/501668/contact-form-building-my-own-or-already-made I'm building my own php script that is supposed to validate and submit form fields to an email address provided. The problem is that I have no real experience of php so I' just doing some readings, getting bits and …

Member Avatar for cereal
0
1K
Member Avatar for Florea

Hy there! I have a strange error to my prestashop. If I deactivate the module block contact without container the whole theme for mobile is ruined....Please see photo https://www.dropbox.com/s/1pst1w9ivuw4v3a/2016_01_03_12.25.10.png?dl=0 The error appears only to mobile and tablets. For desktop everything is okay. The same problem I get if I activate …

Member Avatar for Florea
0
168
Member Avatar for Da_2

I've got a small problem. I'm working on a little package/product-list. If you're watching a Package, my website should show you which products are in there. If a product is more than one time in it, the array should be deleted and the value of the leftover array should be …

Member Avatar for diafol
0
472
Member Avatar for Stefce

Why i get these errors when i open the page but when i try to upload it works fine ? <?php function upload_images() { $target_dir = "uploads/"; $target_file = $target_dir . basename($_FILES["fileToUpload"]["name"]); $uploadOk = 1; $imageFileType = pathinfo($target_file,PATHINFO_EXTENSION); // Check if image file is a actual image or fake image …

Member Avatar for Stefce
0
482
Member Avatar for gamebits

Here is the deal, working on a card game using php mysql, I have a very simple way of shuffling the deck and I use array_chunk() to divide the deck into hands, the number of cards in each hand is variable depending of the numbers of players, there is also …

Member Avatar for cereal
0
440
Member Avatar for Hugo_1

pls i have a syntax error here... i have syntax error in line2 .... <?php mysql_query("insert into $s[pr]ad_type_google_dhtml VALUES (5, 'var dhtmlwindow={\r\najaxbustcache: true, //Bust caching when fetching a file via Ajax?\r\nminimizeorder: 0,\r\ntobjects: [], //object to contain references to dhtml window divs, for cleanup purposes\r\ninit:function(t){\r\n var domwindow=document.createElement(\"div\") //create dhtml window div\r\n …

Member Avatar for Nishant shukla1
0
292
Member Avatar for AntonyRayan

Hi, I am new to framwork, Now I started to learn Codeigniter. I have installed version of CodeIgniter 2.2.6, from the following link https://codeigniter.com/download I want to do a simple registration form with image upload , storing that image in a seperate folder, image name in to database, and with …

Member Avatar for Nishant shukla1
0
4K

The End.