Jump to content

Help


popcornplya

Recommended Posts

I could be wrong, but to call out stuff in the database you need to use the select statement in php and all that stuff.

 

*~I did not try it!~*

 

<?php

$selectmovie = mysql_query("SELECT * FROM `table here` WHERE `column name here` = 'movie here'");

echo $selectmovie;
?>

Link to comment
https://forums.phpfreaks.com/topic/130202-help/#findComment-675269
Share on other sites

I could be wrong, but to call out stuff in the database you need to use the select statement in php and all that stuff.

 

*~I did not try it!~*

 

<?php

$selectmovie = mysql_query("SELECT * FROM `table here` WHERE `column name here` = 'movie here'");

echo $selectmovie;
?>

Lol, thanks for the reply but I don't think you understand my question clearly.

Link to comment
https://forums.phpfreaks.com/topic/130202-help/#findComment-675278
Share on other sites

my brains not working tonight but heres a couple of ideas

 

-regex in the query identifying the first character as numeric or not (not for sure if mysql supports php regex)

 

- return all the movie titles and shorten them all to 1 character and run is_numeric() on them, but, im really tired and cant remember how to shorten a string, nor can i figure out how to get those results back to the query to get you the right movie titles in their entirety

 

//should get you thinking

 

EDIT: regex is your best bet, query the db for all results, run a preg_match and foreach the results but im terrible at regex so dont ask me

 

//dunno why this got moved

Link to comment
https://forums.phpfreaks.com/topic/130202-help/#findComment-675290
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.