39,326 Topics

Member Avatar for
Member Avatar for Harry_8

I was recommended by a friend and he sent me 3 dedicated server plans http://forumweb.hosting/14028-host-color-us-dedicated-intel-xeon-e3-1230v3-100-mbps-unmetered.html http://forumweb.hosting/13123-mrrapidhost-ddos-protection-100-uptime-24-7-support-1gbps-dedicated-port-e3-from-50-mo.html http://forumweb.hosting/14129-managed-dedicated-servers-delivered-within-hours!-ssd-disks-1-gbps-connection-and-ddos-protection.html but i don't know which one is better, my budget is $75 / month, I want to upgrade my VPS hosting to a dedicated server for my sites. My sites are Wordpress blogs …

Member Avatar for Dani
0
169
Member Avatar for Stefce

Why i cannot pass array to function parametter with two items? here is the function, but i get just the first parameter `Username` function selectSQL(Array $item, $table) { global $conn; foreach ($item as $field) { $sql = "SELECT `$field` FROM `$table`"; $result = $conn->query($sql); if ($result->num_rows > 0) { while($row …

Member Avatar for Stefce
0
292
Member Avatar for Dani

I'm having a little brain fart and I just want to double check something ... // Array of [a,b,c,d] $array = array('a', 'b', 'c', 'd'); // Loop through array foreach ($array AS $letter) { // Break out of the loop on a specific condition if ($letter == 'c') { break; …

Member Avatar for ryantroop
0
374
Member Avatar for davidjennings

Good afternoon all, The issue I am having is that when POST data values are looped through inside the while loop as each record is compared with the POST data and the database record for any changes. For this test the data from the post is exactly correct. The if …

0
401
Member Avatar for Nunix

I am trying to put a post feed on the homepage but I am with difficulties on it. I think my query it might be wrong, but I want to pick the username from 'blabs' table and see if that 'username' from the same table is the user or the …

0
159
Member Avatar for phphp

Sir, I have this header.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> <link rel="stylesheet" href="css/css3menu1.css" type="text/css" /> <style type="text/css"> #header1 { width: 100%; color: #FFC; background-image: url(images/header.gif); font-size: 28px; font-weight: bold; font-style: oblique; text-align: left; padding: 5px; position: fixed; } #header1 img { vertical-align: middle; } …

Member Avatar for gentlemedia
0
352
Member Avatar for Stefce

Hello i started learning php laravel framework today and as far as i learned i can say its great framework. My problem is declaring the links to other files. Here is the route for file `register.blade.php` web.php Route::group(['prefix' => 'auth'], function() { Route::get('register', [ 'as' => 'get_register', 'uses' => 'Auth\AuthController@getRegister' …

0
106
Member Avatar for davy_yg

What is the difference between main/index.php and main/ ? Can anyone help me figure that out? I have edit http://www.masterlink.co.id/index.php file yet when I checked it in http://www.masterlink.co.id the file does not load index.php. I thought it suppose to be automatic like http://www.masterlink.co.id/index.php = http://www.masterlink.co.id Can anyone help me figure …

Member Avatar for cereal
0
371
Member Avatar for blueguy777

How to store the following curl_exec output into mysql table? sent,success,114661698,709081462,+919900123456 sent,success,134707665,937687314,+917795987654 Eg: var1='sent' var2='success' var3='114661698' var4='709081462' var5='+919900123456' --------------------------------------------------- var1='sent' var2='success' var3='134707665' var4='937687314' var5='+917795987654' Thanks in advance

Member Avatar for cereal
0
2K
Member Avatar for Nunix

Hey guys, I am doing a friend list and it's not working very well. Well I tried to show all the user's friends but it's not working, it only shows one instead of all. In MySQL friends_request I have something like this: username1 -> username2 username1 -> username3 username2 -> …

Member Avatar for diafol
0
302
Member Avatar for Stefce

I want to make pagination for videos since i have much videos and i cannot load all in the same page, i have a function which displays all videos in the directory and than i limited it only to show first 6. How do i make the pagination so when …

Member Avatar for diafol
0
270
Member Avatar for phphp

Sir I have these codes <?php $stockdate=""; $queryx = "SELECT max(data.date)as date from ( select max(date)as date from crprp union all select max(date)as date from pouring union all select max(date)as date from product ) as data"; $resultx = sqlsrv_query($con,$queryx)or die ("Error". sqlsrv_errors($con)) ; while ($rowx = sqlsrv_fetch_array ($resultx)){ $stockdate=($rowx['date']); } …

Member Avatar for cereal
0
250
Member Avatar for reminem

Hello everybody, In an earlier post I created an bingocard with random numbers. The card should have 6 rows and 6 columns. I get 6 rows and 10 columns. I am trying to adjust the columns, but with my script now it prints on each row the first number till …

Member Avatar for reminem
0
205
Member Avatar for EMP01616

help please.. guys this is just the only problem in my program i cant print my data from sql..i need my thesis to finish soon..help please.. heres my code <?php require('fpdf.php'); $fullname = ""; echo $contractno = $_REQUEST['contractno']; echo $sname = $_REQUEST['sname']; echo $fname = $_REQUEST['fname']; echo $mi = $_REQUEST['mi']; …

Member Avatar for cereal
2
7K
Member Avatar for Joshua_18

Is there a way where there is a number on the screen, for example 100, and a form where you can insert a number in the form and that number will be deducted from the one displayed. So if i inserted 5, the number will become 100 and can there …

Member Avatar for brothman01
0
150
Member Avatar for Matthew_16

**Note: this project is being restarted after one year of in-action, using the most relevant files I am able to locate. All final code will be adapted to MySQLi.** Versions of this code functioned properly to the best of my knowlege; now, with a new host I am having issues …

Member Avatar for diafol
0
368
Member Avatar for phphp

Sir I have these codes <html> <head> <script type="text/javascript" src="js/jquery.js"></script> <script type="text/javascript" src="js/jquery-ui.js"></script> <link rel="stylesheet" href="css/jquery-ui.css"> <script type="text/javascript"> $(function() { $( "#coding_language" ).autocomplete({ source: 'autocomplete.php' }); }); </script> </head> <body> <div id="wrapper"> <div class="ui-widget"> <p>Code <input type="text" id="PT"></p> <p>Party <input type="text" size="40" id="coding_language"></p> </div> </div> </body> </html> and autocomplete.php has …

Member Avatar for phphp
0
1K
Member Avatar for reminem

Hello Everybody, I am trying to create a bingocard with 6 rows and on each row 10 numbers. Row 1 from 10 to 19 (randomly), row 2 from 20 to 29 etc. The code I have till now, displays only one long row from 10 till 69 randomly as supposed. …

Member Avatar for reminem
0
2K
Member Avatar for janicemurby

hi im attempting to update a script and i have come across the following error PHP Warning: mysqli_real_escape_string() expects parameter 1 to be mysqli, null given in so here was the orginal $sql = "select * from chat where (chat.to = '".mysqli_real_escape_string($_SESSION['usernamechat'])."' AND recd = 0) order by id ASC"; …

Member Avatar for diafol
0
9K
Member Avatar for visualmonk

Hi Daniweb Community, I'm having a small problem. I am unable to get the size of an uploaded file from the server to run a max size check. When I use the following command as specified in any example of file upload I can find on the web: if ($_FILES["r_recommend"]["size"] …

Member Avatar for cereal
0
220
Member Avatar for Julian_5

Fiirst of all thanks in advance for any help. I uploaded a test page so you can see the problem: http://senoranabogados.com.ar/test1.html And this is the php code i'm using: <?php require_once('phpmailer/PHPMailerAutoload.php'); $toemails = array(); $toemails[] = array( 'email' => 'Your email', // Your Email Address 'name' => 'Your Name' // …

0
167
Member Avatar for phphp

Sir, I have these PHP codes while($res = sqlsrv_fetch_array($result)) { echo "<tr>"; $sno=$sno+1; echo "<td align='center'>$sno</td>"; echo "<td align='center'>".($res['acc_code'])."</td>"; $partycode=($res['acc_code']); $query1 = "select code,desc1 from master where code='".$partycode."'"; $result1 = sqlsrv_query($con,$query1) or die ("Error". sqlsrv_errors($con)) ; while($res1 = sqlsrv_fetch_array($result1)) { echo "<td align='left' class='color1'>".($res1['desc1'])."</td>"; } echo "<td align='right'>".($res['dr_amount'] != 0 …

Member Avatar for phphp
0
699
Member Avatar for chrisschristou

hello i'm just training myself on web development so i wanted to create a drop down menu wich i have post before about it! so i get the html code and css and the javascrip code of the bootstrap header menu and i want to customize it for my website …

0
213
Member Avatar for mark_59

/* initialize the calendar -----------------------------------------------------------------*/ var date = new Date(); var d = date.getDate(); var m = date.getMonth(); var y = date.getFullYear(); /* selects the events to load in the calendar -----------------------------------------------------------------*/ $.ajax({ url: 'process.php', type: 'POST', data: 'type=fetch', async: false, success: function(response){ json_events = response; } }); $('#calendar').fullCalendar({ //events: …

0
182
Member Avatar for Stefce

Hello, how do i escape passing parameters to page where you need to give two parameters `ID and category`? my sql is like this `SELECT ID, Image, imageID, Category FROM gallery WHERE imageID={$imageID} AND Category='$category'` but i have a button which should show all pictures no matter what category they …

Member Avatar for jkon
0
238
Member Avatar for Mayank_6

when i upload image in form using cakephp at that time the image is insert but other data will not inserted...??

Member Avatar for Mayank_6
0
254
Member Avatar for amvx86
Member Avatar for Miguel_6

I'm trying to do use X-editable to do inline editing instead of having textboxes and such, I'm editing labels that I would like to send in a post method to update the values in the database. Is there anyway to send any kind of data within the <form> besides using …

0
148
Member Avatar for Nollyvenon

My SQL query is: UPDATE REGISTRUDENT set qual=1 WHERE studentolevelsubjects AS sls INNER JOIN courserequirements AS csreq ON sls.subject_id = csreq.subject_id WHERE sls.stud_id = '$stud_id' AND sls.grade_id>=csreq.min_grade AND sls.examno = '$examno' AND csreq.course_id = '$course_id' I'm having issue comparing two different table to get if a registrant qualified based on …

Member Avatar for Nollyvenon
0
120
Member Avatar for phphp

Sir I have following codes <form name="form1" action="<?php $_PHP_SELF;?>" method="post"> <label> Code </label> <input type="text" size="7" name="ppcode" id="ppcode" onblur="myCall()" value="<?php echo $acc_code1;?>"/> </form> //function mycall() function myCall() { var data = $("#ppcode").val(); var request = $.ajax({ url: "party_search.php", type: "Get", data:{"code":data}, dataType: "html" }); request.done(function(msg) { var msg = msg.split("##"); …

Member Avatar for pritaeas
0
232

The End.