Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~4K People Reached
Favorite Tags
Member Avatar for boney

Hi, My query: $query = "select * from ( select * from students union all select * from students ) as tmp order by rand() limit 5"; $myquery = mysqli_query($db_connect, $query); while($students = mysqli_fetch_assoc($myquery)){ $stdid =$students['stdid']; $name = $students['name']; $dept = $students['dept']; echo "<br><br>".$stdid."<br>".$name."<br>".$dept; } There are 20 rows for …

Member Avatar for JorgeM
0
154
Member Avatar for boney

Hi, how do i pass the variables color, city and food to the mypage.php? I am able to get 'name' and 'age'. I want tto be able to pass all the variables mentioned in the script. <script type = "text/javascript" src="mypage.php?name=test&age=23"> var color = "red"; var city = "london"; var …

Member Avatar for diafol
0
168
Member Avatar for boney

How do i get the title of the post and the image from a URL? Say i enter a random URL, I want to get the main title of the post in that page and number of images and the images itself. file_get_contents() doesnt help.

Member Avatar for pixelsoul
0
74
Member Avatar for boney

Hi, I want to output a simple result. I join 2 tables and SUM one column in one, i get the SUM results correct but cannot get the num_rows proper. My Code: $clientid = 24; $query = "SELECT items.itemid, SUM(prices.priceid) as PR FROM items JOIN prices ON items.itemid = prices.itemid …

Member Avatar for cereal
0
154
Member Avatar for boney

I have created my own template and am able to list all the posts on the index page. I want to be able to have some space after each post. Like a blank height of 5px. I created a class in css called blank5 => .blank5 {height:5px;} but it doesn't …

Member Avatar for boney
0
163
Member Avatar for boney

Hi all, Now this may be a very basic question. Need to know which CMS is better to achieve what I want and How to configure it properly. Please refer to this link: http://www.usmagazine.com/entertainment/pictures/oscar-snubs-most-overlooked-films-stars-and-shocking-losses-in-academy-awards-history-2014101/35151 Things I want to achieve: 1. Articles that may/may not include multiple images. 2. Page should …

Member Avatar for diafol
0
173
Member Avatar for boney

I need help on building a mysql query. I have 2 tables : list and type. List : id_list, name Type : id_type, id_list, name The id_list column in table Type is a reference for id_list in the table List. My HTML [main.php] : <head> <script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> <script type="text/javascript"> function …

Member Avatar for LastMitch
0
248
Member Avatar for boney

Hello, My HTML+JS : <head> <script type="text/javascript"> function passList() { var p=[]; $('input.first').each( function() { if($(this).attr('checked')) { p.push($(this).attr('rel')); } } ); $.ajax( { url:'process.php', type:'POST', data: {list:p}, success: function(res) { $("#result").html(res); } }); } function passType() { var q=[]; $('input.second').each( function() { if($(this).attr('checked')) { q.push($(this).attr('rel')); } } ); $.ajax( { …

Member Avatar for boney
0
225
Member Avatar for boney

This is my form : <input type="checkbox" name="dept" value="sales" <?php if(isset($_GET['dept'])) echo "checked='checked'"; ?> onclick="this.form.submit();" />Sales <br /> <input type="checkbox" name="dept" value="it" <?php if(isset($_GET['dept'])) echo "checked='checked'"; ?> onclick="this.form.submit();" />IT <br /> I want to send the value of "dept" as soon as the checkbox is checked and want the page …

Member Avatar for pzuurveen
0
2K
Member Avatar for boney

Hi, I need to show results with some filters on mysql query. The filters will be taken from $_GET['filter'] There are going to be multiple combinations of filters. Like : filter1+filter2, filter1+filter5, filter2+filter4 etc. I think i need to create a switch() for these filters. And based on the filters …

Member Avatar for diafol
0
179