Quantcast
Channel: Adobe Community: Message List - Dreamweaver support forum
Viewing all 90058 articles
Browse latest View live

Re: my website not responsive on mobile phone

$
0
0

Hi guys I found the issue and I fixed. Just button area padding issue on mobile phone(I think just  on android I didn't check Iphone ). Thanks for help


mysqli / php random data?

$
0
0

Hi

 

i am currently using this php script to generate a random video to the iframe.

 

     <div class="col-lg-12 vidwrap">

     <div class="embed-responsive col-lg-12 featured">

     <?php

     /*OLD SCRIPT

     $strings= array('Xb0P5t5NQWM', 'M4t0aeTX954', '8VnwM8-6nS8', 'a1Y73sPHKxw', 'J---aiyznGQ', 'AXLbRQh4iRw');

     $random_str = $strings[array_rand($strings)];

     END OLD SCRIPT*/

     $strings= array('Xb0P5t5NQWM', 'M4t0aeTX954', '8VnwM8-6nS8', 'a1Y73sPHKxw', 'J---aiyznGQ', 'AXLbRQh4iRw');

     $random_key = array_rand($strings, 1);

     $random_str = $strings[$random_key];

     ?>

     <iframe class="embed-responsive-item" src="http://www.youtube.com/embed/<?php echo $random_str; ?>?modestbranding=1&amp;iv_load_policy=3" allowfullscreen></iframe>

     </div>

     </div>

 

This works all fine but is it 100% random?.

 

Well i want to be able to more ''easily'' change the videos if i like to.

 

So i have made a database in mysqli named ''videos'' with a tabel named ''featured'' i added two columns to the table ''ID'' & ''Video ID''

ID is an INT with AUTO_INCREMENT.

Video ID is an VARCHAR (15).


So i have 5 rows and i have placed all 5 ''shortened Youtube urls'' in them.

Looks like this:

ID - Video ID:
1 - 1M4t0aeTX954

2 - 2Xb0P5t5NQWM

3 - 38VnwM8-6nS8

4 - 4a1Y73sPHKxw

5 - J---aiyznGQ


What i want to do now is to roll a 100% random number between 1-5 with php and from that number choose one of the videos ?


How do i manage to do this?




Re: my website not responsive on mobile phone

$
0
0

Glad you got it sorted. 

 

 

Nancy O.

Re: Help with MySQLI WHERE clause

$
0
0

Works like a charm - Thanks much.

Re: my website not responsive on mobile phone

Re: offline media player coding like this....

$
0
0

thanks for reply

actually iwant

more codings of media player

(:as shown in pic1)

Re: offline media player coding like this....

$
0
0

"More" coding ??

Sorry, but that communicates nothing to me.

 

If you like the player show in pic 1, go the that page and view the source code

Re: mysqli / php random data?

$
0
0

I hope the field name is videoID or similar and not two words.

 

You can use the SQL to sort the table at random after which you can grab the first record similar to

SELECT videoID

FROM videos

ORDER BY RAND()

LIMIT 1


css text color doesn't work online

$
0
0

Hello

I just put a color in my css file (it is : color: #AE0508;). It works fine in the Dreamweaver direct view, works fine in the the web browser preview, but it doesn't work on my hosting server : the text remains black. Any idea ?

Thank you !

Re: css text color doesn't work online

$
0
0

Did you upload the CSS?

 

If you have, and it still does not work, please supply the URL to your site.

Re: css text color doesn't work online

$
0
0

OK thank you I'm sorry I did not upload the CSS, only the index.html, so it could not work…

Re: css text color doesn't work online

$
0
0

Glad you found the problem. In future please supply the URL when asking a question, this will stop us having to guess.

Re: Dreamweaver CC won't open.

$
0
0

Thanks Ben! I ended up having to rename the old personal configuration file, just deleting the cache wasn't enough. But my program is now working, all my site definitions are still intact, and I am a happy camper.

 

Pauli

Re: mysqli / php random data?

$
0
0

What do you mean by the name of the video?

 

also isent it mysqli i use?

Re: Dreamweaver CC won't open.

$
0
0

Thank you for your feedback, it has made my day


Unable to find the liquid 2 column HTML layout. [was: I need help with adobe dreamweaver]

$
0
0

When i select a new document i cant see the html layouts and i need them i need the liquid 2 column ones can someone pleas help me?

I just put my dreanweaver account on a new PC...now I cant update the site. Do I have to manually move the index file?

$
0
0

I just put my dreanweaver account on a new PC...now I cant update the site.  Do I have to manually move the index file?

Re: mysqli / php random data?

$
0
0

$result=mysqli_query($con,$sql);

The above is similar to the way that we coded in MySQL or in other words, the procedural format.

 

The following is the MySQLi object oriented notation

$result = $mysqli->query($sql);

Both are correct MySQLi, I prefer to use the latter. See here 'MySQLi' for Beginners - Codular

Re: I just put my dreanweaver account on a new PC...now I cant update the site. Do I have to manually move the index file?

Re: mysqli / php random data?

$
0
0

I am not a professional programmer, but i think what i use is Mysqli OOP ? i was told it is future secure and more secure ?

Viewing all 90058 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>